summaryrefslogtreecommitdiff
path: root/data/templates
AgeCommit message (Collapse)Author
2024-03-20Typst writer: support Typst 0.11 table features. (#9593)John MacFarlane
* Typst writer: support Typst 0.11 table features. - colspans - rowspans - cell alignment overrides - relative column widths - header and footer - multiple table bodies with intermediate headers Row heads are not yet supported. The default typst template has been modified so that tables don't have lines by default. As is standard with pandoc, we only add a line under a header or over a footer. However, a different default stroke pattern can easily be added in a template. Closes #9588.
2024-03-16Typst template: set table inset globally.John MacFarlane
2024-03-09Fix block headings support for unnumbered paragraphs (#9542)Oliver Fabel
`block-headings: true` seems to break unnumbered paragraphs and subparagraphs. This is due to the fact, that the unnumbered version uses the star macros \paragraph* and \subparagraph*. See issue #6018 for details.
2024-03-01Replace polyfill provider in HTML templates.John MacFarlane
The PR replaces polyfill.io with cdnjs.cloudflare.com/polyfill. polyfill.io has been acquired by Funnull, and the service has become unstable. This is essentially a cleaned up version of PR #2384 by @SukkaW; see the PR for more information.
2024-02-13Add djot reader and writer.John MacFarlane
Djot is a light markup syntax (https://djot.net). This patch adds djot as input and output formats. API changes: Add Text.Pandoc.Readers.Djot Add Text.Pandoc.Writers.Djot
2024-02-03ConTeXt template: support font fallback (#9361)Lawrence Chonavel
This uses the same YAML options as the LaTeX template.
2024-01-20LaTeX writer: set font fallback for babel main fontMax Heller
2024-01-19LaTeX template: support font fallbacklawcho
* LuaLaTeX-specific (uses luaotfload) * Configured in YAML metadata * Sans/main/mono fonts have separate fallback chains
2024-01-05Fix beamer highlightingmh4ckt3mh4ckt1c4s
2023-12-26ODT/opendocument writers: properly handle highlighting styles.John MacFarlane
These styles were going into an office:styles element in content.xml, but this is invalid. Instead they must go in styles.xml. See #9287. The variable `highlighting-styles` no longer has any effect on the default opendocument template, and highlighting styles are not included in opendocument output.
2023-12-20Remove html5shiv from default HTML5 template.John MacFarlane
I don't think we need to support IE < 9 any more!
2023-12-11Typst template fixes.John MacFarlane
2023-12-09Typst writer: use quote for block quotes.John MacFarlane
Remove custom definitiion of blockquote in default template.
2023-12-07Typst writer/template: support `--toc-depth` as in other writers.John MacFarlane
Closes #9242.
2023-11-14Update default.typst to support csl (#9186)Ian Max Andolina
Typst now supports CSL for its native citation engine, so pandoc should use a specified `csl` style in the template, falling back to `bibliographystyle` if `csl` is not specified. https://typst.app/docs/reference/meta/bibliography/
2023-11-03LaTeX template: include bookmark package unconditionally.John MacFarlane
This package produces better PDF bookmarks than hyperref and does it on the first pass. As a consequence, we now default to running LaTeX only once in producing a PDF (instead of twice). If a table of contents is present, we still have to run three times to get the page numbers.
2023-09-10LaTeX template: fix \CSLBlock vertical spaceJohn Purnell
2023-09-07LaTeX template: remove space around `\strut` in CSL commands.John MacFarlane
See #9058.
2023-09-07Fix typo in latex template.John MacFarlane
2023-09-07Adjust default latex template to improve citeproc output.John MacFarlane
- Add a strut to avoid inconsistencies in spacing. - Remove a break at the end of CSLRightInline to avoid inconsistencies in spacing. It shouldn't be necessary because the paragraph should extend to the right margin. See #9058.
2023-09-05Rewrite CSLReferences environment...John MacFarlane
...to avoid depending on enumitem, which plays badly with beamer. Instead we use a regular list environment. Thanks to @jpcirrus for the concept. We also restore the pre-3.1.7 format of the CSLReferences environment, which again has two parameters. The first determines whether a hanging indent is used (1 = yes, 0 = no), and the second is the entry line spacing (0 = none). Closes #9053.
2023-09-04LaTeX template: fix regression with CSL display="block".John MacFarlane
We no longer got a line break before the block; this restores it. Closes #7363.
2023-09-03LaTeX template: add code allow `\cite` to break across lines.John MacFarlane
Closes #9050.
2023-08-29Use `\cite` and `\bibitem` to link up citations, even with citeproc.John MacFarlane
See #9031 and discussion in #9020. This will give us better accessibility; when tagging is enabled, the citation can be linked to the bibliography entry. This changes some of the details of the layout and the default template. We now make CSLReferences a special enumitem list that will contain `\bibitem`s. Internal links inside citations to ids beginning in `ref-` are put inside a `\cite` instead of `\hyperref`. Closes #9031.
2023-08-26LaTeX template: special definition of `\st` for CJK.John MacFarlane
soul's version raises on error on CJK text. Closes #9019.
2023-08-25Man writer: improvements to code and code blocks.John MacFarlane
The aim here (see #9020) is to produce more standard and more portable man pages. To that end: - We revert the fanciness introduced in #7506, which employs a custom font name V and a macro that makes this act like boldface in a terminal and monospace in other formats. Unfortunately, this code uses a mechanism that is not portable (and does not work in mandoc). - Instead of using V for inline code, we simply use CR. Note that `\f[CR]` is emitted instead of plain `\f[C]`, because there is no C font in man. (This produces warnings in recent versions of groff.) - For code blocks, we now use the `.EX` and `.EE` macros, together with `.IP` for spacing and indentation. This gives more standard code that can be better interpreted e.g. by mandoc.
2023-08-24Man writer: don't emit `.hy`...John MacFarlane
regardless of setting of `hyphenate` variable. See #9020.
2023-08-13Change semicolon to colonJackson Schuster
2023-08-04Started implementing syntax highlighting for ODT.John MacFarlane
Currently only colors are supported, not other text styles. This change includes a new default opendocumnet template. See #6710.
2023-07-26Add clause for svg to default CSS for HTML.John MacFarlane
Suggested at #8969.
2023-07-05Make modern AsciiDoc the target for `asciidoc`.John MacFarlane
The AsciiDoc community now regards the dialect parsed by `asciidoctor` as the official AsciiDoc syntax, so it should be the target of our `asciidoc` format. Closes #8936. The `asciidoc` output format now behaves like `asciidoctor` used to. `asciidoctor` is a deprecated synonynm. For the old `asciidoc` behavior (targeting the Python script), use `asciidoc_legacy`. The templates have been consolidated. Instead of separate `default.asciidoctor` and `default.asciidoc` templates, there is just `default.asciidoc`. Text.Pandoc.Writers.AsciiDoc API changes: - `writeAsciiDoc` now behaves like `writeAsciiDoctor` used to. - `writeAsciiDoctor` is now a deprecated synonym for `writeAsciiDoc`. - New exported function `writeAsciiDocLegacy` behaves like `writeAsciDoc` used to.
2023-07-03Typst writer: consolidate bibliography files...John MacFarlane
into one `#bibliography` command. (Separate bibliographies are not possible.) Closes #8937.
2023-06-05Typst writer: use `#footnote` for notes.John MacFarlane
Closes #8893.
2023-04-28Writers.ODT: stop validator complaints by producing ODF 1.3Michael Stahl
The ODF validator complains about an invalid attribute style:contextual-spacing in styles.xml, ultimately an implementation error in whatever old version of LibreOffice that produced the data/odt/styles.xml (should have put it into an extension namespace). Fortunately the attribute was added to ODF 1.3, which was released a couple years ago. So the easiest fix is to simply produce ODF 1.3 instead of 1.2; it's supposed to be fully backward compatible.
2023-04-27add lang attribute to html tag in epub tplGabriel Lewertowski
2023-04-07Typst writer: omit bibliography if `citations` not enabled.John MacFarlane
With this change, the typst writer will omit the `#bibliography` command when `citations` is not enabled. (If you want to use pandoc's own `--citeproc`, you should combine it with `-t typst-citations` to disable native typst citations. Closes #8763.
2023-03-29styles.html: fix task-list styling in reveal.jsAlbert Krewinkel
Fixes: #8731
2023-03-28Fix `\babelfont` in default latex template.John MacFarlane
The first invocation should not specify a language, because it's the default. If we specify a language, we get an error in some cases. Closes #8728.
2023-03-27Typst: Use customized term instead of custom macro for def lists.John MacFarlane
2023-03-26More Typst writer improvements.John MacFarlane
+ Update manual with variables for Typst. + Split `lang` metadata into separate `lang` and `region` for Typst. + Fix label positioning in Divs. + Fix text customizations (lang, region, font, size) so they actually work. + Update tests and man page.
2023-03-26Typst writer improvements.John MacFarlane
+ Fix non-decimal enumerated lists. + Fix endnotes ending with code blocks. + Improve default template to use a typst template. + Factor out definitions and typst template into partials. + Properly escape backslash and quote inside double quotes. + Update tests.
2023-03-25Add typst writer.John MacFarlane
See #8713.
2023-03-25LaTeX template: set mainfontoptions with `\babelfont` too.John MacFarlane
Closes #8721.
2023-03-20Fix highlight/underline with lualatex.John MacFarlane
We need the lua-ul package instead of soul, which doesn't work with lualatex. Updates default latex template. Closes #8707.
2023-03-15Fix template for babelfonts so it conforms with documentation.John MacFarlane
Closes #8697.
2023-03-10Add `babelfonts` variable to default LaTeX template.John MacFarlane
This allows specifying certain fonts to be used with certain babel languages. Thanks to Frederik Elwert.
2023-03-06Fix background image in Beamer when there are figure environments (#8671)Martín Pozo
2023-02-26LaTeX template: Add CJKsansfont and CJKmonofont for XeLaTeX (#8656)Yudong Jin
`CJKsansfont` and `CJKmonofont` will be set for xelatex only if `CJKmainfont` is also provided.
2023-02-21asciidoc{,tor} template: fix revision date when author is unsetarcnmx
Revision line syntax is only valid in combination with an author line, so the date attribute must be set explicitly when the author is missing fixes #8637
2023-02-15Retain metadata in processing sections for chunked HTML.John MacFarlane
Previously we suppressed metadata in all but the top page, in order to prevent the title block from being printed on every page. This prevented use of custom variables set by metadata fields. This commit moves to a better solution: a conditional in the default template restricts the title block to the top page. Closes #8620.