The beamerarticle package needs to be loaded directly after the documentclass
declaration. Loading it later (e.g. using the -H option) leads to several
errors due to package dependencies.
This patch also introduces a new variable "beamerarticle" to activate the
beamerarticle package.
Here's a minimal case:
\documentclass[]{article}
\usepackage{hyperref}
\begin{document}
\section{\%á}
\end{document}
Without this change, this fails on the second invocation of xelatex.
See https://tex.stackexchange.com/questions/313266/and-non-ascii-characters-in-headings
This affects inputs this like
# %á
with pdf output via xelatex.
Adding ability to define custom font families. Needed for correct polyglossia operation with Cyrillic fonts and perhaps can find some other usages.
Example usage in YAML metadata:
```
fontfamilies:
- name: \cyrillicfont
font: Liberation Serif
- name: \cyrillicfonttt
options: Scale=MatchLowercase
font: Liberation Mono
```
Thus you can say `papersize: a4` and the latex will contain
`a4paper`.
This change may break some existing workflows; if you currently
specify `a4paper`, you'll get `a4paperpaper` which is meaningless.
However, the change seems worth it, as it will make the
`papersize` variable work uniformly across ConTeXt, LaTeX,
and html->pdf via wkhtmltopdf.
The color options are only used for setting the link colour; it is otherwise redundant (someone wanting to add colour to other parts of the document will likely have more complex needs).
`header-includes` now occurs before setting of title,
author, etc. This allows you to include a definition of
`\subtitle`, for example, before `\subtitle` is called.
Redefining of `\paragraph` and `\subparagraph` now occurs
before `header-includes` rather than after.
The fallback definition is a no-op. In a class that does not
define `\subtitle`, the `subtitle` will not appear.
This changes earlier behavior, which was to add the subtitle
to the title. This had bad results with page headers etc.
This reflects the default behaviour of `hyperref` when `colorlinks` is not enabled (but instead sets the colour to black when it is not specified by the user, for the sake of simplicity).
This avoids the ‘use `Ligatures=TeX` instead of `Mapping=tex-text`’
warning when using LuaTeX. The manual clarifies: “for consistency
`Ligatures=TeX` will perform the same function as `Mapping=tex-text`.”
`fontenc` allows for a different encoding: closes#112.
`indent` and `subparagraph` allow the default Pandoc overrides for
these features to be disabled.
Adds new language and bidi variables; removes duplicated
`\VerbatimFootnotes`.
The standard `fontspec` variables, previously omitted, are now
included. Beamer defaults to the font set as `sansfont`. If `mainfont`
is set, the `serif` font theme will also be used, which uses this for
the slide text (does not have to be a serif font per se).
The paragraph indentation and use of the `url` package seem to have had
no visible effect, and have been removed.
There are several conflicts that are raised when you use tufte-handout
layout with the default.latex template, namely hyperref and color, which
are already loaded by the class.
This commit enables to only load `hyperref` and `color` packages if they
are not already loaded (by Tufte).