aboutsummaryrefslogtreecommitdiff
path: root/data/templates/default.context
AgeCommit message (Collapse)Author
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.
2024-10-21ConTeXt template: ensure that font names don't wrap.John MacFarlane
Closes #10305.
2024-05-30ConTeXt template: remove `\setupbackend[export=yes]`.John MacFarlane
This doesn't seem necessary for what we're doing, and it causes a crash due to a bug in ConTeXt. Closes #9820.
2024-02-03ConTeXt template: support font fallback (#9361)Lawrence Chonavel
This uses the same YAML options as the LaTeX template.
2023-02-12URL style in ConTeXt (#8612)Thomas Hodgson
Previously, a URL like this would be in monospace text: `\useURL[url1][https://example.com]`. Now, it will match the main text unless the `linkstyle` variable is set, which controls the styling of all links. Closes #8602. Added documentation for `urlstyle` variable in the ConTeXt template, and added detail to its documentation in the LaTeX template.
2023-01-15ConTeXt writer: support `tagging` extension [API Change]Albert Krewinkel
Paragraphs are enclosed by `\bpar` and `\epar` commands, and `highlight` commands are used for emphasis. This results in much better tagging in PDF output.
2022-12-18ConTeXt writer: support syntax highlighting for code.Albert Krewinkel
2022-06-21ConTeXt writer: support complex table structures. (#8116)Albert Krewinkel
The following table feature are now supported in ConTeXt: - colspans, - rowspans, - multiple bodies, - row headers, and - multi-row table head and foot. The wrapping `placetable` environment is also given a `reference` option with the table identifier, enabling referencing of the table from within the document.
2022-06-06ConTeXt writer: use "sectionlevel" environment for headings (#8106)Albert Krewinkel
The document hierarchy is now conveyed using the `\startsectionlevel`/`\stopsectionlevel` by default. This makes it easy to include pandoc-generated snippets in documents at arbitrary levels. The more semantic environments "chapter", "section", "subsection", etc. are used if the `--top-level-division` command line parameter is set to a non-default value. Closes: #5539
2022-01-02ConTeXt template: make title appear in PDF title bar.John MacFarlane
This is recommended for accessibility reasons. Note: doesn't work with macOS Preview.app. See https://groups.google.com/d/msgid/pandoc-discuss/m2lezx20jq.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net
2021-05-20ConTeXt reader: improve ordered lists (#7304)Denis Maier
Closes #5016 - change ordered list from itemize to enumerate - adds new itemgroup for ordered lists - add fontfeature for table figures - remove width from itemize in context writer
2021-04-28list of figures before list of tables in LaTeX and ConTeXt templates (#7235)Julien Dutant
2021-01-06Remove `\setupthinrules` from default context template.John MacFarlane
The width parameter this used is not actually supported, and the command didn't do anything.
2020-10-22ConTeXt template: adds \setupinterlinespace to fonts larger than normal (#6763)Denis Maier
2019-12-11ConTeXt template: Adjustments to title formatting (#5949)Denis Maier
Added `\setupinterlinespace` to `title`, `subtitle`, `date` and `author` elements. Otherwise longer titles that run over multiple lines will look squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2019-11-29Update default.context (#5946)Denis Maier
Fix `\startcslreferences`: - The old version had a too large skip at the beginning of the reference list => fixed that. - Change syntax to ConTeXt conventions
2019-11-16ConTeXt template: add a saner default for page numbers.John MacFarlane
Previously they appeared centered at the top of the page; now we put them centered at the bottom, unless the `pagenumbering` variable is set (this gives users full control over page number format and position, https://wiki.contextgarden.net/Command/setuppagenumbering)
2019-11-16Update default.context (#5875)Denis Maier
Define an start-stop-pair `cslreferences` to allow for hanging indents in the bibliography. Analogous to the cslreferences-environment in the default latex template. See here: https://github.com/jgm/pandoc-citeproc/issues/410 For this to work the context writer must be adapted.
2019-07-16Add option to include source files in ConTeXt PDFs (#5578)Tristan Stenner
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 Pettersson
* 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)
2018-05-01new Greek fallback typeface (would fix #4405) (#4605)Pablo Rodríguez
CMU Serif would give better typographic results than the current Greek fallback DejaVu Serif.
2018-03-17ConTeXt template: pdfa variable to generate PDF/A (#4294)Henri Menke
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-01-15ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke
- 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).
2017-05-06ConTeXt template: improved font handling.John MacFarlane
simplefonts is now obsolete in ConTeXt. This patch comes from Pablo Rodríguez via jgm/pandoc-templates#247.
2017-02-20Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates'John MacFarlane