Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. \documentclass[12pt]{report}
  2. \usepackage[a4paper]{geometry}
  3. \usepackage[myheadings]{fullpage}
  4. \usepackage{fancyhdr}
  5. \usepackage{lastpage}
  6. \usepackage{graphicx, wrapfig, subcaption, setspace, booktabs}
  7. \usepackage[T1]{fontenc}
  8. \usepackage[font=small, labelfont=bf]{caption}
  9. %\usepackage{fourier}
  10. \usepackage[protrusion=true, expansion=true]{microtype}
  11. \usepackage[english]{babel}
  12. \usepackage{sectsty}
  13. \usepackage{lipsum}
  14. \usepackage{listings}
  15. \usepackage{xcolor}
  16. \usepackage{enumerate}
  17. \usepackage{amssymb}
  18. \usepackage{longtable}
  19. \usepackage{courier}
  20. \usepackage{geometry}
  21. \usepackage{amsmath}
  22. \usepackage{txfonts}
  23. \usepackage{verbatim}
  24. \usepackage{tikz}
  25. \usepackage{adjustbox}
  26. \usepackage{indentfirst}
  27. \usepackage[colorlinks, linkcolor=blue, anchorcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
  28.  
  29. \usetikzlibrary{er,positioning,trees}
  30. \newcommand{\HRule}[1]{\rule{\linewidth}{#1}}
  31. \onehalfspacing
  32. \setcounter{tocdepth}{5}
  33. \setcounter{secnumdepth}{5}
  34.  
  35. \tikzset{every entity/.style={draw=orange, fill=orange!20}}
  36. \tikzset{every attribute/.style={draw=purple, fill=purple!20}}
  37. \tikzset{every relationship/.style={draw=green, fill=green!20}}
  38.  
  39. \lstdefinestyle{customc}{
  40. belowcaptionskip=1\baselineskip,
  41. breaklines=true,
  42. frame=shadowbox,
  43. rulesepcolor=\color{red!20!green!20!blue!20},
  44. numbers=left,
  45. numberstyle=\tiny,
  46. xleftmargin=\parindent,
  47. language=java,
  48. showstringspaces=false,
  49. basicstyle=\footnotesize\ttfamily,
  50. keywordstyle=\bfseries\color{blue},
  51. commentstyle=\itshape\color{gray},
  52. stringstyle=\color{red},
  53. xleftmargin=2em,
  54. xrightmargin=2em,
  55. aboveskip=1em
  56. }
  57.  
  58. \lstdefinestyle{customjava}{ %
  59. language=Java, % the language of the code
  60. basicstyle=\footnotesize, % the size of the fonts that are used for the code
  61. numbers=left, % where to put the line-numbers
  62. numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
  63. stepnumber=1, % the step between two line-numbers. If it's 1, each line
  64. % will be numbered
  65. numbersep=5pt, % how far the line-numbers are from the code
  66. backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
  67. showspaces=false, % show spaces adding particular underscores
  68. showstringspaces=false, % underline spaces within strings
  69. showtabs=false, % show tabs within strings adding particular underscores
  70. frame=single, % adds a frame around the code
  71. rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
  72. tabsize=4, % sets default tabsize to 2 spaces
  73. captionpos=b, % sets the caption-position to bottom
  74. breaklines=true, % sets automatic line breaking
  75. breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
  76. title=\lstname, % show the filename of files included with \lstinputlisting;
  77. % also try caption instead of title
  78. keywordstyle=\color{blue}, % keyword style
  79. commentstyle=\color{gray}, % comment style
  80. stringstyle=\color{purple}, % string literal style
  81. escapeinside={\%*}{*)}, % if you want to add a comment within your code
  82. morekeywords={*,...} % if you want to add more keywords to the set
  83. }
  84.  
  85. \lstset{style=customjava}
  86.  
  87. \makeatletter
  88. \newcommand{\rmnum}[1]{\romannumeral #1}
  89. \newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
  90. \makeatother
  91.  
  92. \renewcommand{\labelenumii}{\theenumii}
  93. \renewcommand{\theenumii}{\theenumi.\arabic{enumii}.}
  94.  
  95. \newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
  96.  
  97. \renewcommand\thesection{\arabic{section}}
  98.  
  99. \pagestyle{fancy}
  100. \fancyhf{}
  101. \setlength\headheight{15pt}
  102. \fancyfoot[C]{\thepage}
  103.  
  104. \setcounter{tocdepth}{2}
  105.  
  106. \begin{document}
  107. \tikzstyle{table}=[draw=black,anchor=west]
  108. %\tikzstyle{selected}=[draw=red,fill=red!30]
  109. %\tikzstyle{optional}=[dashed,fill=gray!50]
  110. \title{
  111. \HRule{2pt}\\
  112. \LARGE \textbf{\uppercase{Documentation of\\ Social Network Project}}
  113. \HRule{2pt} \\ [0.5cm]
  114. \normalsize \today \vspace*{5\baselineskip}}
  115.  
  116. \date{}
  117.  
  118. \author{He Yan}
  119.  
  120. \maketitle
  121. \tableofcontents
  122. \setcounter{page}{0}
  123. \thispagestyle{empty}
  124. \newpage
  125.  
  126. \section{Introduction}
  127. %\addcontentsline{toc}{section}{Introduction}
  128. \subsection{Main Features}
  129. \section{References}
  130. \begin{itemize}
  131. \end{itemize}
  132.  
  133. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement