Skip to content

Commit 952b660

Browse files
author
stefanocoretta
committed
add glossa_article()
1 parent 1728ea7 commit 952b660

13 files changed

Lines changed: 3505 additions & 2 deletions

File tree

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export(ctex)
1616
export(ctex_article)
1717
export(elsevier_article)
1818
export(frontiers_article)
19+
export(glossa_article)
1920
export(ieee_article)
2021
export(ims_article)
2122
export(jasa_article)

R/article.R

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

179+
#' @section \code{glossa_article}: Format for creating submissions to
180+
#' Glossa: a journal of general linguistics. Adapted from
181+
#' \url{https://github.com/guidovw/Glossalatex}.
182+
#' @export
183+
#' @rdname article
184+
glossa_article <- function(..., keep_tex = TRUE, latex_engine = "xelatex") {
185+
pdf_document_format(
186+
"glossa", keep_tex = keep_tex, latex_engine = latex_engine, ...
187+
)
188+
}
189+
179190
#' @param journal one of \code{"aoas"}, \code{"aap"}, \code{"aop"}, \code{"aos"}, \code{"sts"} for \code{ims_article}
180191
#' @section \code{ims_article}: Format for creating submissions to the Institute of Mathematical Statistics
181192
#' \href{https://imstat.org/}{IMS} journals and publications. Adapted from
@@ -230,8 +241,6 @@ jasa_article <- function(
230241
pdf_document_format(
231242
"jasa", keep_tex = keep_tex, latex_engine = latex_engine,
232243
citation_package = citation_package, ...
233-
)
234-
}
235244

236245
#' @section \code{lipics_article}: Format for creating submissions to
237246
#' LIPIcs - Leibniz International Proceedings Informatics - articles.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Currently included templates and their contributors are the following:
4040
| [CTeX](https://ctan.org/pkg/ctex) | | | `ctex()` |
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()` |
43+
| [Glossa](https://www.glossa-journal.org) | [@stefanocoretta](https://github.com/stefanocoretta) | | `glossa_article()` |
4344
| [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()` |
4445
| [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()` |
4546
| [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()` |
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
% see http://info.semprag.org/basics for a full description of this template
2+
\documentclass[$for(classoption)$$classoption$$sep$,$endfor$]{glossa}
3+
4+
% possible options:
5+
% [times] for Times font (default if no option is chosen)
6+
% [cm] for Computer Modern font
7+
% [lucida] for Lucida font (not freely available)
8+
% [brill] open type font, freely downloadable for non-commercial use from http://www.brill.com/about/brill-fonts; requires xetex
9+
% [charis] for CharisSIL font, freely downloadable from http://software.sil.org/charis/
10+
% for the Brill an CharisSIL fonts, you have to use the XeLatex typesetting engine (not pdfLatex)
11+
% for headings, tables, captions, etc., Fira Sans is used: https://www.fontsquirrel.com/fonts/fira-sans
12+
% [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)
13+
% [linguex] loads the linguex example package
14+
% !! 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.
15+
% !! 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")
16+
17+
%\addbibresource{sample.bib}
18+
% the above line is for use with biblatex
19+
% replace this by the name of your bib-file (extension .bib is required)
20+
% comment out if you use natbib/bibtex
21+
22+
\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)
23+
\let\T\relax
24+
\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.
25+
\usepackage[linguistics]{forest} %for nice trees!
26+
27+
\title[$if(shorttitle)$$shorttitle$$endif$]{$title$}
28+
% Optional short title inside square brackets, for the running headers.
29+
30+
% \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.
31+
% {%as many authors as you like, each separated by \AND.
32+
% \spauthor{Waltraud Paul\\
33+
% \institute{CNRS, CRLAO}\\
34+
% \small{105, Bd. Raspail, 75005 Paris\\
35+
% waltraud.paul@ehess.fr}
36+
% }
37+
% \AND
38+
% \spauthor{Guido Vanden Wyngaerd \\
39+
% \institute{KU Leuven}\\
40+
% \small{Warmoesberg 26, 1000 Brussel\\
41+
% guido.vandenwyngaerd@kuleuven.be}
42+
% }%
43+
% }
44+
45+
\author[$if(shortauthors)$$shortauthors$$endif$]{
46+
$for(author)$
47+
\spauthor{$author.name$\\
48+
\institute{$author.affiliation$}\\
49+
\small{$author.address$}
50+
}%
51+
$sep$\AND$endfor$
52+
}
53+
54+
$if(natbib)$
55+
\usepackage{natbib}
56+
$endif$
57+
$if(biblatex)$
58+
\usepackage[$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
59+
$for(bibliography)$
60+
\addbibresource{$bibliography$}
61+
$endfor$
62+
$endif$
63+
64+
$if(listings)$
65+
\usepackage{listings}
66+
$endif$
67+
$if(lhs)$
68+
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
69+
$endif$
70+
$if(highlighting-macros)$
71+
$highlighting-macros$
72+
$endif$
73+
$if(verbatim-in-note)$
74+
\usepackage{fancyvrb}
75+
\VerbatimFootnotes % allows verbatim text in footnotes
76+
$endif$
77+
78+
$for(header-includes)$
79+
$header-includes$
80+
$endfor$
81+
82+
\begin{document}
83+
84+
\sffamily
85+
\maketitle
86+
87+
$if(wordcount)$
88+
Word count: $wordcount$
89+
$endif$
90+
91+
$if(abstract)$
92+
\begin{abstract}
93+
$abstract$
94+
\end{abstract}
95+
$endif$
96+
97+
$if(keywords)$
98+
\begin{keywords}
99+
$keywords$
100+
\end{keywords}
101+
$endif$
102+
103+
$for(include-before)$
104+
$include-before$
105+
$endfor$
106+
107+
\rmfamily
108+
109+
% Body of the article
110+
$body$
111+
112+
$if(natbib)$
113+
$if(bibliography)$
114+
$if(biblio-title)$
115+
$if(book-class)$
116+
\renewcommand\bibname{$biblio-title$}
117+
$else$
118+
\renewcommand\refname{$biblio-title$}
119+
$endif$
120+
$endif$
121+
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
122+
$endif$
123+
$endif$
124+
$if(biblatex)$
125+
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
126+
$endif$
127+
128+
$for(include-after)$
129+
$include-after$
130+
$endfor$
131+
132+
\end{document}

0 commit comments

Comments
 (0)