aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2022-08-22HTML writer: revert to using `width` property for column widthsAlbert Krewinkel
The default `flex` and `overflow-x` properties of a column are set to `auto`. In combination, these changes allow to get good results when using columns with or without explicit widths.
2022-08-21Fix typosluz paz
Found via `codespell -q 3 -S changelog.md -L bu,fo,ist,mke,multline,noes,ot,pard,pres,tabl,te,tothe`
2022-08-17Org template: add abstract from metadata as block of type "abstract"Albert Krewinkel
See #8204.
2022-08-12LaTeX template: fix behavior of `colorlinks` variableAlbert Krewinkel
Fixes a regression that required the `boxlinks` variable to be set in addition to the usual link coloring variables. Otherwise links were never colored in LaTeX PDF output. Fixes: #8226
2022-08-03Improve default CSS for task lists.John MacFarlane
This ensures that there is a space between the checkbox and the following content and that subsequent content lines up. Closes #8151. Supersedes and closes #8163.
2022-08-01HTML: use CSS flex boxes for columns.Albert Krewinkel
This allows to render an arbitrary number of columns, while the previous approach assumed exactly two columns.
2022-07-31Html template styles: remove span.underline.John MacFarlane
Now we use `<u>` elements for underlined text, so this is superfluous. (@mb21 correct me if I'm wrong.)
2022-07-26Add `boxlinks` variable for LaTeX/PDF output.John MacFarlane
If `boxlinks` is set but `colorlinks` is not, then boxes will be printed around links (`hidelinks` will not be set in `hypersetup`). Addresses #8198.
2022-07-12ms template: redefine rather than removing .CH macro.John MacFarlane
This responds to feedback in #8175.
2022-07-11ms writer: add comment in preamble stating generator.John MacFarlane
2022-06-24JATS template: mark authors with cor-id as corresponding authorsAlbert Krewinkel
Corresponding authors are marked by setting the attribute `corresp="yes"` in their respective `<contrib>` element.
2022-06-22Follow JATS4R recommendation and PudMed Central (#8041)Castedo Ellerman
Using the default jats template of pandoc 2.18, the https://jats4r.org/jats4r-validator/ warns: "The license URI is given in `@xlink:href`. For JATS 1.1d3 and later, if the license is defined by a canonical URI, then it should be specified in the `<ali:license_ref>` child element." I can confirm that what JATS4R recommends here is consistent with the JATS article packages found on the FTP site for the PubMed Central Open Access Subset <https://www.ncbi.nlm.nih.gov/pmc/tools/openftlist/> (at least with the eLife article I looked at). This proposed change follows the JATS4R recommendation and an example eLife article on the PubMed Central FTP site.
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-14Update default.csl from the latest chicago-author-date.csl.John MacFarlane
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-05-17LaTeX template: fix links-as-notesAlbert Krewinkel
The redefinition of `\href` when using `links-as-notes` must happen after the hyperref package has been loaded. Fixes: #8077
2022-05-01JATS template: include particles, prefix, suffix in namesAlbert Krewinkel
2022-04-26JATS template: unconditionally include permissions elementAlbert Krewinkel
Fixes a bug that caused license information to be omitted when no copyright information was provided. Fixes: #8040
2022-04-23LaTeX template: Fix <200c> character rendering (#8036)Hos Es
Renamed `\textormath` to `\TextOrMath`.
2022-04-04JATS template: allow multiple licenses to be given.Albert Krewinkel
The `license` metadata field can now be used to set the license of an article; a list can be used to add multiple license statements.
2022-04-02JATS template: allow multiple copyright statements, years, holdersAlbert Krewinkel
2022-03-21LaTeX template: Move urlstyle and xurl commands to after hyperref.John MacFarlane
Closes #7978.
2022-03-14LaTeX template: Fix regression with code in footnotes...John MacFarlane
...due to moving hyperref later in the template. Closes #7964.
2022-03-13Remove special redefinition of `\sout`.John MacFarlane
This used to be necessary to avoid problems with hyperref, when headings contain strikeout text, but it does not seem to be necessary any more (tested).
2022-03-13LaTeX template: Move `\sout` correction after hyperref.John MacFarlane
This fixes the previous change the default.latex.
2022-03-13LaTeX template: move hyperref near end of preamble.John MacFarlane
It now comes after header-includes and right before title, author, date, abstract. The hyperref documentation says: “Make sure it comes last of your loaded packages”. The reason is that it redefines many LaTeX commands. For example, loading it after titlesec (which might be loaded in header-includes) causes links in the table of contents to point to the wrong page (#7960). Closes #5811. Note: Users who presuppose hyperref in their header-includes will now have to add `\usepackage{hyperref}` to their header-includes to make it available there. (The redundant `\usepackage` will do no harm in this case.)
2022-03-02LaTeX template: skip \babelprovide if babel-lang is empty.John MacFarlane
This avoids an error. See #7945.
2022-03-01RST writer: support all standard metadata ("bibliographic") fields.John MacFarlane
2022-02-24DocBook reader: handle complete set of entities...John MacFarlane
as specified at <https://www.w3.org/2003/entities/2007doc/byalpha.html>. Closes #7938.
2022-01-31Custom writer: default to single quotes for stringsAlbert Krewinkel
Makes the code more consistent and makes it easier to use double quotes in strings, which is the usual quoting style used for HTML attributes. Closes: #7487
2022-01-16CSS in HTML template: adjust #TOC and h1 on mobile (#7835)Mauro Bieg
2022-01-15Improve on fix to #7506.John MacFarlane
Don't boldface code in output formats that can represent it as monospace. Define aliases for VI, VB, VBI as well.
2022-01-15Man writer: use custom font V for inline code.John MacFarlane
The V font is defined conditionally, so that it renders like CB in output formats that support that, and like B in those that don't (e.g. the terminal). We could just redefine C, but this would affect code blocks, too, and putting them all in boldface looks ugly, I think. Possible drawback: fragments created by pandoc's man writer will presuppose a nonstandard V font. Closes #7506. Supersedes 253467a549dcc22384be96041fd6f886c4a7a935.
2022-01-13HTML template: load header-includes before math (#7833)Kolen Cheung
MathJax expect the config comes before loading the MathJax script. This change of order allows one to config MathJax via header-includes, which loads before the MathJax script. This potentially is a breaking change. However, the only kind math supported by pandoc that is configurable seems to be katex, and according to src/Text/Pandoc/Writers/HTML.hs the way it is configured is hard-coded (katex doesn't seem to offer MathJax style config that is independent of loading katex.) So it seems it is safe to change this order without breaking others' documents. c.f. #2750
2022-01-09EPUB template improvements.John MacFarlane
Include abstract in default template. Also ensure that the essential styles needed by pandoc (`styles.html` partial) are included in the templates. This is important for correct formatting of CSL bibliographies. Note that much of the styling in `styles.html` will be ignored for EPUB, because of the conditional on `document-css`, but if it is desired, you can set the `document-css` variable.
2022-01-09Improve abstract in HTML template.John MacFarlane
* Add localized title "abstract", unless `abstract-title` variable is set. * Add `abstract-title` div to abstract CSS. * Move abstract CSS out of CSL conditional. * Ensure that abstract is aligned left but indented on all sides. * Use smaller font for abstract. Improves #7588.
2022-01-09Add abstract to default html template (#7588)Jannik Buhr
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
2022-01-02Change reference.pptx to use 16:9 aspect ratio.John MacFarlane
This is now Powerpoint's default.
2021-12-23JATS template: fix position of contrib affiliations in authoring setAlbert Krewinkel
Any `<aff>` element must come before any `<email>` element.
2021-12-23JATS templates: fix affiliation tagging in articleauthoring outputAlbert Krewinkel
Affiliations were `xlink`ed even in the articleauthoring tag set, but `<aff>` are not allowed as children of `contrib-group` elements in that tag set. Each affiliation must be listed directly in the contrib element.
2021-12-23JATS templates: add support for article subtitlesAlbert Krewinkel
2021-12-19Add a writer for Markua 0.10 (#7729)binaarinen
Markua is a markdown variant used by Leanpub. More information about Markua can be found at https://leanpub.com/markua/read. Adds a new exported function `writeMarkua` from T.P.Writers.Markdown. [API change] Closes #1871. Co-authored by Tim Wisotzki and Samuel Lemmenmeier.
2021-12-11Custom reader: pass list of sources instead of concatenated textAlbert Krewinkel
The first argument passed to Lua `Reader` functions is no longer a plain string but a richer data structure. The structure can easily be converted to a string by applying `tostring`, but is also a list with elements that contain each the *text* and *name* of each input source as a property of the respective name. A small example is added to the custom reader documentation, showcasing its use in a reader that creates a syntax-highlighted code block for each source code file passed as input. Existing readers must be updated.
2021-11-27Lua: use package pandoc-lua-marshal (#7719)Albert Krewinkel
The marshaling functions for pandoc's AST are extracted into a separate package. The package comes with a number of changes: - Pandoc's List module was rewritten in C, thereby improving error messages. - Lists of `Block` and `Inline` elements are marshaled using the new list types `Blocks` and `Inlines`, respectively. These types currently behave identical to the generic List type, but give better error messages. This also opens up the possibility of adding element-specific methods to these lists in the future. - Elements of type `MetaValue` are no longer pushed as values which have `.t` and `.tag` properties. This was already true for `MetaString` and `MetaBool` values, which are still marshaled as Lua strings and booleans, respectively. Affected values: + `MetaBlocks` values are marshaled as a `Blocks` list; + `MetaInlines` values are marshaled as a `Inlines` list; + `MetaList` values are marshaled as a generic pandoc `List`s. + `MetaMap` values are marshaled as plain tables and no longer given any metatable. - The test suite for marshaled objects and their constructors has been extended and improved. - A bug in Citation objects, where setting a citation's suffix modified it's prefix, has been fixed.
2021-11-11JATS template: fix incomplete previous commitAlbert Krewinkel
2021-11-11JATS template: fix equal-contrib attributeAlbert Krewinkel
The standard requires the value to be either `yes` or `no`, but is was set to `true` for authors who contributed equally.
2021-11-08Remove some extra stuff from data/creole.lua.John MacFarlane
2021-11-08Add disableLayout variable in revealjs templateChristophe Dervieux
This allows to modify it using Pandoc variable. Default value is correctly set to false by Pandoc.
2021-11-07Replace old sample custom reader with a full-featured reader for creole.John MacFarlane
This is better as an example. And it is faster than pandoc's regular creole parser, which shows that high-performance readers can be developed this way.