summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2019-07-13Merge pull request #5604 from jgm/jats-abstractJohn MacFarlane
JATS template: add abstract
2019-07-13EPUB writer: Use svg tag wrapper for cover image.John MacFarlane
In addition, the code generating the image has been moved to the template, to make it more customizable. Those who use custom EPUB templates will need to adjust their templates, adding the code to generate the cover image. (Previously this was just inserted into 'body'.) Closes #5643.
2019-07-06Updating JATS template to v1.1dtd (#5632)Arfon Smith
* Updating JATS template to v1.1dtd * Update writer.jats
2019-07-05Update data/jats.csl to avoid commas between editor name-part elements. (#5629)Arfon Smith
2019-07-04Remove misleading comment in man, ms templates.John MacFarlane
2019-06-20JATS template: add abstractMauro Bieg
2019-06-12Lua: add a `clone()` method to all AST elements (#5572)Albert Krewinkel
Closes: #5568
2019-06-11Revert "JATS template: don't include journal-meta unless 'journal'..."John MacFarlane
This reverts commit 193b5ccebaceeb7c0959d40136a1a4d2aeb00c95. journal-meta is required. Better to include it even if it doesn't validate through lack of required fields.
2019-06-11JATS template: don't include journal-meta unless 'journal'...John MacFarlane
...is set in metadata. Otherwise we get validation errors.
2019-06-11JATS writer: ensure validity of pub-date.John MacFarlane
We try to parse the date and convert to year, month, day, as expected in pub-date. We also add an iso-8601-date attribute if possible.
2019-06-11JATS writer: don't embed string-name in string.John MacFarlane
That's illegal with this DTD.
2019-06-11data/pandoc.lua: fix deletion of nonexistent attributesAlbert Krewinkel
Fixes: #5569
2019-06-05Add jira writer (#5548)Albert Krewinkel
This adds support for Atlassian's jira markup. Closes #2497
2019-05-15Fix using Beamer with geometry (#5505)Daniel Maslowski
Beamer already loads geometry, so we need to use the `\geometry` command to set geometry options.
2019-05-04JATS writer: fix citations with PMID so they validate.John MacFarlane
Closes #5481. This includes an update to data/jats.csl.
2019-05-03EPUB2/3 templates: Move inline styles to default epub.css.John MacFarlane
Those who use a custom CSS stylesheet with EPUB should add these lines: ```css code{ white-space: pre-wrap; } span.smallcaps{ font-variant: small-caps; } span.underline{ text-decoration: underline; } q { quotes: "“" "”" "‘" "’"; } div.column{ display: inline-block; vertical-align: top; width: 50%; } ``` See #5466.
2019-05-04Epub3 stylesheet link compatible with kindlegen (#5466)Eric Schrijver
daamien@411119b removes `type="text/css"` from both `<style>` and `<rel="stylesheet">` elements in all templates. However, Amazon’s kindlegen software relies on this attribute on `<link>` elements when detecting stylesheets to include.
2019-05-04Lua: add `pandoc.system` module (#5468)Albert Krewinkel
The `system` Lua module provides utility functions to interact with the operating- and file system. E.g. print(pandoc.system.get_current_directory()) or pandoc.system.with_temporary_directory('tikz', function (dir) -- write and compile a TikZ file with pdflatex end)
2019-05-01Remove reference to head.min.js (#5448)Winnie Hellmann
This file has been removed in 3.8.0: https://github.com/hakimel/reveal.js/commit/29b0e86089eb3ec0d4bb5811c9b723dfcf36703c Add a note in the changelog that users will need to update reveal.js to at least 3.8.0 for their presentations generated with this version of pandoc to work correctly.
2019-04-11LaTeX template: Add pdflang to hypersetup if lang is set.John MacFarlane
Closes #5443.
2019-04-07update: default.revealjs follow revealjs 3.8.0 (#5435)ebiiim
2019-04-05PowerPoint writer: expand builtin reference doc to model all layoutsJesse Rosenthal
The previous built-in reference doc had only title and content layouts. Add in a section-header slide and a two-content slide, so users can more easily modify it to build their own templates. Golden files needed to be regenerated. Checked on MS PowerPoint 2013.
2019-04-02LaTeX template: Ensure correct heading/table order (#5421)Andrew Dunning
Improve the workaround for #1658, adapting a solution by @u-fischer in <https://github.com/latex3/latex2e/issues/131> that works whether or not the `indent` variable is enabled. Remove `subparagraph` variable in LaTeX template. The default is now to use run-in style for level 4 and 5 headings (`\paragraph` and `\subparagraph`). To get the previous default behavior (where these were formatted as blocks, like `\subsubsection`), set the `block-headings` variable. An example is given in the manual of reformatting the appearance of headings more thoroughly using KOMA-Script. Closes #5365.
2019-04-02Add XWiki Support (#4167)Derek Chen-Becker
Add XWiki Support Closes #1800
2019-03-28Update data/jats.csl to avoid commas between name-part elements.John MacFarlane
Closes #5397.
2019-03-25LaTeX template: Add pandoc to PDF metadata (#5388)Andrew Dunning
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning
* LaTeX template: Group graphics-related code The default figure placement was added in <https://github.com/jgm/pandoc/commit/f3ab4bc2b99e9f7f3917708a9110d6500aa051a0>; there does not appear to have been a reason for placing it at the end of the preamble. * Update tests
2019-03-21LaTeX template: Move \setstretch after front matter (#5378)Andrew Dunning
Ensures that `\maketitle`, `\tableofcontents`, and so forth are not affected by changes to line spacing. Closes #5179 by partially working around <https://github.com/reutenauer/polyglossia/issues/218>.
2019-03-13 LaTeX template: Improve readability (#5363)Andrew Dunning
+ LaTeX template: Improve template readability Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`, but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format comments more consistently. + Update tests + Remove hyperref breaklinks option. According to the documentation, hyperref sets this automatically as appropriate to the driver.
2019-03-07Add tectonic as an option for --pdf-engine. (#5346)Cormac Relf
Closes #5345 Runs tectonic on STDIN instead of a temporary .tex file, so that it looks in the working directory for `\include` and `\input` like the rest of the engines. Allows overriding the output directory without messing up the args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
2019-03-04 LaTeX template: Robust section numbering removal (#5351)Andrew Dunning
Ensures that section numbering does not reappear with custom section levels. See <https://tex.stackexchange.com/questions/473653/>. Update tests
2019-03-04LaTeX writer/template: better handling of front/main/backmatter.John MacFarlane
In pandoc 2.7 we assumed that every class with chapters would accept `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g. report does not). So pandoc 2.7 breaks on report class by including an unsupported command. So we replace the book-class variable in the template with two variables, has-chapters and has-frontmatter, and set these intelligently in the writer. Closes #5348.
2019-03-03Update bash completion template.John MacFarlane
Added `--ipynb-output` and `latexmk` pdf-engine.
2019-03-01LaTeX template: Add \frontmatter, \mainmatter, \backmatter for book classes.John MacFarlane
Closes #5306.
2019-02-27Translations: reorder alphabetically (#5335)Mauro Bieg
remove `Author`, closes #5334
2019-02-09Add titlepage class to section in epub3 template.John MacFarlane
Closes #5269.
2019-02-09Lua filters: load module `pandoc` before calling `init.lua` (#5287)Albert Krewinkel
The file `init.lua` in pandoc's data directory is run as part of pandoc's Lua initialization process. Previously, the `pandoc` module was loaded in `init.lua`, and the structure for marshaling was set-up after. This allowed simple patching of element marshaling, but made using `init.lua` more difficult: - it encouraged mixing essential initialization with user-defined customization; - upstream changes to init.lua had to be merged manually; - accidentally breaking marshaling by removing required modules was possible; Instead, all required modules are now loaded before calling `init.lua`. The file can be used entirely for user customization. Patching marshaling functions, while discouraged, is still possible via the `debug` module.
2019-02-09Added support for the `subject` metadata variable to PDF. (#5289)Pascal Wagler
2019-02-09data/pandoc.lua: re-export all bundled modulesAlbert Krewinkel
All Lua modules bundled with pandoc, i.e., `pandoc.List`, `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the `pandoc` module. They are assigned to the fields `List`, `mediabag`, `utils`, and `text`, respectively.
2019-02-09Asciidoctor writer sets the stem attribute if it contains latexmathTG
2019-02-09Adds Asciidoctor sprcific writer and testsTG
2019-02-07data/pandoc.lua: re-export List and utils moduleAlbert Krewinkel
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2019-02-02HTML5 template: Add role with ARIA doc-toc for table of contents.John MacFarlane
See #4213.
2019-01-25LaTeX template: Set default listings language for lua, assembler.John MacFarlane
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 Dunning
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 Dunning
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 Dunning
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 Dunning
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-16sample.lua: Add a missing '>'MichaWiedenmann