aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2019-11-14Change reference.docx to use more normal block quotes.John MacFarlane1-7/+1
Indented left and right, same font and size. Previously it was unindented, smaller font and different typeface. See #5820.
2019-10-29Changes to build with new doctemplates/doclayout.John MacFarlane1-1/+0
The new version of doctemplates adds many features to pandoc's templating system, while remaining backwards-compatible. New features include partials and filters. Using template filters, one can lay out data in enumerated lists and tables. Templates are now layout-sensitive: so, for example, if a text with soft line breaks is interpolated near the end of a line, the text will break and wrap naturally. This makes the templating system much more suitable for programatically generating markdown or other plain-text files from metadata.
2019-10-29Remove include of grffile from default latex template.John MacFarlane1-1/+1
This package is needed for proper handling of image filenames containing periods (in addition to the period before the extension). Unfortunately, grffile breaks in the latest texlive update. Until a fix is released (see ho-tex/oberdiek#73) it seems best to remove this from the default template. This may cause problems if you have filenames with periods. The workaround is to put `\usepackage{grffile}` in header-includes, and be sure you're using an older version of texlive packages. See #5848. We will leave that issue open to remind us to check upstream, and restore grffile when it's possible to do so.
2019-10-14Minor template & test changes for latest dev doctemplates.John MacFarlane1-2/+2
2019-09-15Lua filters: allow passing of HTML-like tables instead of Attr (#5750)Albert Krewinkel1-16/+75
Attr values can now be given as normal Lua tables; this can be used as a convenient alternative to define Attr values, instead of constructing values with `pandoc.Attr`. Identifiers are taken from the *id* field, classes must be given as space separated words in the *class* field. All remaining fields are included as misc attributes. With this change, the following lines now create equal elements: pandoc.Span('test', {id = 'test', class = 'a b', check = 1}) pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1})) This also works when using the *attr* setter: local span = pandoc.Span 'text' span.attr = {id = 'test', class = 'a b', check = 1} Furthermore, the *attributes* field of AST elements can now be a plain key-value table even when using the `attributes` accessor: local span = pandoc.Span 'test' span.attributes = {check = 1} -- works as expected now Closes: #5744
2019-09-05Add CSS for hanging-indent div to epub.css.John MacFarlane1-0/+1
This is for hanging indents with pandoc-citeproc, to be supported in a later release.
2019-09-05Add div.hanging-indent CSS to HTML templates.John MacFarlane1-0/+1
2019-09-05Add partial styles.html in HTML5 template.John MacFarlane8-84/+18
Avoid duplication in HTML templates by using styles.html partial. Change indentation of styles in template.
2019-09-03Further mod to hanging indent code in latex template.John MacFarlane1-2/+0
Make sure the length is always defined.
2019-09-03Slight improvements to hanging indent code in latex template.John MacFarlane1-4/+7
See jgm/pandoc-citeproc#410.
2019-09-02LaTeX writer: use `cslreferences` environment for csl bibliographies.John MacFarlane1-0/+7
this allows bibliographies to receive special formatting. The template now contains definition of this environment (enabled only when CSL is used). It also defines a `\cslhangindent` length. This is set to 2em by default when the bibliography style specifies a hanging indent. To override the length, you can use e.g. \setlength{\cslhangindent}{7em} in header-includes. Closes jgm/pandoc-citeproc#410.
2019-08-25Use new doctemplates, doclayout.John MacFarlane2-6/+6
+ Remove Text.Pandoc.Pretty; use doclayout instead. [API change] + Text.Pandoc.Writers.Shared: remove metaToJSON, metaToJSON' [API change]. + Text.Pandoc.Writers.Shared: modify `addVariablesToContext`, `defField`, `setField`, `getField`, `resetField` to work with Context rather than JSON values. [API change] + Text.Pandoc.Writers.Shared: export new function `endsWithPlain` [API change]. + Use new templates and doclayout in writers. + Use Doc-based templates in all writers. + Adjust three tests for minor template rendering differences. + Added indentation to body in docbook4, docbook5 templates. The main impact of this change is better reflowing of content interpolated into templates. Previously, interpolated variables were rendered independently and intepolated as strings, which could lead to overly long lines. Now the templates interpolated as Doc values which may include breaking spaces, and reflowing occurs after template interpolation rather than before.
2019-07-28Update muse template to handle multiple authors better.John MacFarlane1-1/+1
2019-07-23revealjs template: add navigationMode (#5657)Mauro Bieg1-0/+4
2019-07-16Add option to include source files in ConTeXt PDFs (#5578)Tristan Stenner1-0/+5
Add a metadata option (`includesource`) to attach the source documents to the resulting PDF.
2019-07-15Customizable type of PDF/A for the ConTeXt writer (issue #5608) (#5610)Karl Pettersson1-4/+5
* Let the user choose type of PDF/A generated with ConTeXt (closes #5608) * Updated ConTeXt test documents for changes in tagging * Updated color profile settings in accordance with ConTeXt wiki * Made ICC profile and output intent for PDF/A customizable * Read pdfa variable from meta (and updated manual)
2019-07-13Merge pull request #5604 from jgm/jats-abstractJohn MacFarlane1-0/+5
JATS template: add abstract
2019-07-13EPUB writer: Use svg tag wrapper for cover image.John MacFarlane2-0/+16
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 Smith1-3/+3
* 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 Smith1-2/+2
2019-07-04Remove misleading comment in man, ms templates.John MacFarlane2-2/+2
2019-06-20JATS template: add abstractMauro Bieg1-0/+5
2019-06-12Lua: add a `clone()` method to all AST elements (#5572)Albert Krewinkel1-0/+9
Closes: #5568
2019-06-11Revert "JATS template: don't include journal-meta unless 'journal'..."John MacFarlane1-2/+0
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 MacFarlane1-0/+2
...is set in metadata. Otherwise we get validation errors.
2019-06-11JATS writer: ensure validity of pub-date.John MacFarlane1-12/+4
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 MacFarlane1-2/+2
That's illegal with this DTD.
2019-06-11data/pandoc.lua: fix deletion of nonexistent attributesAlbert Krewinkel1-1/+4
Fixes: #5569
2019-06-05Add jira writer (#5548)Albert Krewinkel1-0/+9
This adds support for Atlassian's jira markup. Closes #2497
2019-05-15Fix using Beamer with geometry (#5505)Daniel Maslowski1-0/+4
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 MacFarlane1-4/+2
Closes #5481. This includes an update to data/jats.csl.
2019-05-03EPUB2/3 templates: Move inline styles to default epub.css.John MacFarlane3-18/+5
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 Schrijver1-1/+1
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 Krewinkel1-0/+1
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 Hellmann1-1/+0
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 MacFarlane1-0/+3
Closes #5443.
2019-04-07update: default.revealjs follow revealjs 3.8.0 (#5435)ebiiim1-0/+1
2019-04-05PowerPoint writer: expand builtin reference doc to model all layoutsJesse Rosenthal24-20/+28
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 Dunning1-6/+9
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-Becker1-0/+13
Add XWiki Support Closes #1800
2019-03-28Update data/jats.csl to avoid commas between name-part elements.John MacFarlane1-2/+2
Closes #5397.
2019-03-25LaTeX template: Add pandoc to PDF metadata (#5388)Andrew Dunning1-1/+1
Credits pandoc in content creator metadata (the default is 'LaTeX with hyperref').
2019-03-22LaTeX template: Group graphics-related code (#5389)Andrew Dunning1-7/+6
* 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 Dunning1-1/+3
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 Dunning1-18/+19
+ 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 Relf1-1/+1
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 Dunning1-1/+1
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 MacFarlane1-5/+5
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 MacFarlane1-1/+5
Added `--ipynb-output` and `latexmk` pdf-engine.
2019-03-01LaTeX template: Add \frontmatter, \mainmatter, \backmatter for book classes.John MacFarlane1-0/+9
Closes #5306.