|
| 1 | +\documentclass[$if(fontsize)$$fontsize$,$else$12pt,$endif$$if(spacing)$$spacing$,$else$halfline,$endif$$if(papersize)$$papersize$,$else$a4paper,$endif$$for(classoptions)$$classoptions$$sep$,$endfor$]{ouparticle} |
| 2 | + |
| 3 | +% Packages I think are necessary for basic Rmarkdown functionality |
| 4 | +\usepackage{hyperref} |
| 5 | +\usepackage{graphicx} |
| 6 | +\usepackage{listings} |
| 7 | +\usepackage{color} |
| 8 | +\usepackage{fancyvrb} |
| 9 | +\usepackage{framed} |
| 10 | + |
| 11 | +%% To allow better options for figure placement |
| 12 | +%\usepackage{float} |
| 13 | + |
| 14 | +% Packages that are supposedly required by OUP sty file |
| 15 | +\usepackage{amssymb, amsmath, geometry, amsfonts, verbatim, endnotes, setspace} |
| 16 | + |
| 17 | +% For code highlighting I think |
| 18 | +\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}} |
| 19 | +\definecolor{shadecolor}{RGB}{248,248,248} |
| 20 | +\newenvironment{Shaded}{\begin{snugshade}}{\end{snugshade}} |
| 21 | +\newcommand{\AlertTok}[1]{\textcolor[rgb]{0.94,0.16,0.16}{#1}} |
| 22 | +\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 23 | +\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.77,0.63,0.00}{#1}} |
| 24 | +\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 25 | +\newcommand{\BuiltInTok}[1]{#1} |
| 26 | +\newcommand{\CharTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 27 | +\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} |
| 28 | +\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 29 | +\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 30 | +\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} |
| 31 | +\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{#1}} |
| 32 | +\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 33 | +\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 34 | +\newcommand{\ErrorTok}[1]{\textcolor[rgb]{0.64,0.00,0.00}{\textbf{#1}}} |
| 35 | +\newcommand{\ExtensionTok}[1]{#1} |
| 36 | +\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.00,0.00,0.81}{#1}} |
| 37 | +\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 38 | +\newcommand{\ImportTok}[1]{#1} |
| 39 | +\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 40 | +\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.13,0.29,0.53}{\textbf{#1}}} |
| 41 | +\newcommand{\NormalTok}[1]{#1} |
| 42 | +\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.81,0.36,0.00}{\textbf{#1}}} |
| 43 | +\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{#1}} |
| 44 | +\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textit{#1}}} |
| 45 | +\newcommand{\RegionMarkerTok}[1]{#1} |
| 46 | +\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 47 | +\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 48 | +\newcommand{\StringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 49 | +\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.00,0.00,0.00}{#1}} |
| 50 | +\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.31,0.60,0.02}{#1}} |
| 51 | +\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.56,0.35,0.01}{\textbf{\textit{#1}}}} |
| 52 | + |
| 53 | +% For making Rmarkdown lists |
| 54 | +\providecommand{\tightlist}{% |
| 55 | + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
| 56 | + |
| 57 | + |
| 58 | +% Part for setting citation format package: natbib |
| 59 | +$if(natbib)$ |
| 60 | +\usepackage{natbib} |
| 61 | +\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$} |
| 62 | +$endif$ |
| 63 | + |
| 64 | +% Part for setting citation format package: biblatex |
| 65 | +$if(biblatex)$ |
| 66 | +\usepackage[$if(biblio-citestyle)$citestyle=$biblio-citestyle$$else$citestyle=ieee$endif$$if(biblio-style)$,style=$biblio-style$$else$,style=numeric$endif$$if(citation_sorting)$,sorting=$citation_sorting$$endif$]{biblatex} |
| 67 | +$if(bibliography)$ |
| 68 | +$for(bibliography)$ |
| 69 | +\addbibresource{$bibliography$} |
| 70 | +$endfor$ |
| 71 | +$endif$ |
| 72 | +$endif$ |
| 73 | + |
| 74 | +% Pandoc header |
| 75 | +$for(header-includes)$ |
| 76 | +$header-includes$ |
| 77 | +$endfor$ |
| 78 | + |
| 79 | +\begin{document} |
| 80 | + |
| 81 | +\title{$title$} |
| 82 | + |
| 83 | +\author{% |
| 84 | +$for(authors)$ |
| 85 | +\name{$authors.name$}$if(authors.address)$\address{$authors.address$}$endif$$if(authors.email)$\email{\href{mailto:$authors.email$}{$authors.email$}}$endif$$if(authors.thanks)$\thanks{$authors.thanks$}$else$$if(authors.corresponding_author)$\thanks{Corresponding author; Email: \href{mailto:$authors.email$}{$authors.email$}}$endif$$endif$ |
| 86 | +$sep$\and |
| 87 | +$endfor$ |
| 88 | +} |
| 89 | + |
| 90 | +\abstract{$abstract$} |
| 91 | + |
| 92 | +\date{$if(date)$$date$$else$\today$endif$} |
| 93 | + |
| 94 | +\keywords{$for(keywords)$$keywords$$sep$; $endfor$} |
| 95 | + |
| 96 | +\maketitle |
| 97 | + |
| 98 | + |
| 99 | +$for(include-before)$ |
| 100 | +$include-before$ |
| 101 | +$endfor$ |
| 102 | + |
| 103 | +$body$ |
| 104 | + |
| 105 | +$if(notes)$ |
| 106 | +\begin{notes} |
| 107 | +$notes$ |
| 108 | +\end{notes} |
| 109 | +$endif$ |
| 110 | + |
| 111 | +$if(acknowledgements)$ |
| 112 | +\begin{notes}[Acknowledgements] |
| 113 | +$acknowledgements$ |
| 114 | +\end{notes} |
| 115 | +$endif$ |
| 116 | + |
| 117 | +$if(natbib)$ |
| 118 | +$if(bibliography)$ |
| 119 | + |
| 120 | +$if(biblio-title)$ |
| 121 | +$if(book-class)$ |
| 122 | +\renewcommand\bibname{$biblio-title$} |
| 123 | +$else$ |
| 124 | +\renewcommand\refname{$biblio-title$} |
| 125 | +$endif$ |
| 126 | +$endif$ |
| 127 | + |
| 128 | +\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} |
| 129 | +$endif$ |
| 130 | +$endif$ |
| 131 | + |
| 132 | +$if(biblatex)$ |
| 133 | +\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$ |
| 134 | +$endif$ |
| 135 | + |
| 136 | +$for(include-after)$ |
| 137 | +$include-after$ |
| 138 | +$endfor$ |
| 139 | + |
| 140 | +\end{document} |
0 commit comments