|
| 1 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 | +%% Author template for Institute of Physics (IOP) Journal articles |
| 3 | +%% Adapted for rticles by Rob J Hyndman Rob.Hyndman@monash.edu. Dec 2021 |
| 4 | +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 5 | +\documentclass[$if(fontsize)$$fontsize$$else$$if(twocolumn)$10pt$else$12pt$endif$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{iopart} |
| 6 | + |
| 7 | +%% BEGIN MY ADDITIONS %% |
| 8 | +\pdfminorversion=4 |
| 9 | +\usepackage{hyperref, graphicx, booktabs, longtable} |
| 10 | +% Bibliography allowing natbib with Harvard or Vancouver |
| 11 | +$if(natbib)$ |
| 12 | +\usepackage{har2nat} % loads 'natbib' automatically |
| 13 | +\bibliographystyle{$if(biblio-style)$$biblio-style$$else$dcu$endif$} |
| 14 | +\providecommand\newblock{} % suppress some meaningless warnings |
| 15 | +$else$ |
| 16 | +$if(biblatex)$ |
| 17 | +% BibLaTeX setup, recommended |
| 18 | +\usepackage[backend=biber, |
| 19 | + style=$if(biblio-style)$$biblio-style$$else$authoryear$endif$, |
| 20 | + mincrossrefs=50, |
| 21 | + maxcitenames=3, |
| 22 | + maxbibnames=50, |
| 23 | + useprefix=true, |
| 24 | + doi=false]{biblatex} |
| 25 | +$for(bibliography)$ |
| 26 | +\addbibresource{$bibliography$} |
| 27 | +$endfor$ |
| 28 | +% remember to include the .bib extension |
| 29 | +% remember to run biber rather than bibtex if using this option |
| 30 | +\AtEveryCitekey{\ifciteseen{}{\defcounter{maxnames}{99}}} |
| 31 | +$endif$ %biblatex |
| 32 | +$endif$ %natbib |
| 33 | + |
| 34 | +$if(highlighting-macros)$ |
| 35 | +% Pandoc syntax highlighting |
| 36 | +$highlighting-macros$ |
| 37 | +$endif$ |
| 38 | + |
| 39 | +% tightlist command for lists without linebreak |
| 40 | +\providecommand{\tightlist}{% |
| 41 | + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} |
| 42 | + |
| 43 | +$if(tables)$ |
| 44 | +% From pandoc table feature |
| 45 | +\usepackage{array} |
| 46 | +$if(multirow)$ |
| 47 | +\usepackage{multirow} |
| 48 | +$endif$ |
| 49 | +\usepackage{calc} % for calculating minipage widths |
| 50 | +% Correct order of tables after \paragraph or \subparagraph |
| 51 | +\usepackage{etoolbox} |
| 52 | +$endif$ |
| 53 | + |
| 54 | +$if(csl-refs)$ |
| 55 | +% Pandoc citation processing |
| 56 | +\newlength{\cslhangindent} |
| 57 | +\setlength{\cslhangindent}{1.5em} |
| 58 | +\newlength{\csllabelwidth} |
| 59 | +\setlength{\csllabelwidth}{3em} |
| 60 | +\newlength{\cslentryspacingunit} % times entry-spacing |
| 61 | +\setlength{\cslentryspacingunit}{\parskip} |
| 62 | +% for Pandoc 2.8 to 2.10.1 |
| 63 | +\newenvironment{cslreferences}% |
| 64 | + {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% |
| 65 | + \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% |
| 66 | + {\par} |
| 67 | +% For Pandoc 2.11+ |
| 68 | +\newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing |
| 69 | + {% don't indent paragraphs |
| 70 | + \setlength{\parindent}{0pt} |
| 71 | + % turn on hanging indent if param 1 is 1 |
| 72 | + \ifodd #1 |
| 73 | + \let\oldpar\par |
| 74 | + \def\par{\hangindent=\cslhangindent\oldpar} |
| 75 | + \fi |
| 76 | + % set entry spacing |
| 77 | + \setlength{\parskip}{#2\cslentryspacingunit} |
| 78 | + }% |
| 79 | + {} |
| 80 | +\usepackage{calc} |
| 81 | +\newcommand{\CSLBlock}[1]{#1\hfill\break} |
| 82 | +\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} |
| 83 | +\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} |
| 84 | +\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} |
| 85 | +$endif$ |
| 86 | + |
| 87 | +%% END MY ADDITIONS %% |
| 88 | + |
| 89 | +$for(header-includes)$ |
| 90 | +$header-includes$ |
| 91 | +$endfor$ |
| 92 | + |
| 93 | + |
| 94 | +%%%%%%%%%%%%%%%% |
| 95 | +\begin{document} |
| 96 | +%%%%%%%%%%%%%%%% |
| 97 | + |
| 98 | +$for(include-before)$ |
| 99 | +$include-before$ |
| 100 | + |
| 101 | +$endfor$ |
| 102 | + |
| 103 | +\title$if(shorttitle)$[$shorttitle$]$endif${$title$} |
| 104 | + |
| 105 | +$for(authors)$ |
| 106 | +\author{$authors.name$$if(authors.footnote)$\footnote{$authors.footnote$}$endif$} |
| 107 | +$if(authors.address)$\address{$authors.address$}$endif$ |
| 108 | +$if(authors.email)$\ead{$authors.email$}$endif$ |
| 109 | +$endfor$ |
| 110 | + |
| 111 | +\begin{abstract} |
| 112 | +$abstract$ |
| 113 | +\end{abstract} |
| 114 | + |
| 115 | +$if(msc)$\ams{$msc$}$endif$ |
| 116 | + |
| 117 | +\vspace{0.5cm}\noindent\textit{Keywords}: $for(keywords)$$keywords$$sep$, $endfor$ |
| 118 | + |
| 119 | +\maketitle |
| 120 | + |
| 121 | +$if(twocolumn)$\ioptwocol$endif$ |
| 122 | + |
| 123 | +$body$ |
| 124 | + |
| 125 | +$if(acknowledgments)$ |
| 126 | +\ack{$acknowledgments$} |
| 127 | +$endif$ |
| 128 | + |
| 129 | +$if(biblatex)$ |
| 130 | +\printbibliography |
| 131 | +$else$ |
| 132 | +$if(bibliography)$ |
| 133 | +\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} |
| 134 | +$endif$ |
| 135 | +$endif$ |
| 136 | + |
| 137 | + |
| 138 | +$for(include-after)$ |
| 139 | +$include-after$ |
| 140 | + |
| 141 | +$endfor$ |
| 142 | + |
| 143 | + |
| 144 | +\end{document} |
0 commit comments