aboutsummaryrefslogtreecommitdiff
path: root/data/templates
AgeCommit message (Collapse)AuthorFilesLines
2019-01-25LaTeX template: Set default listings language for lua, assembler.John MacFarlane1-0/+2
Otherwise we get an error when trying to compile code with lua or assembler code. To change the default dialect (currenty 5.3 for lua and x86masm for assembler), you can use `--include-in-header` to inject something like \lstset{defaultdialect=[5.2]Lua} Closes #5227.
2019-01-23LaTeX template: Restrict `institute` to Beamer (#5219)Andrew Dunning1-3/+2
The `\institute` command is only standard in the Beamer class. Use a conditional to restrict this to Beamer output rather than output an empty command. To add this information to a LaTeX class providing an `\institute` command, use `header-includes`.
2019-01-22LaTeX template: Use `footnotehyper` if available (#5234)Andrew Dunning1-2/+3
Use the [`footnotehyper`](https://ctan.org/pkg/footnotehyper/) package if available. This is a rewrite of `footnote` that is compatible with `hyperref` and `babel-frenchb`. This patch also addresses the incompatibility with `xcolor` noted in #4861, but the new package has only been available since 2016, so this template still loads `xcolor` earlier for compatibility with older distributions. Note that the `footnote` package is part of `collection-latexrecommended` in TeX Live, so there shouldn't be any problem loading it unconditionally as we now do if `footnotehyper` is not available.
2019-01-22LaTeX template: Respect `numbersections` for books (#5235)Andrew Dunning1-1/+1
Ensure that `\part` and `\chapter` are only numbered if `numbersections` is set. To return to the previous behaviour, use `-V numbersections -V secnumdepth=0`. Notes on secnumdepth: 1 = Number `\section` 0 = Number `\chapter` -1 = Number `\part` -2 = No numbering
2019-01-22LaTeX template: Fix subtitle spacing (#5244)Andrew Dunning1-1/+1
The `\large` command does not reset the spacing without adding `\par` to the end, which caused `\subtitle` to use the same line spacing as `\title`.
2019-01-12LaTeX template: Simplify fontspec usage (#5218)Andrew Dunning1-9/+8
Simplify the approach of #5212, ensuring that `mainfont` is used as the base font for scaling and that LuaLaTeX does not display the mono font with TeX ligatures (as it does not use the `Mapping=tex-ansi` option). With a modified version of `\defaultfontfeatures`, fontspec will continue to report scaling against the old default font in the log, but it nonetheless displays main font at the specified size. Using this rather than setting `Scale=MatchLowercase` for each family individually means that users will not lose scaling when upgrading to the new template if they were using other font options. Scaling can be disabled for an individual family by adding the option `Scale=1` to `sansfontoptions`, `monofontoptions`, etc. Remove the `\setromanfont` command added in #4665, as this is not documented in the fontspec manual and appears to be a deprecated alias for `\setmainfont`. For the release notes, I should also add that one can imitate the previous appearance with `-V mainfontoptions="Scale=MatchLowercase"`.
2019-01-11 LaTeX template: Render \subtitle (#5213)Andrew Dunning1-1/+9
Addresses closed issues #4675, #3896, #1327. This renders `\subtitle` using the `etoolbox` package if `\subtitle` is not already defined by the documentclass (as it is in beamer, KOMA, memoir classes). Based on an example from Enrico Gregorio, <https://tex.stackexchange.com/a/50186>. Update list of LaTeX packages. Note that `etoolbox` must be loaded outside the command definition. Putting it inside causes an error if `\title` is placed after `\begin{document}`. It's already loaded on LuaLaTeX/XeLaTeX in any case.
2019-01-10LaTeX template: Prevent scaling of main font (#5212)Andrew Dunning1-10/+9
When `Scale=MatchLowercase` is set as a default font option, this scales `mainfont` against the old default, meaning that it resizes whatever is set as the main font to match the metrics of Latin Modern. This can result, for example, in a document set to 12pt appearing in 11pt or 13pt. Setting this option for individual families allows everything to scale against the main font, and permits the user to override the setting if desired. Note that it is not necessary to specify `Ligatures=TeX`, as this is already set by default for the appropriate families. See the `fontspec` manual: <https://ctan.org/pkg/fontspec>. Those who specify font-options in metadata may need to add `Scale=MatchLowercase`, which will now only be provided if `(roman|sans|math|mono)fontoptions` aren't given explicitly.
2019-01-08Add zoomKey config to default.revealjs.John MacFarlane1-0/+4
Closes #4249. Thanks to @reagle.
2019-01-02LaTeX template: Require xcolorAndrew Dunning1-1/+1
2019-01-01LaTeX template: Supply missing forAndrew Dunning1-1/+1
Partially addresses #5179
2019-01-01LaTeX template: Use `bookmark` if availableAndrew Dunning1-1/+1
The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>.
2019-01-01LaTeX template: ReindentAndrew Dunning1-46/+71
Use two spaces to be consistent internally and with other templates.
2019-01-01LaTeX template: Remove obsolete fixltx2e packageAndrew Dunning1-1/+0
2019-01-01LaTeX template: Load xurl if availableAndrew Dunning1-0/+1
This breaks URLs in more locations. Only available with TeX Live 2018 and later.
2019-01-01LaTeX template: Load xcolor if availableAndrew Dunning1-3/+1
The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861.
2019-01-01LaTeX Template: Use Babel for LuaTeXAndrew Dunning1-2/+2
There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <https://github.com/reutenauer/polyglossia/issues/182>.
2018-12-14Remove unnecessary type="text/css" on style and link for HTML5.John MacFarlane4-9/+9
Closes #5146.
2018-12-11template:latex: make @ letter before using it (#5145)Enno1-4/+7
This fixes the previous commit for parskip and KOMA classes.
2018-12-11Let KOMA document class handle parskip when applicable (#5143)Enno1-6/+7
This is just a change to the default latex template.
2018-11-19Asciidoc template: add :lang: to title header is lang is set in metadata.John MacFarlane1-0/+3
Closes #5088.
2018-11-03LaTeX template: add variable romanfont (#4665)OvidiusCicero1-0/+3
This opens up the possibility of setting the romanfont in xelatex/lualatex. Note that mainfont actually oversets sansfont in headings
2018-11-03AsciiDoc writer: use single-line section headers.John MacFarlane1-1/+1
The underline style is now deprecated. Previously `--atx-headers` would enable the single-line style; now the single-line style is always used. Closes #5038.
2018-10-22revealjs: typo in the socket.io javascript plugin (#5006)Yoan Blanc1-1/+1
2018-10-04LaTeX template: add variable hyperrefoptions(#4925)Mathias Walter1-1/+1
Introduce a new variable `hyperrefoptions` to pass to the hyperref package. This allows us (for example) to specify `hyperrefoptions: linktoc=all` in a YAML block.
2018-09-10Make HTML5 header easier to style precisely in default template (#4767)J. B. Rainsberger1-1/+1
Add the `title-block-header` identifier to the `header` element, to make it easier to style precisely.
2018-09-04Remove unnecessary indenting of TOC title (#4869)José de Mattos Neto1-3/+1
Fixes #4798
2018-08-28EPUB writer: set epub:type on body element intelligently.John MacFarlane1-1/+1
epub:type of first section epub:type of body -------------------------- ------------------ prologue frontmatter abstract frontmatter acknowledgments frontmatter copyright-page frontmatter dedication frontmatter foreword frontmatter halftitle, frontmatter introduction frontmatter preface frontmatter seriespage frontmatter titlepage frontmatter afterword backmatter appendix backmatter colophon backmatter conclusion backmatter epigraph backmatter Otherwise body will have epub:type 'bodymatter'. This only affects epub3. See http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10 Closes #4823.
2018-08-25Add support for $toc-title$ to LaTeX (and PDF). (#4853)Wandmalfarbe1-0/+3
2018-08-16TEI template: improve publicationStmt.John MacFarlane1-1/+15
Add support for publisher, address, pubPlace, and date variables.
2018-08-16TEI improvements.John MacFarlane1-3/+1
- Ensure that title element is always present, even if empty. - Put author tags in the template, rather than adding them in the writer. Closes #4839.
2018-08-16LaTeX writer/template: be sensitive to `filecolor` variable.John MacFarlane1-0/+1
`linkcolor` only affects internal links, and `urlcolor` only affects linked URLs. For external links, the option to use is `filecolor`. Closes #4822.
2018-08-15Support "toc-title" in the beamer template. (#4835)Cyril Roelandt1-0/+3
It is a bit awkward to have a title for every frame, but not for the one that holds the table of contents. Allow users to specify a title if they wish.
2018-08-01RST writer: use `titleblock` instead of `title` variable for title blockFrancesco Occhipinti1-2/+2
Closes #4803 After this commit use `$titleblock$` in order to get what was contained in `$title$` before, that is a title and subtitle rendered according to the official rST method: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle. from With this commit, the `$title$` and `$subtitle$` metadata are available and they simply carry the metadata values. This opens up more possibilities in templates.
2018-07-21Moved some beamer code in default.latex template.John MacFarlane1-37/+35
This change allows beamer themes to change the template and font (as Metropolis does). Closes #4450.
2018-07-18Add missing rollingLinks option to revealjs template (#4778)Igor Khorlo1-0/+4
Fix (add) the missing option 'rollingLinks' in reveal.js template.
2018-06-25Texinfo writer: use @sup and @sub instead of custom macrosAlexander Krotov1-22/+0
Fixes #4728
2018-06-12reveal.js writer and template: reuse mathjax URL...John MacFarlane1-1/+1
...provided by the argument to `--mathjax` or the normal pandoc default, rather than a hard-coded one in the template. Closes #4701.
2018-06-02Support --number-sections in RST output...John MacFarlane1-0/+4
via the "section-numbering" directive in standalone output.
2018-05-01new Greek fallback typeface (would fix #4405) (#4605)Pablo Rodríguez1-1/+1
CMU Serif would give better typographic results than the current Greek fallback DejaVu Serif.
2018-05-01Make template polyglot (#4606)OvidiusCicero1-1/+1
This line: `<link rel="stylesheet" href="$css$">` is not valid XML. Making it self-closing makes the template polyglot.
2018-04-26Add background-image variable to default.latex (#4601)John Muccigrosso1-0/+5
New variable with same name as comparable variable in (proposed) reveal.js template, so that background images can indicated for both presentation formats with one variable.
2018-04-26Adding background-image variable to reveal.js template (#4600)John Muccigrosso1-0/+5
2018-04-25Ms template: Fix date.John MacFarlane1-1/+4
Previously .ND was used, but this only works if you have a title page, which we don't. Thanks to @teoric.
2018-03-30Add -V beameroption variable (#4359)Étienne BERSAC1-0/+4
* LaTeX template: Use `pgfpages` package; this is needed for notes on second screen in beamer * LaTeX template: Add `beameroption` variable in template
2018-03-17ConTeXt template: pdfa variable to generate PDF/A (#4294)Henri Menke1-0/+7
The resulting PDF can be verified using the Apache PDFBox preflight app. ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is a valid PDF/A-1b file ``` Instructions on how to install the ICC profiles on ConTeXt standalone can be found in the wiki: <http://wiki.contextgarden.net/PDFX#ICC_profiles>. If the ICC profiles are not available the log will contain messages like these ``` backend > profiles > profile specification 'sRGB.icc' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > no default profile 'srgb.icc' for colorspace 'rgb' backend > profiles > profile specification 'sRGB IEC61966-2.1' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > invalid output intent 'sRGB IEC61966-2.1' ``` and the resulting PDF will not be valid PDF/A: ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is not a valid PDF/A-1b file, error(s) : 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 ``` However, the PDF will still be generated and the "errors" shown in the log do not break anything.
2018-03-17Provide `bidi` package's option using `\PassOptionsToPackage` (#4357).Václav Haisman1-6/+3
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined. * Adjust test suite for LaTeX template change.
2018-02-08rst template: remove definition of 'math' role as raw.John MacFarlane1-6/+0
This used to be needed prior to v 0.8 of docutils, but now math support is built-in.
2018-01-19hlint code improvements.John MacFarlane1-1/+1
2018-01-19Merge pull request #4221 from phikal/masterJohn MacFarlane1-0/+4
Ms writer: Added papersize variable