Skip to content
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

add glossa_article() #361

Merged
merged 48 commits into from
Sep 7, 2021
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
652630a
a redirected URL revealed by R's URL check
yihui Jan 5, 2021
72f1a33
CRAN release v0.18
yihui Jan 6, 2021
468e358
disable the link to the Talyor & Francis template, because it often r…
yihui Jan 6, 2021
22b1698
Update rjournal_article.Rd (#365)
Jan 8, 2021
39ea526
Update Copernicus publication template to version 6.2 (#366)
RLumSK Jan 20, 2021
7ae2089
add jasa_article() (#364)
Jan 21, 2021
1b4a049
Use dev tinytex and new exported function in the skeleton
cderv Jan 21, 2021
ffe0f03
Copernicus template additional information on copyright statement (#368)
RLumSK Jan 27, 2021
139b8a3
Update R CMD workflow (#370)
cderv Feb 2, 2021
6e7af3b
add a CRAN badge
cderv Feb 2, 2021
ca49e94
Update the PR template about CLA assistant
cderv Feb 4, 2021
871447d
add pihph_article() (#362)
Feb 9, 2021
228ab53
add `ims_article()` (#372)
auzaheta Feb 23, 2021
646797e
homogenize use of rmarkdown::pandoc_variable_arg
cderv Feb 23, 2021
54922aa
Fix issue with previous commit
cderv Feb 24, 2021
78f9d10
Update documentation of articles
cderv Mar 2, 2021
65bd29f
Correct draft() example in README
cderv Mar 3, 2021
c33d984
CRAN release v0.19
yihui Mar 4, 2021
1728ea7
start the next version
yihui Mar 4, 2021
952b660
add glossa_article()
Dec 26, 2020
dbb2681
Merge branch 'master' into glossa-article
Apr 3, 2021
f4a2e94
Merge branch 'rstudio:master' into glossa-article
Jul 3, 2021
bb5a8f2
Update README.md
Jul 3, 2021
37f4fc3
add content in skeleton
Jul 3, 2021
894164c
add explanation of class options in skeleton
Jul 4, 2021
09226a4
add missing longtable package in glossa template
Jul 4, 2021
609d53f
add figure in glossa skeleton
Jul 4, 2021
8a92d8e
add interlinear glosses and tables in glossa template
Jul 4, 2021
213e219
add figure in glossa skeleton
Jul 4, 2021
7835bf8
add bibliography in glossa article
Jul 4, 2021
beed2e2
add info on bib style in glossa
Jul 4, 2021
40c9e1b
add support for citeproc in glossa
Jul 4, 2021
8f925e4
Update inst/rmarkdown/templates/glossa/resources/template.tex
Jul 4, 2021
5bccb9a
fix glossa template error in citeproc code
Jul 10, 2021
859314f
add instructions in glossa article for bibliography
Jul 10, 2021
b916838
move word count in glossa article and document it
Jul 10, 2021
da996f3
add keywords in glossa article skeleton
Jul 10, 2021
87ea216
move include-before in glossa article
Jul 10, 2021
379552f
consolidate pandoc citeproc code and add notice
Jul 10, 2021
4600694
Update inst/rmarkdown/templates/glossa/resources/template.tex
cderv Jul 28, 2021
f8c2752
delete unused csl file a references
Aug 13, 2021
8518ba0
Move Pandoc's highlighting-macros position
cderv Sep 7, 2021
298f2c0
Bump version
cderv Sep 7, 2021
1a774cd
move output format at the end of YAML (by convention)
cderv Sep 7, 2021
8f46dd2
Show how to use natbib (which is the template default)
cderv Sep 7, 2021
e182e87
Merge branch 'master' into glossa-article
cderv Sep 7, 2021
3bca5c7
Add Author guidelines url to help page
cderv Sep 7, 2021
691060a
Add NEWS bullet
cderv Sep 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export(ctex)
export(ctex_article)
export(elsevier_article)
export(frontiers_article)
export(glossa_article)
export(ieee_article)
export(ims_article)
export(jasa_article)
Expand Down
12 changes: 12 additions & 0 deletions R/article.R
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@ frontiers_article <- function(..., keep_tex = TRUE) {
pdf_document_format("frontiers", keep_tex = keep_tex, ...)
}


#' @section \code{glossa_article}: Format for creating submissions to
#' Glossa: a journal of general linguistics. Adapted from
#' \url{https://github.com/guidovw/Glossalatex}.
#' @export
#' @rdname article
glossa_article <- function(..., keep_tex = TRUE, latex_engine = "xelatex") {
pdf_document_format(
"glossa", keep_tex = keep_tex, latex_engine = latex_engine, ...
)
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved
}

#' @param journal one of \code{"aoas"}, \code{"aap"}, \code{"aop"}, \code{"aos"}, \code{"sts"} for \code{ims_article}
#' @section \code{ims_article}: Format for creating submissions to the Institute of Mathematical Statistics
#' \href{https://imstat.org/}{IMS} journals and publications. Adapted from
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ Currently included templates and their contributors are the following:
| [CTeX](https://ctan.org/pkg/ctex) | | | `ctex()` |
| [Elsevier](https://www.elsevier.com) | [@cboettig](https://github.com/cboettig) | [#27](https://github.com/rstudio/rticles/pull/27) | `elsevier_article()` |
| [Frontiers](https://www.frontiersin.org/) | [@muschellij2](https://github.com/muschellij2) | [#211](https://github.com/rstudio/rticles/pull/211) | `frontiers_article()` |
| [Glossa](https://www.glossa-journal.org) | [@stefanocoretta](https://github.com/stefanocoretta) | | `glossa_article()` |
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved
| [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()` |
| [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) | [#372](https://github.com/rstudio/rticles/pull/372) | `ims_article()` |
| [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()` |
Expand Down
132 changes: 132 additions & 0 deletions inst/rmarkdown/templates/glossa/resources/template.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
% see http://info.semprag.org/basics for a full description of this template
\documentclass[$for(classoption)$$classoption$$sep$,$endfor$]{glossa}
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

% possible options:
% [times] for Times font (default if no option is chosen)
% [cm] for Computer Modern font
% [lucida] for Lucida font (not freely available)
% [brill] open type font, freely downloadable for non-commercial use from http://www.brill.com/about/brill-fonts; requires xetex
% [charis] for CharisSIL font, freely downloadable from http://software.sil.org/charis/
% for the Brill an CharisSIL fonts, you have to use the XeLatex typesetting engine (not pdfLatex)
% for headings, tables, captions, etc., Fira Sans is used: https://www.fontsquirrel.com/fonts/fira-sans
% [biblatex] for using biblatex (the default is natbib, do not load the natbib package in this file, it is loaded automatically via the document class glossa.cls)
% [linguex] loads the linguex example package
% !! a note on the use of linguex: in glossed examples, the third line of the example (the translation) needs to be prefixed with \glt. This is to allow a first line with the name of the language and the source of the example. See example (2) in the text for an illustration.
% !! a note on the use of bibtex: for PhD dissertations to typeset correctly in the references list, the Address field needs to contain the city (for US cities in the format "Santa Cruz, CA")
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

%\addbibresource{sample.bib}
% the above line is for use with biblatex
% replace this by the name of your bib-file (extension .bib is required)
% comment out if you use natbib/bibtex

\let\B\relax %to resolve a conflict in the definition of these commands between xyling and xunicode (the latter called by fontspec, called by charis)
\let\T\relax
\usepackage{xyling} %for trees; the use of xyling with the CharisSIL font produces poor results in the branches. This problem does not arise with the packages qtree or forest.
\usepackage[linguistics]{forest} %for nice trees!

\title[$if(shorttitle)$$shorttitle$$endif$]{$title$}
% Optional short title inside square brackets, for the running headers.

% \author[Paul \& Vanden Wyngaerd]% short form of the author names for the running header. If no short author is given, no authors print in the headers.
% {%as many authors as you like, each separated by \AND.
% \spauthor{Waltraud Paul\\
% \institute{CNRS, CRLAO}\\
% \small{105, Bd. Raspail, 75005 Paris\\
% waltraud.paul@ehess.fr}
% }
% \AND
% \spauthor{Guido Vanden Wyngaerd \\
% \institute{KU Leuven}\\
% \small{Warmoesberg 26, 1000 Brussel\\
% guido.vandenwyngaerd@kuleuven.be}
% }%
% }

\author[$if(shortauthors)$$shortauthors$$endif$]{
$for(author)$
\spauthor{$author.name$\\
\institute{$author.affiliation$}\\
\small{$author.address$}
}%
$sep$\AND$endfor$
}

$if(natbib)$
\usepackage{natbib}
$endif$
$if(biblatex)$
\usepackage[$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
$for(bibliography)$
\addbibresource{$bibliography$}
$endfor$
$endif$
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

$if(listings)$
\usepackage{listings}
$endif$
$if(lhs)$
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
$endif$
$if(highlighting-macros)$
$highlighting-macros$
$endif$
$if(verbatim-in-note)$
\usepackage{fancyvrb}
\VerbatimFootnotes % allows verbatim text in footnotes
$endif$

stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved
$for(header-includes)$
$header-includes$
$endfor$

\begin{document}

\sffamily
\maketitle

$if(wordcount)$
Word count: $wordcount$
$endif$
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

$if(abstract)$
\begin{abstract}
$abstract$
\end{abstract}
$endif$

$if(keywords)$
\begin{keywords}
$keywords$
\end{keywords}
$endif$
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

$for(include-before)$
$include-before$
$endfor$
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

\rmfamily

% Body of the article
$body$

$if(natbib)$
$if(bibliography)$
$if(biblio-title)$
$if(book-class)$
\renewcommand\bibname{$biblio-title$}
$else$
\renewcommand\refname{$biblio-title$}
$endif$
$endif$
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
$endif$
$endif$
$if(biblatex)$
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
$endif$
stefanocoretta marked this conversation as resolved.
Show resolved Hide resolved

$for(include-after)$
$include-after$
$endfor$
cderv marked this conversation as resolved.
Show resolved Hide resolved

\end{document}
Loading