From 8757713a10405f012f2816514bc14c637e0f47ac Mon Sep 17 00:00:00 2001 From: alex hayes Date: Mon, 3 Aug 2020 15:16:34 -0500 Subject: [PATCH] close #235: provide the arXiv template (#236) --- DESCRIPTION | 1 + NAMESPACE | 1 + NEWS.md | 4 +- R/article.R | 11 + README.md | 2 + .../arxiv_article/resources/README.md | 49 ++++ .../arxiv_article/resources/template.tex | 73 +++++ .../arxiv_article/skeleton/arxiv.sty | 255 ++++++++++++++++++ .../arxiv_article/skeleton/references.bib | 24 ++ .../arxiv_article/skeleton/skeleton.Rmd | 117 ++++++++ .../templates/arxiv_article/template.yaml | 4 + man/article.Rd | 9 + tests/testit/test-formats.R | 1 + 13 files changed, 550 insertions(+), 1 deletion(-) create mode 100644 inst/rmarkdown/templates/arxiv_article/resources/README.md create mode 100644 inst/rmarkdown/templates/arxiv_article/resources/template.tex create mode 100644 inst/rmarkdown/templates/arxiv_article/skeleton/arxiv.sty create mode 100644 inst/rmarkdown/templates/arxiv_article/skeleton/references.bib create mode 100644 inst/rmarkdown/templates/arxiv_article/skeleton/skeleton.Rmd create mode 100644 inst/rmarkdown/templates/arxiv_article/template.yaml diff --git a/DESCRIPTION b/DESCRIPTION index 64c4d6144..0634cf685 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -34,6 +34,7 @@ Authors@R: c( person("Petter", "Uvesten", role = c("aut", "cph"), email = "petter.uvesten.7362@student.lu.se"), person("Elio", "Campitelli", role = c("aut", "cph"), email = "elio.campitelli@cima.fcen.uba.ar", comment = c(ORCID = "0000-0002-7742-9230")), person("John", "Muschelli", role = c("aut", "cph"), email = "muschellij2@gmail.com", comment = c(ORCID = "0000-0001-6469-1750")), + person("Alex", "Hayes", role = "aut", email = "alexpghayes@gmail.com", comment = c(ORCID = "0000-0002-4985-5160")), person("Zhian N.", "Kamvar", role = c("aut", "cph"), email = "zkamvar@gmail.com", comment = c(ORCID = "0000-0003-1458-7108")), person("Noam", "Ross", role = c("aut", "cph"), email = "noam.ross@gmail.com", comment = c(ORCID = "0000-0002-2136-0000")), person("Robrecht", "Cannoodt", role = c("aut", "cph"), email = "rcannood@gmail.com", comment = c(ORCID = "0000-0003-3641-729X", github = "rcannood")), diff --git a/NAMESPACE b/NAMESPACE index 1a89fd193..fffd81568 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -6,6 +6,7 @@ export(aea_article) export(agu_article) export(amq_article) export(ams_article) +export(arxiv_article) export(asa_article) export(biometrics_article) export(copernicus_article) diff --git a/NEWS.md b/NEWS.md index 7954b1eb1..a3423331d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,8 @@ rticles 0.15 - Added the missing support for `header-includes` to the Biometrics template (thanks, @haozhu233, #296). +- Added support for George Kour's arXiv preprint format (thanks, @alexpghayes, #236). + rticles 0.14 --------------------------------------------------------------------- @@ -55,7 +57,7 @@ rticles 0.9 - Update Copernicus Publications template to version 5.3 (@nuest, #228). -- Use csl file for citations in output format `elsevier_article()` (@nuest, #233) +- Use csl file for citations in output format `elsevier_article()` (@nuest, #233). rticles 0.8 --------------------------------------------------------------------- diff --git a/R/article.R b/R/article.R index c7f3db4bc..03db85b43 100644 --- a/R/article.R +++ b/R/article.R @@ -104,6 +104,17 @@ asa_article <- function(..., keep_tex = TRUE, citation_package = 'natbib') { ) } +#' @section \code{arxiv_article}: Adapted from the George Kour's format for +#' arXiv and bio-arXiv preprints. So far as I'm aware, entirely +#' unofficial but still a staple. +#' @export +#' @rdname article +arxiv_article <- function(..., keep_tex = TRUE) { + pdf_document_format( + "arxiv_article", keep_tex = keep_tex, ... + ) +} + #' @section \code{biometrics_article}: This format was adapted from the #' Biometrics journal. #' @export diff --git a/README.md b/README.md index c7a321e1b..1e37194b5 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,8 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown - [AMS](https://www.ametsoc.org/) articles +- [arXiv](https://arxiv.org/) pre-prints based on George Kour's template (contributed by @alexpghayes via #236) + - [Biometrics](http://www.biometrics.tibs.org/) articles - [Bulletin de l'AMQ](https://www.amq.math.ca/bulletin/) journal submissions diff --git a/inst/rmarkdown/templates/arxiv_article/resources/README.md b/inst/rmarkdown/templates/arxiv_article/resources/README.md new file mode 100644 index 000000000..c87e8a813 --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/resources/README.md @@ -0,0 +1,49 @@ + +## Description: + +The project hosts an aesthetic an simple LaTeX style suitable for "preprint" publications such as arXiv and bio-arXiv, etc. +It is based on the [**nips_2018.sty**](https://media.nips.cc/Conferences/NIPS2018/Styles/nips_2018.sty) style. + +This styling maintains the esthetic of NIPS but adding and changing features to make it (IMO) even better and nore suitable for preprints. +The result looks fairly different from NIPS style so that readers won't get confused to think that the preprint was published in NIPS. + +### Why NIPS? +Because the NIPS styling is a comfortable single column format that is very esthetic and convenient for reading. + +## Usage: +1. Use Document class **article**. +2. Copy **arxiv.sty** to the folder containing your tex file. +3. add `\usepackage{arxiv}` after `\documentclass{article}`. +4. The only packages used in the style file are **geometry** and **fancyheader**. Do not reimport them. + +See **template.tex** + +## Project files: +1. **arxiv.sty** - the style file. +2. **template.tex** - a sample template that uses the **arxiv style**. +3. **references.bib** - the bibliography source file for template.tex. +4. **template.pdf** - a sample output of the template file that demonstrated the design provided by the arxiv style. + + +## Handling References when submitting to arXiv.org +The most convenient way to manage references is using an external BibTeX file and pointing to it from the main file. +However, this requires running the [bibtex](http://www.bibtex.org/) tool to "compile" the `.bib` file and create `.bbl` file containing "bibitems" that can be directly inserted in the main tex file. +However, unfortunately the arXiv Tex environment ([Tex Live](https://www.tug.org/texlive/)) do not do that. +So easiest way when submitting to arXiv is to create a single self-contained .tex file that contains the references. +This can be done by running the BibTeX command on your machine and insert the content of the generated `.bbl` file into the `.tex` file and commenting out the `\bibliography{references}` that point to the external references file. + +Below are the commands that should be run in the project folder: +1. Run `$ latex template` +2. Run `$ bibtex template` +3. A `template.bbl` file will be generated (make sure it is there) +4. Copy the `template.bbl` file content to `template.tex` into the `\begin{thebibliography}` command. +5. Comment out the `\bibliography{references}` command in `template.tex`. +6. You ready to submit to arXiv.org. + + +## General Notes: +1. For help, comments, praises, bug reporting or change requests, you can contact the author at: kourgeorge/at/gmail.com. +2. You can use, redistribute and do whatever with this project, however, the author takes no responsibility on whatever usage of this project. +3. If you start another project based on this project, it would be nice to mention/link to this project. +4. You are very welcome to contribute to this project. +5. A good looking 2 column template can be found in https://github.com/brenhinkeller/preprint-template.tex. diff --git a/inst/rmarkdown/templates/arxiv_article/resources/template.tex b/inst/rmarkdown/templates/arxiv_article/resources/template.tex new file mode 100644 index 000000000..720e800c3 --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/resources/template.tex @@ -0,0 +1,73 @@ +\documentclass{article} + +\usepackage{arxiv} + +\usepackage[utf8]{inputenc} % allow utf-8 input +\usepackage[T1]{fontenc} % use 8-bit T1 fonts +\usepackage{hyperref} % hyperlinks +\usepackage{url} % simple URL typesetting +\usepackage{booktabs} % professional-quality tables +\usepackage{amsfonts} % blackboard math symbols +\usepackage{nicefrac} % compact symbols for 1/2, etc. +\usepackage{microtype} % microtypography +\usepackage{lipsum} + +\title{$title$} + +\author{ + $for(authors)$ + $authors.name$ + $if(authors.thanks)$ + \thanks{$authors.thanks$} + $endif$ \\ + $if(authors.department)$ + $authors.department$ \\ + $endif$ + $authors.affiliation$ \\ + $authors.location$ \\ + \texttt{$authors.email$} \\ + $sep$ \And + $endfor$ +} + +$if(csl-refs)$ +\newlength{\cslhangindent} +\setlength{\cslhangindent}{1.5em} +\newenvironment{cslreferences}% + {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% + \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% + {\par} +$endif$ + +\begin{document} +\maketitle + +\def\tightlist{} + +$for(include-before)$ +$include-before$ +$endfor$ + +\begin{abstract} +$abstract$ +\end{abstract} + +$if(keywords)$ +\keywords{ + $for(keywords)$ + $keywords$ + $sep$ \and + $endfor$ +} +$endif$ + +$body$ + +\bibliographystyle{unsrt} +\bibliography{$bibliography$} + +$for(include-after)$ +$include-after$ +$endfor$ + +\end{document} diff --git a/inst/rmarkdown/templates/arxiv_article/skeleton/arxiv.sty b/inst/rmarkdown/templates/arxiv_article/skeleton/arxiv.sty new file mode 100644 index 000000000..f32d6d899 --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/skeleton/arxiv.sty @@ -0,0 +1,255 @@ +\NeedsTeXFormat{LaTeX2e} + +\ProcessOptions\relax + +% fonts +\renewcommand{\rmdefault}{ptm} +\renewcommand{\sfdefault}{phv} + +% set page geometry +\usepackage[verbose=true,letterpaper]{geometry} +\AtBeginDocument{ + \newgeometry{ + textheight=9in, + textwidth=6.5in, + top=1in, + headheight=14pt, + headsep=25pt, + footskip=30pt + } +} + +\widowpenalty=10000 +\clubpenalty=10000 +\flushbottom +\sloppy + +\usepackage{fancyhdr} +\fancyhf{} +\pagestyle{fancy} +\renewcommand{\headrulewidth}{0pt} +\fancyheadoffset{0pt} +\rhead{\scshape A preprint - \today} +\cfoot{\thepage} + + +%Handling Keywords +\def\keywordname{{\bfseries \emph Keywords}}% +\def\keywords#1{\par\addvspace\medskipamount{\rightskip=0pt plus1cm +\def\and{\ifhmode\unskip\nobreak\fi\ $\cdot$ +}\noindent\keywordname\enspace\ignorespaces#1\par}} + +% font sizes with reduced leading +\renewcommand{\normalsize}{% + \@setfontsize\normalsize\@xpt\@xipt + \abovedisplayskip 7\p@ \@plus 2\p@ \@minus 5\p@ + \abovedisplayshortskip \z@ \@plus 3\p@ + \belowdisplayskip \abovedisplayskip + \belowdisplayshortskip 4\p@ \@plus 3\p@ \@minus 3\p@ +} +\normalsize +\renewcommand{\small}{% + \@setfontsize\small\@ixpt\@xpt + \abovedisplayskip 6\p@ \@plus 1.5\p@ \@minus 4\p@ + \abovedisplayshortskip \z@ \@plus 2\p@ + \belowdisplayskip \abovedisplayskip + \belowdisplayshortskip 3\p@ \@plus 2\p@ \@minus 2\p@ +} +\renewcommand{\footnotesize}{\@setfontsize\footnotesize\@ixpt\@xpt} +\renewcommand{\scriptsize}{\@setfontsize\scriptsize\@viipt\@viiipt} +\renewcommand{\tiny}{\@setfontsize\tiny\@vipt\@viipt} +\renewcommand{\large}{\@setfontsize\large\@xiipt{14}} +\renewcommand{\Large}{\@setfontsize\Large\@xivpt{16}} +\renewcommand{\LARGE}{\@setfontsize\LARGE\@xviipt{20}} +\renewcommand{\huge}{\@setfontsize\huge\@xxpt{23}} +\renewcommand{\Huge}{\@setfontsize\Huge\@xxvpt{28}} + +% sections with less space +\providecommand{\section}{} +\renewcommand{\section}{% + \@startsection{section}{1}{\z@}% + {-2.0ex \@plus -0.5ex \@minus -0.2ex}% + { 1.5ex \@plus 0.3ex \@minus 0.2ex}% + {\large\bf\raggedright}% +} +\providecommand{\subsection}{} +\renewcommand{\subsection}{% + \@startsection{subsection}{2}{\z@}% + {-1.8ex \@plus -0.5ex \@minus -0.2ex}% + { 0.8ex \@plus 0.2ex}% + {\normalsize\bf\raggedright}% +} +\providecommand{\subsubsection}{} +\renewcommand{\subsubsection}{% + \@startsection{subsubsection}{3}{\z@}% + {-1.5ex \@plus -0.5ex \@minus -0.2ex}% + { 0.5ex \@plus 0.2ex}% + {\normalsize\bf\raggedright}% +} +\providecommand{\paragraph}{} +\renewcommand{\paragraph}{% + \@startsection{paragraph}{4}{\z@}% + {1.5ex \@plus 0.5ex \@minus 0.2ex}% + {-1em}% + {\normalsize\bf}% +} +\providecommand{\subparagraph}{} +\renewcommand{\subparagraph}{% + \@startsection{subparagraph}{5}{\z@}% + {1.5ex \@plus 0.5ex \@minus 0.2ex}% + {-1em}% + {\normalsize\bf}% +} +\providecommand{\subsubsubsection}{} +\renewcommand{\subsubsubsection}{% + \vskip5pt{\noindent\normalsize\rm\raggedright}% +} + +% float placement +\renewcommand{\topfraction }{0.85} +\renewcommand{\bottomfraction }{0.4} +\renewcommand{\textfraction }{0.1} +\renewcommand{\floatpagefraction}{0.7} + +\newlength{\@abovecaptionskip}\setlength{\@abovecaptionskip}{7\p@} +\newlength{\@belowcaptionskip}\setlength{\@belowcaptionskip}{\z@} + +\setlength{\abovecaptionskip}{\@abovecaptionskip} +\setlength{\belowcaptionskip}{\@belowcaptionskip} + +% swap above/belowcaptionskip lengths for tables +\renewenvironment{table} + {\setlength{\abovecaptionskip}{\@belowcaptionskip}% + \setlength{\belowcaptionskip}{\@abovecaptionskip}% + \@float{table}} + {\end@float} + +% footnote formatting +\setlength{\footnotesep }{6.65\p@} +\setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@} +\renewcommand{\footnoterule}{\kern-3\p@ \hrule width 12pc \kern 2.6\p@} +\setcounter{footnote}{0} + +% paragraph formatting +\setlength{\parindent}{\z@} +\setlength{\parskip }{5.5\p@} + +% list formatting +\setlength{\topsep }{4\p@ \@plus 1\p@ \@minus 2\p@} +\setlength{\partopsep }{1\p@ \@plus 0.5\p@ \@minus 0.5\p@} +\setlength{\itemsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@} +\setlength{\parsep }{2\p@ \@plus 1\p@ \@minus 0.5\p@} +\setlength{\leftmargin }{3pc} +\setlength{\leftmargini }{\leftmargin} +\setlength{\leftmarginii }{2em} +\setlength{\leftmarginiii}{1.5em} +\setlength{\leftmarginiv }{1.0em} +\setlength{\leftmarginv }{0.5em} +\def\@listi {\leftmargin\leftmargini} +\def\@listii {\leftmargin\leftmarginii + \labelwidth\leftmarginii + \advance\labelwidth-\labelsep + \topsep 2\p@ \@plus 1\p@ \@minus 0.5\p@ + \parsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@ + \itemsep \parsep} +\def\@listiii{\leftmargin\leftmarginiii + \labelwidth\leftmarginiii + \advance\labelwidth-\labelsep + \topsep 1\p@ \@plus 0.5\p@ \@minus 0.5\p@ + \parsep \z@ + \partopsep 0.5\p@ \@plus 0\p@ \@minus 0.5\p@ + \itemsep \topsep} +\def\@listiv {\leftmargin\leftmarginiv + \labelwidth\leftmarginiv + \advance\labelwidth-\labelsep} +\def\@listv {\leftmargin\leftmarginv + \labelwidth\leftmarginv + \advance\labelwidth-\labelsep} +\def\@listvi {\leftmargin\leftmarginvi + \labelwidth\leftmarginvi + \advance\labelwidth-\labelsep} + +% create title +\providecommand{\maketitle}{} +\renewcommand{\maketitle}{% + \par + \begingroup + \renewcommand{\thefootnote}{\fnsymbol{footnote}} + % for perfect author name centering + \renewcommand{\@makefnmark}{\hbox to \z@{$^{\@thefnmark}$\hss}} + % The footnote-mark was overlapping the footnote-text, + % added the following to fix this problem (MK) + \long\def\@makefntext##1{% + \parindent 1em\noindent + \hbox to 1.8em{\hss $\m@th ^{\@thefnmark}$}##1 + } + \thispagestyle{empty} + \@maketitle + \@thanks + %\@notice + \endgroup + \let\maketitle\relax + \let\thanks\relax +} + +% rules for title box at top of first page +\newcommand{\@toptitlebar}{ + \hrule height 2\p@ + \vskip 0.25in + \vskip -\parskip% +} +\newcommand{\@bottomtitlebar}{ + \vskip 0.29in + \vskip -\parskip + \hrule height 2\p@ + \vskip 0.09in% +} + +% create title (includes both anonymized and non-anonymized versions) +\providecommand{\@maketitle}{} +\renewcommand{\@maketitle}{% + \vbox{% + \hsize\textwidth + \linewidth\hsize + \vskip 0.1in + \@toptitlebar + \centering + {\LARGE\sc \@title\par} + \@bottomtitlebar + \textsc{A Preprint}\\ + \vskip 0.1in + \def\And{% + \end{tabular}\hfil\linebreak[0]\hfil% + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces% + } + \def\AND{% + \end{tabular}\hfil\linebreak[4]\hfil% + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\ignorespaces% + } + \begin{tabular}[t]{c}\bf\rule{\z@}{24\p@}\@author\end{tabular}% + \vskip 0.4in \@minus 0.1in \center{\today} \vskip 0.2in + } +} + +% add conference notice to bottom of first page +\newcommand{\ftype@noticebox}{8} +\newcommand{\@notice}{% + % give a bit of extra room back to authors on first page + \enlargethispage{2\baselineskip}% + \@float{noticebox}[b]% + \footnotesize\@noticestring% + \end@float% +} + +% abstract styling +\renewenvironment{abstract} +{ + \centerline + {\large \bfseries \scshape Abstract} + \begin{quote} +} +{ + \end{quote} +} + +\endinput diff --git a/inst/rmarkdown/templates/arxiv_article/skeleton/references.bib b/inst/rmarkdown/templates/arxiv_article/skeleton/references.bib new file mode 100644 index 000000000..463fa9559 --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/skeleton/references.bib @@ -0,0 +1,24 @@ +@inproceedings{kour2014real, + title={Real-time segmentation of on-line handwritten arabic script}, + author={Kour, George and Saabne, Raid}, + booktitle={Frontiers in Handwriting Recognition (ICFHR), 2014 14th International Conference on}, + pages={417--422}, + year={2014}, + organization={IEEE} +} + +@inproceedings{kour2014fast, + title={Fast classification of handwritten on-line Arabic characters}, + author={Kour, George and Saabne, Raid}, + booktitle={Soft Computing and Pattern Recognition (SoCPaR), 2014 6th International Conference of}, + pages={312--318}, + year={2014}, + organization={IEEE} +} + +@article{hadash2018estimate, + title={Estimate and Replace: A Novel Approach to Integrating Deep Neural Networks with Existing Applications}, + author={Hadash, Guy and Kermany, Einat and Carmeli, Boaz and Lavi, Ofer and Kour, George and Jacovi, Alon}, + journal={arXiv preprint arXiv:1804.09028}, + year={2018} +} \ No newline at end of file diff --git a/inst/rmarkdown/templates/arxiv_article/skeleton/skeleton.Rmd b/inst/rmarkdown/templates/arxiv_article/skeleton/skeleton.Rmd new file mode 100644 index 000000000..87c0f7763 --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/skeleton/skeleton.Rmd @@ -0,0 +1,117 @@ +--- +title: A template for the *arxiv* style +authors: + - name: David S. Hippocampus + thanks: Use footnote for providing further information about author (webpage, alternative address)---*not* for acknowledging funding agencies. Optional. + department: Department of Computer Science + affiliation: Cranberry-Lemon University + location: Pittsburgh, PA 15213 + email: hippo@cs.cranberry-lemon.edu + - name: Elias D. Striatum + department: Department of Electrical Engineering + affiliation: Mount-Sheikh University + location: Santa Narimana, Levand + email: stariate@ee.mount-sheikh.edu +abstract: | + Enter the text of your abstract here. +keywords: + - blah + - blee + - bloo + - these are optional and can be removed +bibliography: references.bib +output: rticles::arxiv_article +--- + +# Introduction + +\lipsum[2] +\lipsum[3] + +# Headings: first level +\label{sec:headings} + +\lipsum[4] See Section \ref{sec:headings}. + +## Headings: second level +\lipsum[5] + +\begin{equation} +\xi _{ij}(t)=P(x_{t}=i,x_{t+1}=j|y,v,w;\theta)= {\frac {\alpha _{i}(t)a^{w_t}_{ij}\beta _{j}(t+1)b^{v_{t+1}}_{j}(y_{t+1})}{\sum _{i=1}^{N} \sum _{j=1}^{N} \alpha _{i}(t)a^{w_t}_{ij}\beta _{j}(t+1)b^{v_{t+1}}_{j}(y_{t+1})}} +\end{equation} + +### Headings: third level +\lipsum[6] + +\paragraph{Paragraph} +\lipsum[7] + +# Examples of citations, figures, tables, references +\label{sec:others} + +\lipsum[8] some text [@kour2014real; @kour2014fast] and see @hadash2018estimate. + +The documentation for \verb+natbib+ may be found at +\begin{center} + \url{http://mirrors.ctan.org/macros/latex/contrib/natbib/natnotes.pdf} +\end{center} +Of note is the command \verb+\citet+, which produces citations +appropriate for use in inline text. For example, + +\begin{verbatim} + \citet{hasselmo} investigated\dots +\end{verbatim} + +produces + +\begin{quote} + Hasselmo, et al.\ (1995) investigated\dots +\end{quote} + +\begin{center} + \url{https://www.ctan.org/pkg/booktabs} +\end{center} + + +## Figures + +\lipsum[10] +See Figure \ref{fig:fig1}. Here is how you add footnotes. [^Sample of the first footnote.] + +\lipsum[11] + +\begin{figure} + \centering + \fbox{\rule[-.5cm]{4cm}{4cm} \rule[-.5cm]{4cm}{0cm}} + \caption{Sample figure caption.} + \label{fig:fig1} +\end{figure} + +## Tables + +\lipsum[12] + +See awesome Table~\ref{tab:table}. + +\begin{table} + \caption{Sample table title} + \centering + \begin{tabular}{lll} + \toprule + \multicolumn{2}{c}{Part} \\ + \cmidrule(r){1-2} + Name & Description & Size ($\mu$m) \\ + \midrule + Dendrite & Input terminal & $\sim$100 \\ + Axon & Output terminal & $\sim$10 \\ + Soma & Cell body & up to $10^6$ \\ + \bottomrule + \end{tabular} + \label{tab:table} +\end{table} + +## Lists + +- Lorem ipsum dolor sit amet +- consectetur adipiscing elit. +- Aliquam dignissim blandit est, in dictum tortor gravida eget. In ac rutrum magna. diff --git a/inst/rmarkdown/templates/arxiv_article/template.yaml b/inst/rmarkdown/templates/arxiv_article/template.yaml new file mode 100644 index 000000000..bd79caf7b --- /dev/null +++ b/inst/rmarkdown/templates/arxiv_article/template.yaml @@ -0,0 +1,4 @@ +name: arXiv Preprint +description: > + Template for arXiv preprints +create_dir: true diff --git a/man/article.Rd b/man/article.Rd index 8dafbb8f2..63cee91e0 100644 --- a/man/article.Rd +++ b/man/article.Rd @@ -8,6 +8,7 @@ \alias{amq_article} \alias{ams_article} \alias{asa_article} +\alias{arxiv_article} \alias{biometrics_article} \alias{ctex} \alias{elsevier_article} @@ -55,6 +56,8 @@ ams_article(..., keep_tex = TRUE, md_extensions = c("-autolink_bare_uris")) asa_article(..., keep_tex = TRUE, citation_package = "natbib") +arxiv_article(..., keep_tex = TRUE) + biometrics_article(..., keep_tex = TRUE, citation_package = "natbib") ctex(..., latex_engine = "xelatex") @@ -147,6 +150,12 @@ custom Pandoc LaTeX template and different default values for other arguments American Statistical Association (ASA) journals. } +\section{\code{arxiv_article}}{ + Adapted from the George Kour's format for + arXiv and bio-arXiv preprints. So far as I'm aware, entirely + unofficial but still a staple. +} + \section{\code{biometrics_article}}{ This format was adapted from the Biometrics journal. diff --git a/tests/testit/test-formats.R b/tests/testit/test-formats.R index 73d511c1f..86a69923e 100644 --- a/tests/testit/test-formats.R +++ b/tests/testit/test-formats.R @@ -30,6 +30,7 @@ test_format("acs_article") test_format("aea_article") test_format("agu_article") test_format("ams_article") +test_format("arxiv_article") test_format("asa_article") test_format("biometrics_article") test_format("elsevier_article")