summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2019-01-13data/pandoc.lua: auto-fix nested constructor argumentsAlbert Krewinkel
Incorrect types to pandoc element constructors are automatically converted to the correct types when possible. This was already done for most constructors, but conversions are now also done for nested types (like lists of lists).
2019-01-12LaTeX template: Simplify fontspec usage (#5218)Andrew Dunning
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 Dunning
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 Dunning
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 MacFarlane
Closes #4249. Thanks to @reagle.
2019-01-03LaTeX Template: Improve package selections (#5193)John MacFarlane
* Use Babel for LuaTeX. There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <https://github.com/reutenauer/polyglossia/issues/182>. * Load xcolor. The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861. * Load xurl if available. This breaks URLs in more locations. Only available with TeX Live 2018 and later. * Remove obsolete fixltx2e package * Reindent. Use two spaces to be consistent internally and with other templates. * Use `bookmark` if available. The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>. * Update LaTeX tests
2019-01-02LaTeX template: Require xcolorAndrew Dunning
2019-01-02EPUB writer: small fixes to nav.xhtml.John MacFarlane
* Add 'landmarks' id attribute to the landmarks nav. * Replace old default CSS removing numbers from ol.toc li with new rules that match `nav#toc ol, nav#landmarks ol`. * We keep the `toc` class on `ol` for backwards compatibility.
2019-01-01LaTeX template: Supply missing forAndrew Dunning
Partially addresses #5179
2019-01-01LaTeX template: Use `bookmark` if availableAndrew Dunning
The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26>.
2019-01-01LaTeX template: ReindentAndrew Dunning
Use two spaces to be consistent internally and with other templates.
2019-01-01LaTeX template: Remove obsolete fixltx2e packageAndrew Dunning
2019-01-01LaTeX template: Load xurl if availableAndrew Dunning
This breaks URLs in more locations. Only available with TeX Live 2018 and later.
2019-01-01LaTeX template: Load xcolor if availableAndrew Dunning
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 Dunning
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 MacFarlane
Closes #5146.
2018-12-11template:latex: make @ letter before using it (#5145)Enno
This fixes the previous commit for parskip and KOMA classes.
2018-12-11Let KOMA document class handle parskip when applicable (#5143)Enno
This is just a change to the default latex template.
2018-11-29sample.lua: add SingleQuoted, DoubleQuoted.John MacFarlane
Closes #5104.
2018-11-20Additional abbreviationsAndrew Dunning
Many of these borrowed from the Chicago Manual of Style 10.42, 'Scholarly abbreviations', <https://www.chicagomanualofstyle.org/book/ed17/part2/ch10/psec042.html>.
2018-11-19Lua filters: test AST object equality via HaskellAlbert Krewinkel
Equality of Lua objects representing pandoc AST elements is tested by unmarshalling the objects and comparing the result in Haskell. A new function `equals` which performs this test has been added to the `pandoc.utils` module. Closes: #5092
2018-11-19Asciidoc template: add :lang: to title header is lang is set in metadata.John MacFarlane
Closes #5088.
2018-11-03LaTeX template: add variable romanfont (#4665)OvidiusCicero
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 MacFarlane
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-22Add viz. to abbreviations file (#5007)Nick Fleisher
2018-10-22revealjs: typo in the socket.io javascript plugin (#5006)Yoan Blanc
2018-10-20Lua filters: iterate over AST element fields when using `pairs`Albert Krewinkel
This makes it possible to iterate over all field names of an AST element by using a generic `for` loop with `pairs`: for field_name, field_content in pairs(element) do … end Raw table fields of AST elements should be considered an implementation detail and might change in the future. Accessing element properties should always happen through the fields listed in the Lua filter docs. Note that the iterator currently excludes the `t`/`tag` field.
2018-10-15Lua pandoc module: ensure MetaList elements behave like ListsAlbert Krewinkel
Methods usable on Lists can also be used on MetaList objects.
2018-10-15Lua pandoc module: fix MetaList constructorAlbert Krewinkel
Passing a MetaList object to the constructor `pandoc.MetaList` now returns the passed list as a MetaList. This is consistent with the constructor behavior when passed an (untagged) list. Previously, the constructor used to create a new MetaList with the passed MetaList as its only element.
2018-10-14Custom writer: provide PANDOC_DOCUMENT instead of Setup functionAlbert Krewinkel
Custom writers have access to the global variable `PANDOC_DOCUMENT`. The variable contains a userdata wrapper around the full pandoc AST and exposes two fields, `meta` and `blocks`. The field content is only marshaled on-demand, performance of scripts not accessing the fields remains unaffected.
2018-10-13Custom writer: give full access to doc in optional Setup function (#4967)Albert Krewinkel
Custom writers can specify an optional `Setup` function. The function takes the full Pandoc document as input and should not return any value. Users can use this function to configure the writer depending on the given document's content or its metadata. data/sample.lua: add sample use of Setup function. The change allows to control the image format used to encode the image produced from dot code. Closes #4957
2018-10-13data/sample.lua: replace custom pipe function with pandoc.utils.pipeAlbert Krewinkel
2018-10-11data/pandoc.lua: add datatype ListAttributesAlbert Krewinkel
Make ListAttributes a datatype. The type is similar to Attr.
2018-10-09Docx writer: added framework for custom properties.John MacFarlane
So far, we don't actually write any custom properties, but we have the infrastructure to add this. See #3034.
2018-10-06Lua filter doc: fix description of Code.textAlbert Krewinkel
2018-10-04LaTeX template: add variable hyperrefoptions(#4925)Mathias Walter
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-22Translations/ruIvan Trubach
I suppose that you copy-pasted the Russian translations from babel[1] package. Actually, it has two versions — `captionsrussian@ancient` and `captionsrussian@modern`, the former contains translations for the pre-revolution (1918) orthography. [1]: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/babel-contrib/russian/russianb.ldf
2018-09-10Make HTML5 header easier to style precisely in default template (#4767)J. B. Rainsberger
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 Neto
Fixes #4798
2018-08-28EPUB writer: set epub:type on body element intelligently.John MacFarlane
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)Wandmalfarbe
2018-08-16TEI template: improve publicationStmt.John MacFarlane
Add support for publisher, address, pubPlace, and date variables.
2018-08-16TEI improvements.John MacFarlane
- 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 MacFarlane
`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 Roelandt
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 Occhipinti
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 MacFarlane
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 Khorlo
Fix (add) the missing option 'rollingLinks' in reveal.js template.
2018-07-12Translations/fr (#4766)lux-lth
* Edited FR translation, Cc (Carbon Copy) translates to 'Copie carbone' : Cc * Edited FR translation, 'Chapter' translates 'Chapitre' (typo) * Edited FR translation, 'Figure' translates to 'Figure' * Edited FR translation, 'Glossary' translates to 'Glossaire' * Edited FR translation, 'to' translates to 'à' * Edited FR translation, first letter to uppercase * Edited FR translation, 'Table' translates to 'Tableau'
2018-06-25Texinfo writer: use @sup and @sub instead of custom macrosAlexander Krotov
Fixes #4728