aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
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-22Add viz. to abbreviations file (#5007)Nick Fleisher1-0/+1
2018-10-22revealjs: typo in the socket.io javascript plugin (#5006)Yoan Blanc1-1/+1
2018-10-20Lua filters: iterate over AST element fields when using `pairs`Albert Krewinkel1-0/+58
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 Krewinkel1-0/+3
Methods usable on Lists can also be used on MetaList objects.
2018-10-15Lua pandoc module: fix MetaList constructorAlbert Krewinkel1-1/+6
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 Krewinkel1-23/+13
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 Krewinkel1-3/+34
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 Krewinkel1-14/+3
2018-10-11data/pandoc.lua: add datatype ListAttributesAlbert Krewinkel1-1/+29
Make ListAttributes a datatype. The type is similar to Attr.
2018-10-09Docx writer: added framework for custom properties.John MacFarlane3-2/+5
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 Krewinkel1-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-22Translations/ruIvan Trubach1-9/+9
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. 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-07-12Translations/fr (#4766)lux-lth1-10/+10
* 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 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-08pandoc.lua: fix a typo (#4692)Felix Yan1-1/+1
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-04-25Removed deprecated ancient HTML math methods.John MacFarlane1-198/+0
Removed `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`, `--asciimathml` options. Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from `Text.Pandoc.Options.HTMLMathMethod` [API change]. Removed unneeded data file LaTeXMathML.js and updated tests. Bumped version to 2.2.
2018-04-24Powerpoint writer: Remove docProps/thumbnail.jpeg in data dir.Jesse Rosenthal1-0/+0
This file wasn't used in the production of documents. It's supposed to be a thumbnail of the current document, and we can't actually produce that ourselves. It turns out that the file contains a nonfree ICC color calibration file, so the best thing to do would be to remove it altogether. Fixes: #4588
2018-04-12Fix bash completion for `--print-default-data-file`.John MacFarlane1-3/+3
Previously this looked in the filesystem, even if pandoc was compiled with `embed_data_files` (and sometimes it looked in a nonexistent build directory). Now the bash completion script just includes a hard-coded list of data file names. See #4549.
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-18Powerpoint writer: Move notes slides into data tree.Jesse Rosenthal30-23/+37
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
2018-01-15ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke1-0/+5
- Default to xtables for context output. - Added `ntb` extension (affecting context writer only) to use Natural Tables instead. - Added `Ext_ntb` constructor to `Extension` (API change).
2018-01-13data/pandoc.lua: add attr, listAttributes accessorsAlbert Krewinkel1-11/+14
Elements with attributes got an additional `attr` accessor. Attributes were accessible only via the `identifier`, `classes`, and `attributes`, which was in conflict with the documentation, which indirectly states that such elements have the an `attr` property.
2018-01-13data/pandoc.lua: accept single block as singleton listAlbert Krewinkel1-19/+28
Every constructor which accepts a list of blocks now also accepts a single block element for convenience. Furthermore, strings are accepted as shorthand for `{pandoc.Str "text"}` in constructors.
2018-01-13data/pandoc.lua: accept singleton inline as a listAlbert Krewinkel1-16/+30
Every constructor which accepts a list of inlines now also accepts a single inline element for convenience.
2018-01-13data/pandoc.lua: drop _VERSIONAlbert Krewinkel1-3/+0
Having a _VERSION became superfluous, as this module is closely tied to the pandoc version, which is available via PANDOC_VERSION.