Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e3a21dc
add pihph_article()
Dec 26, 2020
d5d6951
fix latex build failure (support older versions of pandoc)
Jan 2, 2021
c068472
add comment to mark pandoc highlighting code
Jan 6, 2021
01a16f8
add conditional for gloss package
Jan 6, 2021
6d8f4a2
add include-before in template
Jan 6, 2021
c17dcae
capitalise words in template name
Jan 6, 2021
0a481f2
fix wrong closing tag in pihph template
Jan 6, 2021
eb006ee
include url of PiHPh journal in the function docs
Jan 6, 2021
56b22d9
use 'mainfont' in pihph template
Jan 6, 2021
b7e91b8
move comment about fonts in pihph template
Jan 6, 2021
2550a74
move comment about default fonts in pihph template
Jan 6, 2021
7526884
add pandoc citation processing code
Jan 6, 2021
4612e89
fix author details in pihph template
Jan 6, 2021
68600e0
fix wrong if closing tag; add options for single/double quotes
Jan 17, 2021
9ca8f28
add missing pihph specific variables in skeleton
Jan 17, 2021
763df93
use polyglossia in pihph article
Jan 17, 2021
168e8be
add bib example in pihph article
Jan 17, 2021
5b9c448
add english variety option in pihph article
Jan 17, 2021
fa8e40d
fix fonts issue in the pihph format, other improvements
Jan 20, 2021
bafd378
remove unused variables from pihph latex template, use knitr::include…
Jan 21, 2021
3909d62
style
cderv Feb 9, 2021
8cb691b
Add the shortname in template
cderv Feb 9, 2021
284b993
Merge branch 'master' into pihph-article
cderv Feb 9, 2021
26bdf81
Use correct case in short name
cderv Feb 9, 2021
3019f99
Also set citation package has an argument keeping biblatex as default
cderv Feb 9, 2021
c123158
Add PR number to README
cderv Feb 9, 2021
548d23f
Document default behavoir for this format
cderv Feb 9, 2021
544ea4c
we prefer output as last part of the YAML as other template
cderv Feb 9, 2021
7c24ad9
add comments and order as in the template
cderv Feb 9, 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
Prev Previous commit
Next Next commit
fix fonts issue in the pihph format, other improvements
  • Loading branch information
stefanocoretta committed Jan 20, 2021
commit fa8e40dece0cd34891dc15aad61a286831e7e440
20 changes: 4 additions & 16 deletions inst/rmarkdown/templates/pihph/resources/template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -146,22 +146,7 @@ \section*{\textcolor{pihphgreen}{Comments invited}}
\authorheader{$if(author-header)$$author-header$$else$$for(author)$$author.name$$sep$, $endfor$$endif$}
\titleheader{$if(title-header)$$title-header$$else$$title$$endif$}

$if(default-fonts)$
\setmainfont{Cambria}
\setlicensefont{Calibri}
\setlogofont{Lekton}
$endif$
% If you do not have access to Cambria, you can use the metric-equivalent Caladea: https://fontlibrary.org/en/font/caladea
% If you do not have access to Calibri, you can use the metric-equivalent Carlito: https://fontlibrary.org/en/font/carlito
% Lekton available at https://www.fontsquirrel.com/fonts/lekton
$if(alt-fonts)$
\setmainfont{Caladea}
\setlicensefont{Carlito}
\setlogofont{Lekton}
$endif$
% If any of these default fonts are not available on your system, feel free to
% change them here, but of course the final layout will then differ
$if(main)$
$if(mainfont)$
\setmainfont{$mainfont$}
$endif$
$if(licensefont)$
Expand All @@ -170,6 +155,9 @@ \section*{\textcolor{pihphgreen}{Comments invited}}
$if(logofont)$
\setlogofont{$logofont$}
$endif$
% If you do not have access to Cambria, you can use the metric-equivalent Caladea: https://fontlibrary.org/en/font/caladea
% If you do not have access to Calibri, you can use the metric-equivalent Carlito: https://fontlibrary.org/en/font/carlito
% Lekton available at https://www.fontsquirrel.com/fonts/lekton

% Use polyglossia by default since the engine is xelatex.
\usepackage{polyglossia}
Expand Down
53 changes: 17 additions & 36 deletions inst/rmarkdown/templates/pihph/skeleton/skeleton.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
output: rticles::pihph_article

title: This is a title and this is too
subtitle: A subtitle goes on another line
# Use the following to specify a shorter title for the header.
title-header: A short title

author:
- name: Author's name
affiliation: Author's affiliation
Expand All @@ -11,31 +14,22 @@ author:
affiliation: Second author's affiliation
# Use the following to specify a short author name for the header.
author-header: Authors
output: rticles::pihph_article

gloss: expex # feel free to use your preferred package for the examples
# FONTS
# If default-fonts is true, alt-fonts should be set to false, and vice versa.
default-fonts: false # set to true if you want to use the defaults fonts
# The default fonts are: Cambria, Calibri, and Lekton
# Lekton can be found at: https://www.fontsquirrel.com/fonts/lekton
alt-fonts: true # set to true if you want to use alternative fonts
# The alternative fonts are: Caladea, Carlito, and Lekton
# Caladea can be found at: https://fontlibrary.org/en/font/caladea
# Carlito can be found at: https://fontlibrary.org/en/font/carlito
# Lekton can be found at: https://www.fontsquirrel.com/fonts/lekton
#
# If any of these fonts are not available on your system, feel free to
# change them here, but of course the final layout will then differ.
# Uncomment the following lines and set the chosen fonts:
# mainfont: Charis SIL
# licensefont: Arial
# logofont: Arial

# The journal uses Cambria, Calibri, and Lekton. If you don't have access to
# Cambria and Calibri, you can use the metrically equivalent Caladea and
# Carlito. Caladea, Carlito, and Lekton are available for download:
# - Caladea: https://fontlibrary.org/en/font/caladea
# - Carlito: https://fontlibrary.org/en/font/carlito
# - Lekton: https://www.fontsquirrel.com/fonts/lekton
#
# Finally, if you'd rather use the default XeLaTeX fonts, just leave
# both default-fonts and alt-fonts set to false and don't specify mainfont,
# licensefont, nor logofont.
# mainfont: Cambria # or Caladea
# licensefont: Calibri # or Carlito
# logofont: Lekton
en-variant: british # Set to "american" for American English.
single-quotes: true # To use double quotes, set single-quotes to false.

# This format uses BibLaTeX by default, as recommended by the journal.
bibliography: sample-bib.bib
abstract: |
Expand All @@ -54,7 +48,7 @@ The first paragraph under all headings will not be indented.^[This is a footnote

All paragraphs other than the first in a section will be indented by 0.7cm. Make sure that you use the shaftless arrow \enquote{>} for diachronic correspondences. The shafted arrow \enquote{→} (or `$\rightarrow$`) should be used for synchronic derivations. Use \enquote{smart quotation marks}, not \'straight quotation marks\' (we recommend the csquotes package, as in this template). Either British or American English spelling is fine, as long as you are consistent. It is crucial that you spellcheck and carefully proofread your piece before submission. Use a hyphen \enquote{-} only to join together two parts of a compound (as in \enquote{affrico-palatalisation}). For number ranges (as in \enquote{1999–2002}), use an en dash \enquote{--}. For all other purposes, use an em dash \enquote{---}.

# Heading level 2
## Heading level 2

Quotations of under 25 words should be included in the running text \enquote{as a wise person once said} (with an associated full reference, including page numbers). All references should follow the normal Author (date, page number) system. Longer quotations should be set out as follows.

Expand Down Expand Up @@ -89,25 +83,12 @@ Captions for figures and tables should be set out below the figure or table. We

# Bibliography and citations

By default, this template uses Bib\LaTeX. To learn about Bib\LaTeX, see https://www.overleaf.com/learn/latex/Articles/Getting_started_with_BibLaTeX
# for a quick intro and the package documentation for detailed info. The `langsci-unified` style is used.
By default, this template uses Bib\LaTeX. To learn about Bib\LaTeX, see https://www.overleaf.com/learn/latex/Articles/Getting_started_with_BibLaTeX for a quick intro and the package documentation for detailed info. The `langsci-unified` style is used.

To cite a reference, you can use the standard pandoc syntax `@blust2009` for a citation without parentheses, as in @blust2009, and `[@blust2009]` with parenthesis [@blust2009].

These are other examples: @ramsammy2016 [p. 287], [but see @sen2016; @bermudez-otero2015]. Goldsmith is a relevant reference [-@goldsmith1990], although we should not forget @hyman1975.

# Another section

## And another subsection

As previously, the first line in this paragraph, under a section heading, is not indented.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

## And another level for headings

Do not use more than three levels of structure. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

# Conclusion

The following sections show the kinds of things that you might include at the end of your paper. Use the
Expand Down
2 changes: 1 addition & 1 deletion man/article.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.