aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2026-01-06Fix author prefix placeholder in JATS template (#11381)Christophe Dervieux
Follow up on https://github.com/jgm/pandoc/pull/10622 that fix typo in other file
2026-01-03Typst template: disable hyphenation for title, subtitle.John MacFarlane
Closes #11375.
2025-12-06HTML5 template: conditionally include lang attribute.John MacFarlane
Previously we included it unconditionally, even if this meant giving it an empty value. This seems at best redundant, since the empty value is the default. At worst, it adds clutter and according to some sources may prevent the use of browser defaults. I believe that the justification for including these attributes even with empty values is not a good one; see commit 07d51d9 for the original change. On my reading, the HTML spec does not require the presence of the attribute on the html element; it only says that if the attribute is present, it must have an empty string or valid BCP 47 language tag as its value. See also #11324.
2025-12-02Typst template: Fix keywords usage. (#11317)har7an
Previously the template turned any `keywords` defined in Pandoc metadata into empty objects due to a misnomer in a loop variable. This in turn was rejected by the Typst compiler as invalid syntax, making document generation with keywords impossible.
2025-11-30Add reveal.js scroll view option to HTML writer (#11305)Asliddinbek Azizovich
* Add revealjs `scroll` view option to HTML writer * Add `scrollSnap` option into default.revealjs Closes #10052
2025-11-05Add BBCode writer (#11242)reptee
`bbcode` is now supported as an output format, as well as variants `bbcode_fluxbb` (FluxBB), `bbcode_phpbb` (phpBB), `bbcode_steam` (Hubzilla), `bbcode_hubzilla` (Hubzilla), and `bbcode_xenforo` (xenForo). [API change] Adds a new module Text.Pandoc.Writers.BBCode, exporting a number of functions. Also exports `writeBBCode`, `writeBBCodeSteam`, `writeBBCodeFluxBB`, `writeBBCodePhpBB`, `writeBBCodeHubzilla`, `writeBBCodeXenforo` from Text.Pandoc.Writers.
2025-10-30Re-add `columns` to typst template.John MacFarlane
This is a regression since 3.8. Closes #11259.
2025-10-26Typst template: fix font for compatibility with typst 0.14.John MacFarlane
Typst 0.14 doesn't permit an empty array for `font`. Closes #11238.
2025-10-23Typst template: fix syntax for bibliography inclusion (#11233)Mickaël Canouil
Previously the syntax was wrong when multiple bibliography files were specified. Typst expects an array.
2025-10-18Typst template: ensure that title block is properly centered.John MacFarlane
Closes #11221.
2025-10-06LaTeX writer/template: small fix for unnumbered tables.John MacFarlane
This improves on commit e13aa5c0157744de262ac512cc95a76a4562e37b, which worked only for recent versions of longtable. For older versions, we need to define a dummy counter `none`. Closes #11201. Thanks to @priiduonu for the solution.
2025-10-04Typst template: fix 3.8 regression in which links disappear.John MacFarlane
A template change in 3.8 added a show rule for links which causes them to disappear except in special cases. This change fixes the problem. Closes #11194.
2025-09-28Remove coloring for a, a:visiting in epub.css.John MacFarlane
This was causing links in iOS books app not to be distinguished in any way (since underlining is not used there). Closes #11174.
2025-09-28LaTeX writer: Fix strikeouts in beamer title (#11169)TuongNM
beamer uses pdfstring for the pdfinfo which can't handle soul strikeouts. Therefore, the title, subtitle and author contents need to be put inside texorpdfstring to deal with both the pdfinfo as well as the formatting. Fixes #11168.
2025-09-28Typst writer: Fix syntax highlighting.John MacFarlane
See #11171. Previously the native typst highlighting was always used, regardless of the setting of `--syntax-highlighting`. With this change, `--syntax-highlighting=none` and `--syntax-highlighting=<style name>` (with skylighting) will work. Completes #10525.
2025-09-24Add `shorthands` variable for LaTeX output.John MacFarlane
If true, pandoc will allow language-specific shorthands when loading babel. Closes #11160.
2025-09-15Vimdoc writer (#11132)reptee
Support for vimdoc, documentation format used by vim in its help pages. Relies heavily on definition lists and precise text alignment to generate tags.
2025-09-02Update default.csl from new chicago-author-date.csl.John MacFarlane
2025-09-02LaTeX template: don't emit empty linkcolor= in hypersetup.John MacFarlane
Closes #11098.
2025-09-02Add features to typst base template (take 2).Christopher T. Kenny
New template variables supported: `thanks`, `abstract-title`, `linestretch`, `mathfont`, `codefont`, `linkcolor`, `filecolor`, `citecolor`. Closes #9956, #11076. (This is a new version of f000fa168bd122fee6e67f5a67bdd6d42d173261 which was reverted.)
2025-08-27LaTeX writer: include cancel package only if needed.John MacFarlane
That is, only if there is math that contains `\cancel`, `\bcancel`, or `\xcancel`.
2025-08-24common.latex: add RTL support for LuaTeX engineReuben Thomas
2025-08-24Revert "Add features to typst base template."John MacFarlane
This reverts commit f000fa168bd122fee6e67f5a67bdd6d42d173261.
2025-08-06Org template: add `#+options` lines if necessaryAlbert Krewinkel
The default template now adds `#+options` lines if non-default settings are used for the `smart_quotes` and `special_strings` extensions.
2025-08-06LaTeX writer: set `pdf-trailer-id` if `SOURCE_DATE_EPOCH` envvar is setAlbert Krewinkel
The `SOURCE_DATE_EPOCH` environment variable is used to trigger reproducible PDF compilation, i.e., PDFs that are identical down to the byte level for repeated runs. Closes: #6539
2025-08-04reference.docx: don't left-align table header rown.west
See #11019. Previously, centering tables in `reference.docx` would leave the header row left-aligned. Why the OOXML 'standard' would allow table elements to be aligned differently from the rest of the table in the first place is anyone's guess.
2025-07-30Typst writer: add native Typst support for `nocite`.Albert Krewinkel
The `nocite` metadata field can now be used to supply additional citations that don't appear in the text, just as with citeproc and LaTeX's bibtex and natbib. Closes: #10680
2025-07-29HTML styles: prefix default styles with informative CSS comment (#11002)Albert Krewinkel
Closes #8819
2025-07-24Add features to typst base template.Christopher Kenny
This implements the changes suggested in #9956, with the exception of the filecolor/urlcolor one. These would require adding some regex to guess the link types. This is theoretically possible to do, but it wasn't clear to me that this is a good thing to put in a default template. Happy to adjust if you have thoughts on this. Closes #9956. Some things to note: I'm converting colors by passing them as content, as I was seeing pandoc escape # if that was included. I set the default fonts for math and code ("raw") to fonts that are bundled with Typst. These need not be those fonts if there are more familiar pandoc preferences.
2025-07-21Typst: add support for custom and/or translated "Abstract" titlesAlbert Krewinkel
Closes: #9724
2025-07-20Use latest dev citeproc and update the default CSL...John MacFarlane
from the latest chicago-author-date.csl. (Note that this goes from the 17th to the 18th edition.) Update tests.
2025-06-10Update East Asia font theme in styles.xml to minorEastAsiaTomBen
2025-06-10Update language settings in styles.xml for East Asia to Simplified ChineseTomBen
2025-05-17ConTeXt template: add command needed to get tagging working...pandoc-cli-3.7.0.13.7.0.1John MacFarlane
...on the most recent context versions. See #10846.
2025-05-15Fix context writer/template to produce tagged PDFs.John MacFarlane
As before, the `tagging` extension must be enabled. We now add the command that tells ConTeXt to start tagging. Closes #10846.
2025-05-13Add footnote block text sampleAndrew Dunning
2025-05-13Remove extra spaces in default reference docxAndrew Dunning
The line breaks are interpreted as whitespace, resulting in extra leading and trailing spaces in the reference file.
2025-03-29ms template: put PDF-specific things under a conditional.John MacFarlane
Don't inculde them if `pdf-engine` isn't set.
2025-03-29ms template: use T rather than P as default font family.John MacFarlane
This is more reliable; see #10738.
2025-03-17Revert "Default beamer template: only emit `\date` if set (#10687)"John MacFarlane
This reverts commit 3f1f58e96e4eae82af44f1610806aa7c637a59d6. The reason for reverting this change is that it led to an undesirable behavior change. Documents with no explicit date specified now have a date printed, because the default title block will include a date if no `\date` command is used. The empty `\date{}`, by contrast, suppressed the date, which is the desirable behavior. PR #10687 was motivated by the desire to include a custom `\date` in the frontmatter via header-includes. I think that aim can be achieved more simply by simply setting the `date` variable. In markdown you can even use `date:` in metadata and put some raw LaTeX there.
2025-03-14Default beamer template: only emit `\date` if set (#10687)josch
This allows one, for example, to set a custom \date in the header-includes of the rmarkdown yaml frontmatter. Without this conditional, the custom \date in the frontmatter would be overridden by a (potentially empty) date from this template later.
2025-02-14Update article.jats_publishing template (#10622)Tiago-Manzato
Just a typo for author prefix that was causing authors to have the suffix as prefix and suffix in the XML.
2025-02-10Use babel options `shorthands=off`.John MacFarlane
This has been fixed now in Babel for some time. So we can now get rid of the ugly code that disabled language-specific shorthands (see e26d31d). Closes #6817.
2025-02-10Remove selnolig-langs.John MacFarlane
We now specify the language as a global option again, so we no longer need to specify it when invoking selnolig. See #9863.
2025-02-08LaTeX writer/template: Improve babel support.John MacFarlane
Previously we used the `.ini` files for every language, but for European languages these tend to provide inferior results to the `.ldf` files used by classic Babel. Currently Babel documentation recommends using the classic system for European languages written in Latin and Cyrillic scripts and Vietnamese. So the LaTeX writer and template now follow this guidance. Main languages in the list of languages with good "classic" support are added to global documentclass options and will be automatically handled by Babel using the `.ldf` files. If the main language is not in this list, the `babeloptions` variable will be set to `provide=*`, which will cause support to be loaded from the `.ini` file rather than an `.ldf`. So, for example, setting `-V babeloptions=''` with a polytonic Greek document will cause the `.ldf` support to be used instead of the `.ini`. The default setting of this variable can be overwritten, but in most cases the default should give good results. Closes #8283.
2025-02-05Add CRediT roles to JATSCharles Tapley Hoyt
Enable annotating author roles using the Contribution Role Taxonomy (CRediT) and export this information in conformant JATS Closes #10152. Co-Authored-By: Jez Cope <[email protected]>
2025-02-04LaTeX template: allow `csquotesoptions` to be specified.John MacFarlane
Obsoletes #7025. See #8283.
2025-01-31Docx writer: repeat reference doc's sectPr for each new section.John MacFarlane
Previously we were only carrying over the reference doc's sectPr at the end of the document, so it wouldn't affect the intermediate sections that are now added if `--top-level-division` is `chapter` or `part`. This could lead to bad results (e.g. page numbering starting only on the last chapter). Closes #10577.
2025-01-31Docx title style corrections (#10581)Andrew Dunning
Base Author and Date styles on Title; remove condensed spacing.
2025-01-19font-settings.latex template: fix indent bugs.John MacFarlane
Fixed conditional indentation so that the *output* is indented properly.