Guest User

Untitled

a guest
May 23rd, 2015
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.94 KB | None | 0 0
  1. \documentclass[10pt,]{article}
  2. \usepackage{lmodern}
  3. \usepackage{amssymb,amsmath}
  4. \usepackage{ifxetex,ifluatex}
  5. \usepackage{fixltx2e} % provides \textsubscript
  6. \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  7.   \usepackage[T1]{fontenc}
  8.  \usepackage[utf8]{inputenc}
  9. \else % if luatex or xelatex
  10.   \ifxetex
  11.     \usepackage{mathspec}
  12.    \usepackage{xltxtra,xunicode}
  13.  \else
  14.    \usepackage{fontspec}
  15.  \fi
  16.  \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
  17.  \newcommand{\euro}{€}
  18. \fi
  19. % use upquote if available, for straight quotes in verbatim environments
  20. \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
  21. % use microtype if available
  22. \IfFileExists{microtype.sty}{%
  23. \usepackage{microtype}
  24. \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
  25. }{}
  26. \usepackage[margin=2cm]{geometry}
  27. \usepackage{color}
  28. \usepackage{fancyvrb}
  29. \newcommand{\VerbBar}{|}
  30. \newcommand{\VERB}{\Verb[commandchars=\\\{\}]}
  31. \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}}
  32. % Add ',fontsize=\small' for more characters per line
  33. \usepackage{framed}
  34. \definecolor{shadecolor}{RGB}{248,248,248}
  35. \newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}}
  36. \newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{{#1}}}}
  37. \newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{{#1}}}
  38. \newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
  39. \newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
  40. \newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{{#1}}}
  41. \newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{{#1}}}
  42. \newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{{#1}}}
  43. \newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{{#1}}}}
  44. \newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{{#1}}}
  45. \newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{{#1}}}
  46. \newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{{#1}}}
  47. \newcommand{\RegionMarkerTok}[1]{{#1}}
  48. \newcommand{\ErrorTok}[1]{\textbf{{#1}}}
  49. \newcommand{\NormalTok}[1]{{#1}}
  50. \usepackage{graphicx}
  51. \makeatletter
  52. \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
  53. \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
  54. \makeatother
  55. % Scale images if necessary, so that they will not overflow the page
  56. % margins by default, and it is still possible to overwrite the defaults
  57. % using explicit options in \includegraphics[width, height, ...]{}
  58. \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
  59. \ifxetex
  60.   \usepackage[setpagesize=false, % page size defined by xetex
  61.               unicode=false, % unicode breaks when used with xetex
  62.               xetex]{hyperref}
  63. \else
  64.  \usepackage[unicode=true]{hyperref}
  65. \fi
  66. \hypersetup{breaklinks=true,
  67.            bookmarks=true,
  68.            pdfauthor={Me},
  69.            pdftitle={My Title},
  70.            colorlinks=true,
  71.            citecolor=blue,
  72.            urlcolor=blue,
  73.            linkcolor=magenta,
  74.            pdfborder={0 0 0}}
  75. \urlstyle{same}  % don't use monospace font for urls
  76. \setlength{\parindent}{0pt}
  77. \setlength{\parskip}{6pt plus 2pt minus 1pt}
  78. \setlength{\emergencystretch}{3em}  % prevent overfull lines
  79. \setcounter{secnumdepth}{0}
  80.  
  81. %%% Use protect on footnotes to avoid problems with footnotes in titles
  82. \let\rmarkdownfootnote\footnote%
  83. \def\footnote{\protect\rmarkdownfootnote}
  84.  
  85. %%% Change title format to be more compact
  86. \usepackage{titling}
  87. \setlength{\droptitle}{-2em}
  88.  \title{My Title}
  89.  \pretitle{\vspace{\droptitle}\centering\huge}
  90.  \posttitle{\par}
  91.  \author{Me}
  92.  \preauthor{\centering\large\emph}
  93.  \postauthor{\par}
  94.  \date{}
  95.  \predate{}\postdate{}
  96.  
  97.  
  98.  
  99.  
  100. \begin{document}
  101.  
  102. \maketitle
  103.  
  104.  
  105. \subsection{Synopsis}\label{synopsis}
  106.  
  107. ...parameter \(\lambda=0.2\) with
  108.  
  109. \subsection{Simulations}\label{simulations}
  110.  
  111. ...of \(\frac{1}{\lambda}=5\) of the
  112.  
  113. \includegraphics{report1_files/figure-latex/rexpDensity-1.pdf}
  114.  
  115.  
  116. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment