-
Notifications
You must be signed in to change notification settings - Fork 522
add ims_article()
#372
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 ims_article()
#372
Changes from 6 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
d0a54c3
add `ims_article()`, solves #234
auzaheta 9c3d720
Add `highlighting-macros` to template.tex and `Rmarkdown` syntax sugg…
auzaheta 1fa266a
Additional example using `kable` and Rmarkdown syntax homogenization
auzaheta bc5f411
Adjust news message
auzaheta 74032ef
Include `natbib` as default for `citation_package` on `ims_article`
auzaheta 351bb46
Move local defs inside Pandoc `if`, avoid unuseful lines in the final…
auzaheta 465b6ba
change `keyword-subClass` commenting key and remove `natbib` from ske…
auzaheta c8629f5
Fix Rmarkdown dependence and extend documentation
auzaheta 514b09a
Document `journal` parameter
auzaheta dc0d603
Use `rmarkdown::pandoc_variable_arg` to define pandoc arguments
auzaheta 0c04d2c
be sure to pass a charcter vector of args
cderv 8ad22bf
allow to set output option in test_format
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,8 @@ Authors@R: c( | |
person('Jay', 'Hesselberth', role = c('aut', 'ctb'), email = '[email protected]', comment = c(ORCID = '0000-0002-6299-179X')), | ||
person("Alfredo", "Hernández", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0002-2660-4545")), | ||
person("Christophe", "Dervieux", role = c("aut"), email = "[email protected]", comment = c(ORCID = "0000-0003-4474-2498")), | ||
person("Stefano", "Coretta", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0001-9627-5532", github = "stefanocoretta")) | ||
person("Stefano", "Coretta", role = c("ctb"), email = "[email protected]", comment = c(ORCID = "0000-0001-9627-5532", github = "stefanocoretta")), | ||
person("Alvaro", "Uzaheta", role = c("ctb"), email = "[email protected]", comment = c(github = "auzaheta")) | ||
) | ||
Description: A suite of custom R Markdown formats and templates for | ||
authoring journal articles and conference submissions. | ||
|
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2020 VTeX Software | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,239 @@ | ||
\documentclass[$journal$]{imsart} | ||
%% LaTeX 2e style file for the processing of LaTeX2e files | ||
%% of the following IMS/BS journals: | ||
%% | ||
%% - The Annals of Probability | ||
%% - The Annals of Applied Probability | ||
%% - The Annals of Statistics | ||
%% - The Annals of Applied Statistics | ||
%% - Statistical Science | ||
%% - Probability Surveys | ||
%% - Statistics Surveys | ||
%% - Electronic Journal of Statistics | ||
%% - Bernoulli | ||
%% - Annales de l'Institut Henri Poincar\'e - Probabilit\'es et Statistiques | ||
%% - Brazilian Journal of Probability and Statistics | ||
%% - Bayesian Analysis | ||
%% | ||
%% - Institute of Mathematical Statistics, U.S.A. | ||
%% - Bernoulli Society | ||
%% - Institut Henry Poincare | ||
%% - Brazilian Statistical Association | ||
%% - International Society for Bayesian Analysis | ||
%% | ||
%% Macros written by Vytas Statulevicius, VTeX, Lithuania | ||
%% Maintained by TeX group members, VTeX, Lithuania | ||
%% for Institute of Mathematical Statistics, U.S.A. | ||
%% Please submit bugs or your comments to [email protected] | ||
%% | ||
%% The original distribution is located at: | ||
%% https://www.e-publications.org/ims/support | ||
|
||
\RequirePackage{amsthm,amsmath,amsfonts,amssymb} | ||
\RequirePackage[authoryear]{natbib} | ||
\RequirePackage[colorlinks,citecolor=blue,urlcolor=blue]{hyperref} | ||
\RequirePackage{graphicx} | ||
|
||
% Added package | ||
\usepackage[T1]{fontenc} | ||
\usepackage[english]{babel} | ||
|
||
% Pandoc syntax highlighting | ||
$if(highlighting-macros)$ | ||
$highlighting-macros$ | ||
$endif$ | ||
|
||
% Pandoc citation processing | ||
$if(csl-refs)$ | ||
\newlength{\csllabelwidth} | ||
\setlength{\csllabelwidth}{3em} | ||
\newlength{\cslhangindent} | ||
\setlength{\cslhangindent}{1.5em} | ||
% 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}[3] % #1 hanging-ident, #2 entry spacing | ||
{% don't indent paragraphs | ||
\setlength{\parindent}{0pt} | ||
% turn on hanging indent if param 1 is 1 | ||
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi | ||
% set entry spacing | ||
\ifnum #2 > 0 | ||
\setlength{\parskip}{#2\baselineskip} | ||
\fi | ||
}% | ||
{} | ||
\usepackage{calc} % for calculating minipage widths | ||
\newcommand{\CSLBlock}[1]{#1\hfill\break} | ||
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}} | ||
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}} | ||
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} | ||
$endif$ | ||
|
||
|
||
% Garantees bookdown compilation | ||
%\usepackage{lmodern} | ||
|
||
\makeatletter | ||
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | ||
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | ||
\makeatother | ||
% Scale images if necessary, so that they will not overflow the page | ||
% margins by default, and it is still possible to overwrite the defaults | ||
% using explicit options in \includegraphics[width, height, ...]{} | ||
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | ||
% Set default figure placement to htbp | ||
\makeatletter | ||
\def\fps@figure{htbp} | ||
\makeatother | ||
\setlength{\emergencystretch}{3em} % prevent overfull lines | ||
\providecommand{\tightlist}{% | ||
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} | ||
|
||
% alternative version to the shaded problem | ||
\makeatletter | ||
\@ifundefined{Shaded}{ | ||
}{\renewenvironment{Shaded}{\begin{kframe}}{\end{kframe}}} | ||
\makeatother | ||
|
||
% avoid conflict of pandoc parser and imsart package | ||
\newcommand{\email}[1]{#1} | ||
|
||
|
||
$if(predefined-theoremstyle)$ | ||
\startlocaldefs | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% | ||
% Uncomment next line to change %% | ||
% the type of equation numbering %% | ||
% %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
\numberwithin{equation}{section} | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% | ||
% For Axiom, Claim, Corollary, Hypothezis, %% | ||
% Lemma, Theorem, Proposition %% | ||
% use \theoremstyle{plain} %% | ||
% %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
\theoremstyle{plain} | ||
\newtheorem{axiom}{Axiom} | ||
\newtheorem{claim}[axiom]{Claim} | ||
\newtheorem{theorem}{Theorem}[section] | ||
\newtheorem{lemma}[theorem]{Lemma} | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% %% | ||
% For Assumption, Definition, Example, %% | ||
% Notation, Property, Remark, Fact %% | ||
% use \theoremstyle{remark} %% | ||
% %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
\theoremstyle{remark} | ||
\newtheorem{definition}[theorem]{Definition} | ||
\newtheorem*{example}{Example} | ||
\newtheorem*{fact}{Fact} | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
% Please put your definitions here: %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
\endlocaldefs | ||
$endif$ | ||
|
||
auzaheta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
% pandoc header | ||
$for(header-includes)$ | ||
$header-includes$ | ||
$endfor$ | ||
|
||
\begin{document} | ||
\begin{frontmatter} | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% %% | ||
%% Enter the title of your article here %% | ||
%% %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
\title{$title$$if(thanks)$$for(thanks)$\thanksref{$thanks.ref$}$endfor$$endif$} | ||
%\title{A sample article title with some additional note\thanksref{T1}} | ||
\runtitle{$runtitle$} | ||
%\thankstext{T1}{A sample of additional note to the title.} | ||
|
||
$if(thanks)$ | ||
$for(thanks)$ | ||
\thankstext{$thanks.ref$}{$thanks.text$}$sep$ | ||
$endfor$ | ||
$endif$ | ||
|
||
|
||
\begin{aug} | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%%Only one address is permitted per author. %% | ||
%%Only division, organization and e-mail is %% | ||
%%included in the address. %% | ||
%%Additional information can be included in %% | ||
%%the Acknowledgments section if necessary. %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
|
||
%% Example: | ||
%%\author[A]{\fnms{First} \snm{Author}\ead[label=e1]{[email protected]}}, | ||
%%\author[B]{\fnms{Second} \snm{Author}\ead[label=e2,mark]{[email protected]}} | ||
%%\and | ||
%%\author[B]{\fnms{Third} \snm{Author}\ead[label=e3,mark]{[email protected]}} | ||
|
||
$for(author)$ | ||
\author[$author.addressLabel$]{\fnms{$author.name$} \snm{$author.surname$} | ||
\ead[label=$author.label$]{$author.email$}} | ||
$if(author.sepNext)$$author.sepNext$$endif$ | ||
$endfor$ | ||
|
||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% Addresses %% | ||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | ||
%% Example: | ||
%%\address[B]{Department, | ||
%%University or Company Name, | ||
%%\printead{e2,e3}} | ||
$for(affiliation)$ | ||
\address[$affiliation.label$]{$affiliation.name$, | ||
\printead{$affiliation.authorsLabels$}} | ||
$sep$ | ||
$endfor$ | ||
\end{aug} | ||
|
||
\begin{abstract} | ||
$abstract$ | ||
\end{abstract} | ||
|
||
|
||
$for(keyword-subClass)$ | ||
$keyword-subClass$ | ||
$endfor$ | ||
|
||
\begin{keyword} | ||
$for(keywords)$ | ||
\kwd{$keywords$} | ||
$sep$ | ||
$endfor$ | ||
\end{keyword} | ||
|
||
\end{frontmatter} | ||
|
||
$if(toc)$ | ||
\tableofcontents | ||
$endif$ | ||
|
||
$body$ | ||
|
||
$if(bibliography)$ | ||
$if(biblio-style)$ | ||
\bibliographystyle{$biblio-style$} | ||
$endif$ | ||
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} | ||
$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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@book{billingsley2013convergence, | ||
title={Convergence of Probability Measures}, | ||
author={Billingsley, Patrick}, | ||
year={1999}, | ||
publisher={John Wiley \& Sons}, | ||
edition={2nd ed.} | ||
} | ||
@book{bourbaki1966general, | ||
title={General Topology}, | ||
author={Bourbaki, Nicolas}, | ||
volume={1}, | ||
year={1966}, | ||
publisher={Addison--Wesley, Reading, MA.} | ||
} | ||
@book{ethier1985markov, | ||
title={Markov Processes: Characterization and Convergence}, | ||
author={Ethier, Stewart N and Kurtz, Thomas G}, | ||
year={1985}, | ||
publisher={Wiley, New York} | ||
} | ||
@article{prokhorov1956convergence, | ||
title={Convergence of random processes and limit theorems in probability theory}, | ||
author={Prokhorov, Yu V}, | ||
journal={Theory of Probability \& Its Applications}, | ||
volume={1}, | ||
number={2}, | ||
pages={157--214}, | ||
year={1956}, | ||
publisher={SIAM} | ||
} |
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.