Skip to content

Commit 1b6c9ee

Browse files
committed
add ims_article(), solves #234
1 parent 159addf commit 1b6c9ee

File tree

16 files changed

+10151
-1
lines changed

16 files changed

+10151
-1
lines changed

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ Authors@R: c(
4545
person('Jay', 'Hesselberth', role = c('aut', 'ctb'), email = '[email protected]', comment = c(ORCID = '0000-0002-6299-179X')),
4646
person("Alfredo", "Hernández", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0002-2660-4545")),
4747
person("Christophe", "Dervieux", role = c("aut"), email = "[email protected]", comment = c(ORCID = "0000-0003-4474-2498")),
48-
person("Stefano", "Coretta", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0001-9627-5532", github = "stefanocoretta"))
48+
person("Stefano", "Coretta", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0001-9627-5532", github = "stefanocoretta")),
49+
person("Alvaro", "Uzaheta", role = c("ctb"), email = "[email protected]", comment = c(github = "auzaheta"))
4950
)
5051
Description: A suite of custom R Markdown formats and templates for
5152
authoring journal articles and conference submissions.

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export(ctex_article)
1717
export(elsevier_article)
1818
export(frontiers_article)
1919
export(ieee_article)
20+
export(ims_article)
2021
export(jasa_article)
2122
export(joss_article)
2223
export(journals)

NEWS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ rticles 0.19
22
---------------------------------------------------------------------
33
- Update Copernicus Publications template to version 6.2 from 2021-01-15 (thanks, @RLumSK, #366).
44

5+
- Add aticle template `ims_article()` for the **Annals of Applied Statistics** (thanks, @auzaheta, #371)
6+
57
rticles 0.18
68
---------------------------------------------------------------------
79

R/article.R

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,17 @@ frontiers_article <- function(..., keep_tex = TRUE) {
175175
pdf_document_format("frontiers", keep_tex = keep_tex, ...)
176176
}
177177

178+
#' @section \code{ims_article}: Format for creating submissions to the Institute of Mathematical Statistics \href{https://imstat.org/}{IMS}
179+
#' journals and publications. It includes the Annals of Applied Statistics. Adapted from
180+
#' \url{https://github.com/vtex-soft/texsupport.ims-aoas}.
181+
#' @export
182+
#' @rdname article
183+
ims_article <- function(..., keep_tex = TRUE) {
184+
pdf_document_format(
185+
"ims", keep_tex = keep_tex,...
186+
)
187+
}
188+
178189
#' @section \code{jasa_article}: Format for creating submissions to the
179190
#' Journal of the Acoustical Society of America. Adapted from
180191
#' \url{https://acousticalsociety.org/preparing-latex-manuscripts/}.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Currently included templates and their contributors are the following:
4141
| [Elsevier](https://www.elsevier.com) | [@cboettig](https://github.com/cboettig) | [#27](https://github.com/rstudio/rticles/pull/27) | `elsevier_article()` |
4242
| [Frontiers](https://www.frontiersin.org/) | [@muschellij2](https://github.com/muschellij2) | [#211](https://github.com/rstudio/rticles/pull/211) | `frontiers_article()` |
4343
| [IEEE Transaction](http://www.ieee.org/publications_standards/publications/authors/author_templates.html) | [@Emaasit](https://github.com/Emaasit), [@espinielli](https://github.com/espinielli), [@nathanweeks](https://github.com/nathanweeks), [@DunLug](https://github.com/DunLug) | [#97](https://github.com/rstudio/rticles/pull/97), [#169](https://github.com/rstudio/rticles/pull/169), [#227](https://github.com/rstudio/rticles/pull/227), [#263](https://github.com/rstudio/rticles/pull/263), [#264](https://github.com/rstudio/rticles/pull/264), [#265](https://github.com/rstudio/rticles/pull/265) | `ieee_article()` |
44+
| [IMS: Institute of Mathematical Statistics](https://imstat.org/) [AoAS: Annals of Applied Statistics](https://imstat.org/journals-and-publications/annals-of-applied-statistics/) | [@auzaheta](https://github.com/auzaheta) | [#371](https://github.com/rstudio/rticles/pull/371) | `ims_article()` |
4445
| [JASA: Journal of the Acoustical Society of America](https://asa.scitation.org/journal/jas) | [@stefanocoretta](https://github.com/stefanocoretta) | [#364](https://github.com/rstudio/rticles/pull/364) | `jasa_article()` |
4546
| [JOSS: Journal of Open Source Software](https://joss.theoj.org/) [JOSE: Journal of Open Source Education](https://jose.theoj.org/) | [@noamross](https://github.com/noamross) | [#229](https://github.com/rstudio/rticles/pull/229) | `joss_article()` |
4647
| [JSS: Journal of Statistical Software](https://www.jstatsoft.org) | | | `jss_article()` |
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
\documentclass[$journal$]{imsart}
2+
%% LaTeX 2e style file for the processing of LaTeX2e files
3+
%% of the following IMS/BS journals:
4+
%%
5+
%% - The Annals of Probability
6+
%% - The Annals of Applied Probability
7+
%% - The Annals of Statistics
8+
%% - The Annals of Applied Statistics
9+
%% - Statistical Science
10+
%% - Probability Surveys
11+
%% - Statistics Surveys
12+
%% - Electronic Journal of Statistics
13+
%% - Bernoulli
14+
%% - Annales de l'Institut Henri Poincar\'e - Probabilit\'es et Statistiques
15+
%% - Brazilian Journal of Probability and Statistics
16+
%% - Bayesian Analysis
17+
%%
18+
%% - Institute of Mathematical Statistics, U.S.A.
19+
%% - Bernoulli Society
20+
%% - Institut Henry Poincare
21+
%% - Brazilian Statistical Association
22+
%% - International Society for Bayesian Analysis
23+
%%
24+
%% Macros written by Vytas Statulevicius, VTeX, Lithuania
25+
%% Maintained by TeX group members, VTeX, Lithuania
26+
%% for Institute of Mathematical Statistics, U.S.A.
27+
%% Please submit bugs or your comments to [email protected]
28+
%%
29+
%% The original distribution is located at:
30+
%% https://www.e-publications.org/ims/support
31+
32+
\RequirePackage{amsthm,amsmath,amsfonts,amssymb}
33+
\RequirePackage[authoryear]{natbib}
34+
\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref}
35+
\RequirePackage{graphicx}
36+
37+
% Added package
38+
\usepackage[T1]{fontenc}
39+
\usepackage[english]{babel}
40+
41+
% Garantees bookdown compilation
42+
%\usepackage{lmodern}
43+
44+
\makeatletter
45+
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
46+
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
47+
\makeatother
48+
% Scale images if necessary, so that they will not overflow the page
49+
% margins by default, and it is still possible to overwrite the defaults
50+
% using explicit options in \includegraphics[width, height, ...]{}
51+
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
52+
% Set default figure placement to htbp
53+
\makeatletter
54+
\def\fps@figure{htbp}
55+
\makeatother
56+
\setlength{\emergencystretch}{3em} % prevent overfull lines
57+
\providecommand{\tightlist}{%
58+
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
59+
60+
% alternative version to the shaded problem
61+
\makeatletter
62+
\@ifundefined{Shaded}{
63+
}{\renewenvironment{Shaded}{\begin{kframe}}{\end{kframe}}}
64+
\makeatother
65+
66+
% avoid conflict of pandoc parser and imsart package
67+
\newcommand{\email}[1]{#1}
68+
69+
70+
\startlocaldefs
71+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72+
% %%
73+
% Uncomment next line to change %%
74+
% the type of equation numbering %%
75+
% %%
76+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
77+
\numberwithin{equation}{section}
78+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
79+
% %%
80+
% For Axiom, Claim, Corollary, Hypothezis, %%
81+
% Lemma, Theorem, Proposition %%
82+
% use \theoremstyle{plain} %%
83+
% %%
84+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
85+
\theoremstyle{plain}
86+
\newtheorem{axiom}{Axiom}
87+
\newtheorem{claim}[axiom]{Claim}
88+
\newtheorem{theorem}{Theorem}[section]
89+
\newtheorem{lemma}[theorem]{Lemma}
90+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91+
% %%
92+
% For Assumption, Definition, Example, %%
93+
% Notation, Property, Remark, Fact %%
94+
% use \theoremstyle{remark} %%
95+
% %%
96+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
97+
\theoremstyle{remark}
98+
\newtheorem{definition}[theorem]{Definition}
99+
\newtheorem*{example}{Example}
100+
\newtheorem*{fact}{Fact}
101+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
102+
% Please put your definitions here: %%
103+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
104+
\endlocaldefs
105+
106+
% pandoc header
107+
$for(header-includes)$
108+
$header-includes$
109+
$endfor$
110+
111+
\begin{document}
112+
\begin{frontmatter}
113+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
114+
%% %%
115+
%% Enter the title of your article here %%
116+
%% %%
117+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
118+
\title{$title$$if(thanks)$$for(thanks)$\thanksref{$thanks.ref$}$endfor$$endif$}
119+
%\title{A sample article title with some additional note\thanksref{T1}}
120+
\runtitle{$runtitle$}
121+
%\thankstext{T1}{A sample of additional note to the title.}
122+
123+
$if(thanks)$
124+
$for(thanks)$
125+
\thankstext{$thanks.ref$}{$thanks.text$}$sep$
126+
$endfor$
127+
$endif$
128+
129+
130+
\begin{aug}
131+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
132+
%%Only one address is permitted per author. %%
133+
%%Only division, organization and e-mail is %%
134+
%%included in the address. %%
135+
%%Additional information can be included in %%
136+
%%the Acknowledgments section if necessary. %%
137+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
138+
139+
%% Example:
140+
%%\author[A]{\fnms{First} \snm{Author}\ead[label=e1]{[email protected]}},
141+
%%\author[B]{\fnms{Second} \snm{Author}\ead[label=e2,mark]{[email protected]}}
142+
%%\and
143+
%%\author[B]{\fnms{Third} \snm{Author}\ead[label=e3,mark]{[email protected]}}
144+
145+
$for(author)$
146+
\author[$author.addressLabel$]{\fnms{$author.name$} \snm{$author.surname$}
147+
\ead[label=$author.label$]{$author.email$}}
148+
$if(author.sepNext)$$author.sepNext$$endif$
149+
$endfor$
150+
151+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
152+
%% Addresses %%
153+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
154+
%% Example:
155+
%%\address[B]{Department,
156+
%%University or Company Name,
157+
%%\printead{e2,e3}}
158+
$for(affiliation)$
159+
\address[$affiliation.label$]{$affiliation.name$,
160+
\printead{$affiliation.authorsLabels$}}
161+
$sep$
162+
$endfor$
163+
\end{aug}
164+
165+
\begin{abstract}
166+
$abstract$
167+
\end{abstract}
168+
169+
\begin{keyword}
170+
$for(keywords)$
171+
\kwd{$keywords$}
172+
$sep$
173+
$endfor$
174+
\end{keyword}
175+
176+
\end{frontmatter}
177+
178+
$if(toc)$
179+
\tableofcontents
180+
$endif$
181+
182+
$body$
183+
184+
$if(bibliography)$
185+
$if(biblio-style)$
186+
\bibliographystyle{$biblio-style$}
187+
$endif$
188+
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
189+
$endif$
190+
191+
$for(include-after)$
192+
$include-after$
193+
194+
$endfor$
195+
196+
\end{document}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 VTeX Software
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
@book{billingsley2013convergence,
2+
title={Convergence of Probability Measures},
3+
author={Billingsley, Patrick},
4+
year={1999},
5+
publisher={John Wiley \& Sons},
6+
edition={2nd ed.}
7+
}
8+
@book{bourbaki1966general,
9+
title={General Topology},
10+
author={Bourbaki, Nicolas},
11+
volume={1},
12+
year={1966},
13+
publisher={Addison--Wesley, Reading, MA.}
14+
}
15+
@book{ethier1985markov,
16+
title={Markov Processes: Characterization and Convergence},
17+
author={Ethier, Stewart N and Kurtz, Thomas G},
18+
year={1985},
19+
publisher={Wiley, New York}
20+
}
21+
@article{prokhorov1956convergence,
22+
title={Convergence of random processes and limit theorems in probability theory},
23+
author={Prokhorov, Yu V},
24+
journal={Theory of Probability \& Its Applications},
25+
volume={1},
26+
number={2},
27+
pages={157--214},
28+
year={1956},
29+
publisher={SIAM}
30+
}

0 commit comments

Comments
 (0)