-
Notifications
You must be signed in to change notification settings - Fork 522
Add IOP template #462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add IOP template #462
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
734dd2c
IOP template
robjhyndman d0ee59c
Added test for iop
robjhyndman 98a04c4
Merge upstream
robjhyndman d6a0d53
Moved "include-before" to just after "\begin{document}"
robjhyndman 5f5737e
Added request to read IOP guidelines carefully
robjhyndman ecb6bdf
Added more referencing options
robjhyndman 3af253e
Regenerated Rd file
robjhyndman e21b343
Removed csl files from IOP resources
robjhyndman 9c4ef52
Bump version
cderv 1cb18fc
Merge branch 'master' into master
cderv File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,144 @@ | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| %% Author template for Institute of Physics (IOP) Journal articles | ||
| %% Adapted for rticles by Rob J Hyndman Rob.Hyndman@monash.edu. Dec 2021 | ||
| %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
| \documentclass[$if(fontsize)$$fontsize$$else$$if(twocolumn)$10pt$else$12pt$endif$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{iopart} | ||
|
|
||
| %% BEGIN MY ADDITIONS %% | ||
| \pdfminorversion=4 | ||
| \usepackage{hyperref, graphicx, booktabs, longtable} | ||
| % Bibliography allowing natbib with Harvard or Vancouver | ||
| $if(natbib)$ | ||
| \usepackage{har2nat} % loads 'natbib' automatically | ||
| \bibliographystyle{$if(biblio-style)$$biblio-style$$else$dcu$endif$} | ||
| \providecommand\newblock{} % suppress some meaningless warnings | ||
| $else$ | ||
| $if(biblatex)$ | ||
| % BibLaTeX setup, recommended | ||
| \usepackage[backend=biber, | ||
| style=$if(biblio-style)$$biblio-style$$else$authoryear$endif$, | ||
| mincrossrefs=50, | ||
| maxcitenames=3, | ||
| maxbibnames=50, | ||
| useprefix=true, | ||
| doi=false]{biblatex} | ||
| $for(bibliography)$ | ||
| \addbibresource{$bibliography$} | ||
| $endfor$ | ||
| % remember to include the .bib extension | ||
| % remember to run biber rather than bibtex if using this option | ||
| \AtEveryCitekey{\ifciteseen{}{\defcounter{maxnames}{99}}} | ||
| $endif$ %biblatex | ||
| $endif$ %natbib | ||
|
|
||
| $if(highlighting-macros)$ | ||
| % Pandoc syntax highlighting | ||
| $highlighting-macros$ | ||
| $endif$ | ||
|
|
||
| % tightlist command for lists without linebreak | ||
| \providecommand{\tightlist}{% | ||
| \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
|
|
||
| $if(tables)$ | ||
| % From pandoc table feature | ||
| \usepackage{array} | ||
| $if(multirow)$ | ||
| \usepackage{multirow} | ||
| $endif$ | ||
| \usepackage{calc} % for calculating minipage widths | ||
| % Correct order of tables after \paragraph or \subparagraph | ||
| \usepackage{etoolbox} | ||
| $endif$ | ||
|
|
||
| $if(csl-refs)$ | ||
| % Pandoc citation processing | ||
| \newlength{\cslhangindent} | ||
| \setlength{\cslhangindent}{1.5em} | ||
| \newlength{\csllabelwidth} | ||
| \setlength{\csllabelwidth}{3em} | ||
| \newlength{\cslentryspacingunit} % times entry-spacing | ||
| \setlength{\cslentryspacingunit}{\parskip} | ||
| % for Pandoc 2.8 to 2.10.1 | ||
| \newenvironment{cslreferences}% | ||
| {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% | ||
| \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% | ||
| {\par} | ||
| % For Pandoc 2.11+ | ||
| \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing | ||
| {% don't indent paragraphs | ||
| \setlength{\parindent}{0pt} | ||
| % turn on hanging indent if param 1 is 1 | ||
| \ifodd #1 | ||
| \let\oldpar\par | ||
| \def\par{\hangindent=\cslhangindent\oldpar} | ||
| \fi | ||
| % set entry spacing | ||
| \setlength{\parskip}{#2\cslentryspacingunit} | ||
| }% | ||
| {} | ||
| \usepackage{calc} | ||
| \newcommand{\CSLBlock}[1]{#1\hfill\break} | ||
| \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} | ||
| \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} | ||
| \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} | ||
| $endif$ | ||
|
|
||
| %% END MY ADDITIONS %% | ||
|
|
||
| $for(header-includes)$ | ||
| $header-includes$ | ||
| $endfor$ | ||
|
|
||
|
|
||
| %%%%%%%%%%%%%%%% | ||
| \begin{document} | ||
| %%%%%%%%%%%%%%%% | ||
|
|
||
| $for(include-before)$ | ||
| $include-before$ | ||
|
|
||
| $endfor$ | ||
|
|
||
| \title$if(shorttitle)$[$shorttitle$]$endif${$title$} | ||
|
|
||
| $for(authors)$ | ||
| \author{$authors.name$$if(authors.footnote)$\footnote{$authors.footnote$}$endif$} | ||
| $if(authors.address)$\address{$authors.address$}$endif$ | ||
| $if(authors.email)$\ead{$authors.email$}$endif$ | ||
| $endfor$ | ||
|
|
||
| \begin{abstract} | ||
| $abstract$ | ||
| \end{abstract} | ||
|
|
||
| $if(msc)$\ams{$msc$}$endif$ | ||
|
|
||
| \vspace{0.5cm}\noindent\textit{Keywords}: $for(keywords)$$keywords$$sep$, $endfor$ | ||
|
|
||
| \maketitle | ||
|
|
||
| $if(twocolumn)$\ioptwocol$endif$ | ||
|
|
||
| $body$ | ||
|
|
||
| $if(acknowledgments)$ | ||
| \ack{$acknowledgments$} | ||
| $endif$ | ||
|
|
||
| $if(biblatex)$ | ||
| \printbibliography | ||
| $else$ | ||
| $if(bibliography)$ | ||
| \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} | ||
| $endif$ | ||
| $endif$ | ||
|
|
||
|
|
||
| $for(include-after)$ | ||
| $include-after$ | ||
|
|
||
| $endfor$ | ||
|
|
||
|
|
||
| \end{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.