Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[12pt]{report}
- \usepackage[a4paper]{geometry}
- \usepackage[myheadings]{fullpage}
- \usepackage{fancyhdr}
- \usepackage{lastpage}
- \usepackage{graphicx, wrapfig, subcaption, setspace, booktabs}
- \usepackage[T1]{fontenc}
- \usepackage[font=small, labelfont=bf]{caption}
- %\usepackage{fourier}
- \usepackage[protrusion=true, expansion=true]{microtype}
- \usepackage[english]{babel}
- \usepackage{sectsty}
- \usepackage{lipsum}
- \usepackage{listings}
- \usepackage{xcolor}
- \usepackage{enumerate}
- \usepackage{amssymb}
- \usepackage{longtable}
- \usepackage{courier}
- \usepackage{geometry}
- \usepackage{amsmath}
- \usepackage{txfonts}
- \usepackage{verbatim}
- \usepackage{tikz}
- \usepackage{adjustbox}
- \usepackage{indentfirst}
- \usepackage[colorlinks, linkcolor=blue, anchorcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
- \usetikzlibrary{er,positioning,trees}
- \newcommand{\HRule}[1]{\rule{\linewidth}{#1}}
- \onehalfspacing
- \setcounter{tocdepth}{5}
- \setcounter{secnumdepth}{5}
- \tikzset{every entity/.style={draw=orange, fill=orange!20}}
- \tikzset{every attribute/.style={draw=purple, fill=purple!20}}
- \tikzset{every relationship/.style={draw=green, fill=green!20}}
- \lstdefinestyle{customc}{
- belowcaptionskip=1\baselineskip,
- breaklines=true,
- frame=shadowbox,
- rulesepcolor=\color{red!20!green!20!blue!20},
- numbers=left,
- numberstyle=\tiny,
- xleftmargin=\parindent,
- language=java,
- showstringspaces=false,
- basicstyle=\footnotesize\ttfamily,
- keywordstyle=\bfseries\color{blue},
- commentstyle=\itshape\color{gray},
- stringstyle=\color{red},
- xleftmargin=2em,
- xrightmargin=2em,
- aboveskip=1em
- }
- \lstdefinestyle{customjava}{ %
- language=Java, % the language of the code
- basicstyle=\footnotesize, % the size of the fonts that are used for the code
- numbers=left, % where to put the line-numbers
- numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
- stepnumber=1, % the step between two line-numbers. If it's 1, each line
- % will be numbered
- numbersep=5pt, % how far the line-numbers are from the code
- backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
- showspaces=false, % show spaces adding particular underscores
- showstringspaces=false, % underline spaces within strings
- showtabs=false, % show tabs within strings adding particular underscores
- frame=single, % adds a frame around the code
- rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. commens (green here))
- tabsize=4, % sets default tabsize to 2 spaces
- captionpos=b, % sets the caption-position to bottom
- breaklines=true, % sets automatic line breaking
- breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
- title=\lstname, % show the filename of files included with \lstinputlisting;
- % also try caption instead of title
- keywordstyle=\color{blue}, % keyword style
- commentstyle=\color{gray}, % comment style
- stringstyle=\color{purple}, % string literal style
- escapeinside={\%*}{*)}, % if you want to add a comment within your code
- morekeywords={*,...} % if you want to add more keywords to the set
- }
- \lstset{style=customjava}
- \makeatletter
- \newcommand{\rmnum}[1]{\romannumeral #1}
- \newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
- \makeatother
- \renewcommand{\labelenumii}{\theenumii}
- \renewcommand{\theenumii}{\theenumi.\arabic{enumii}.}
- \newcommand{\tabincell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
- \renewcommand\thesection{\arabic{section}}
- \pagestyle{fancy}
- \fancyhf{}
- \setlength\headheight{15pt}
- \fancyfoot[C]{\thepage}
- \setcounter{tocdepth}{2}
- \begin{document}
- \tikzstyle{table}=[draw=black,anchor=west]
- %\tikzstyle{selected}=[draw=red,fill=red!30]
- %\tikzstyle{optional}=[dashed,fill=gray!50]
- \title{
- \HRule{2pt}\\
- \LARGE \textbf{\uppercase{Documentation of\\ Social Network Project}}
- \HRule{2pt} \\ [0.5cm]
- \normalsize \today \vspace*{5\baselineskip}}
- \date{}
- \author{He Yan}
- \maketitle
- \tableofcontents
- \setcounter{page}{0}
- \thispagestyle{empty}
- \newpage
- \section{Introduction}
- %\addcontentsline{toc}{section}{Introduction}
- \subsection{Main Features}
- \section{References}
- \begin{itemize}
- \end{itemize}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement