Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 5.71 KB | None | 0 0
  1. \usepackage[utf8]{inputenc}
  2. \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
  3.  
  4. \usepackage[table,xcdraw,dvipsnames]{xcolor}
  5. \usepackage[normalem]{ulem}
  6. \usepackage[english]{babel} %
  7. \usepackage{subcaption}
  8. \useunder{\uline}{\ul}{}
  9. \usepackage{tikz}
  10. \usepackage{pdfpages}
  11. %\usepackage{pgfplots}
  12. \usepackage{todonotes} %%TODO NOTES!!
  13. %\usepackage[disable]{todonotes}% Til at skjule alle to do notes
  14. %\usepackage{blindtext}
  15. %\renewcommand\thesection{\arabic{section}}
  16. %\setcounter{secnumdepth}{0} Fjerner sidetal
  17. \usepackage{amsmath,anyfontsize,fancyhdr,lastpage,amssymb,wrapfig}
  18. %\usepackage{amsfonts}
  19. \usepackage{mathtools}
  20. \usepackage{amsthm}
  21. \usepackage{mathrsfs}
  22. \usepackage{bm}
  23. %\usepackage[square,numbers]{natbib}
  24. \usepackage{natbib}
  25. \bibliographystyle{abbrv}
  26. \usepackage{url}
  27.  
  28. \usepackage{amsmath}
  29. \usepackage{fancyhdr}
  30. \usepackage{graphicx}
  31. \usepackage{subcaption}
  32. \usepackage{placeins}
  33. \usepackage{csquotes}
  34. \usepackage{tikz}
  35. \usetikzlibrary{positioning}
  36.  
  37. %\bibliographystyle{abbrvnat}
  38. %\footnotesize{
  39. %\bibliography{references}
  40. %}
  41.  
  42. %\usepackage[style=verbose-trad2]{biblatex}
  43. %\bibliography{references}
  44. %
  45. \usepackage{algorithm}
  46. \usepackage[noend]{algpseudocode}
  47. \usepackage{enumitem}
  48. \usepackage{multicol}
  49. \usepackage{hyperref}
  50. \usepackage[noabbrev,capitalise]{cleveref}
  51. \usepackage{algpseudocode}
  52. \usepackage{program}
  53. \usepackage{graphicx}
  54. \usepackage{booktabs}
  55. \usepackage{lmodern,textcomp}
  56. \usepackage{adjustbox}
  57. \usepackage{multirow}
  58. \usepackage[titletoc]{appendix}
  59. \renewcommand\appendixtocname{Appendix}
  60. %\renewcommand{\contentsname}{whatever}
  61. %\renewcommand{\bibname}{whatever}
  62. \usepackage{float}
  63. \graphicspath{{Pics/}}
  64. \usepackage{rotating}
  65. \usepackage{pdflscape}
  66. \usepackage{fancyhdr}
  67. \usepackage{listings}
  68. \usepackage{color} %red, green, blue, yellow, cyan, magenta, black, white
  69. \definecolor{mygreen}{RGB}{28,172,0} % color values Red, Green, Blue
  70. \definecolor{mylilas}{RGB}{170,55,241}
  71. \usepackage{lastpage}
  72.  
  73. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  74. %
  75. % This templates uses the bibliography package natbib.
  76. %
  77. % The natbib package has two basic citation commands, \citet and \citep for textual and parenthetical citations,
  78. % respectively. There also exist the starred versions \citet* and \citep* that print the full author list, and
  79. % not just the abbreviated one. All of these may take one or two optional arguments to add some text before and after the citation.
  80. % \citet{jon90}     -->     Jones et al. (1990)
  81. % \citet[chap. 2]{jon90}        -->     Jones et al. (1990, chap. 2)
  82. % \citep{jon90}     -->     (Jones et al., 1990)
  83. % \citep[chap. 2]{jon90}        -->     (Jones et al., 1990, chap. 2)
  84. % \citep[see][]{jon90}      -->     (see Jones et al., 1990)
  85. % \citep[see][chap. 2]{jon90}       -->     (see Jones et al., 1990, chap. 2)
  86. % \citet*{jon90}        -->     Jones, Baker, and Williams (1990)
  87. % \citep*{jon90}        -->     (Jones, Baker, and Williams, 1990)
  88. %
  89. %  Multiple citations may be made by including more than one citation key in
  90. %  the \cite command argument.
  91. % \citet{jon90,jam91}       -->     Jones et al. (1990); James et al. (1991)
  92. % \citep{jon90,jam91}       -->     (Jones et al., 1990; James et al. 1991)
  93. % \citep{jon90,jon91}       -->     (Jones et al., 1990, 1991)
  94. % \citep{jon90a,jon90b}     -->     (Jones et al., 1990a,b)
  95. %
  96. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  97.  
  98.  
  99.  
  100. \newcommand{\D}{\text{d}}
  101. \newcommand{\fa}{\forall}
  102. \newcommand{\E}{\exists}
  103. \newcommand{\N}{\mathbb{N}}
  104. \renewcommand{\Q}{\mathbb{Q}}
  105. \renewcommand{\Z}{\mathbb{Z}}
  106. \renewcommand{\R}{\mathbb{R}}
  107. \renewcommand{\C}{\mathbb{C}}
  108. \newcommand{\F}{\mathtt{F}}
  109. \renewcommand{\T}{\mathtt{T}}
  110. \newcommand{\hil}{\mathcal{H}}
  111. \newcommand{\ds}{\displaystyle}
  112. \newcommand{\summa}[2]{\sum_{#1}^{#2}}
  113.  
  114. \newcommand{\Lra}{\Leftrightarrow}
  115. \newcommand{\lra}{\leftrightarrow}
  116. \newcommand{\La}{\Leftarrow}
  117. \newcommand{\Ra}{\Rightarrow}
  118. \newcommand{\la}{\leftarrow}
  119. \newcommand{\ra}{\rightarrow}
  120. \newcommand{\abs}[1]{\left\lvert #1 \right\rvert}
  121. \newcommand{\Sin}[1]{\sin\left( #1 \right)}
  122. \newcommand{\Cos}[1]{\cos\left( #1 \right)}
  123. \newcommand{\Tan}[1]{\tan\left( #1 \right)}
  124. \newcommand{\U}{\cup}
  125. \renewcommand{\A}{\cap}
  126. \newcommand{\tb}[1]{\textbf{#1}}
  127. \newcommand{\norm}[1]{\abs{\abs{#1}}}
  128. \newcommand{\indre}[1]{\left\langle #1\right\rangle}
  129. \newcommand{\parent}[1]{\left( #1 \right)}
  130. %\renewcommand{\sum}{\sum\limits_{\substack{#1}}
  131.  
  132. \pagestyle{fancy}
  133. \renewcommand{\baselinestretch}{1.2}
  134. \setlength{\parindent}{0em}
  135. \setlength{\parskip}{1em}
  136. \rhead[empty]{Network Optimization}
  137. \chead[empty]{}
  138. \lhead[empty]{Assignment }
  139. \cfoot{Page \thepage \hspace{1pt} of \pageref{Sidste}}
  140. \renewcommand*\contentsname{Content}
  141. \newcommand{\horrule}[1]{\rule{\linewidth}{#1}}
  142.  
  143. \usepackage[T1]{fontenc}
  144. \usepackage{beramono}
  145. \usepackage{listings}
  146.  
  147. \def\checkmark{\tikz\fill[scale=0.4](0,.35) -- (.25,0) -- (1,.7) -- (.25,.15) -- cycle;}
  148.  
  149. %%
  150. %% Julia definition (c) 2014 Jubobs
  151. %%
  152. \lstdefinelanguage{Julia}%
  153.   {morekeywords={abstract,break,case,catch,const,continue,do,else,elseif,%
  154.       end,export,false,for,function,immutable,import,importall,if,in,%
  155.       macro,module,otherwise,quote,return,switch,true,try,type,typealias,%
  156.       using,while,sum},%
  157.     morekeywords = [2]{@constraint,@objective},
  158.    sensitive=true,%
  159.    alsoother={\$},%
  160.    morecomment=[l]\#,%
  161.    morecomment=[n]{\#=}{=\#},%
  162.    morestring=[s]{"}{"},%
  163.    morestring=[m]{'}{'},%
  164. }[keywords,comments,strings]%
  165.  
  166. \lstset{%
  167.     language         = Julia,
  168.     basicstyle       = \ttfamily,
  169.     keywordstyle     = \bfseries\color{blue},
  170.    keywordstyle    = [2]\bfseries\color{purple},
  171.    stringstyle      = \color{magenta},
  172.    commentstyle     = \color{ForestGreen},
  173.    showstringspaces = false,
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement