aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2023-01-10Add ChunkedHTML writer.John MacFarlane
- Add module Text.Pandoc.Writers.ChunkedHTML, exporting writeChunkedHtml [API change]. - Revised API for Text.Pandoc.Chunks. `chunkNext`, `chunkPrev`, `chunkUp` are now just `Maybe Chunk`. - Fix assignment of navigation elements of Chunks. - Strip off anchor portion of next and prev links. - Derive Show, Eq, Ord, Generic for ChunkDoc. - Add `chunkSectionNumber`, `chunkUnlisted`. - Automatically unwrap the zip to a directory if an extensionless output file specified. - Incorporate images with relative paths below working dir.
2023-01-06Add `code { hyphens: manual; }` to HTML and EPUB CSS.John MacFarlane
Closes #8530.
2023-01-02epub.css: comment out flex rules.John MacFarlane
This fixes commit 3666d79ae776ce4839262c9f9cbb9d76471d2eb0 which closed #8379.
2022-12-22Reveal.js template: prevent line-wrapping of parallax optionsAlbert Krewinkel
Fixes: #8503
2022-12-21Fix class name hanging -> hanging-indent in styles.citations.html.John MacFarlane
2022-12-18ConTeXt writer: support syntax highlighting for code.Albert Krewinkel
2022-12-12Update default CSL with latest chicago-author-date.csl.John MacFarlane
This removes some weird punctuation overrides for Portuguese. Closes jgm/citeproc#123.
2022-11-19LaTeX writer: Use soul instead of ulem for strikeout, underline.John MacFarlane
This handles things like hyphenation, line breaks, and nonbreaking spaces better. Closes #8411.
2022-11-10Add LaTeX variable `urlstyle` (#8429)Amar Al-Zubaidi
This is set to `same` by default, so users should not experience any change.
2022-11-09HTML template: remove default font size, line height...John MacFarlane
...and font family in default inline css. Closes #8423 (see comments there for motivation). `mainfont`, `fontsize`, and `linestretch` can still be used as before; the only difference is that we no longer provide opinionated defaults. This commit also adds a `maxwidth` variable that sets `max-width`; if not set, 36em is used as a default.
2022-11-06Remove stray character in epub.css.John MacFarlane
2022-11-04Change default background color of PDFs generated via HTML (#8422)Marcin Serwin
* Change default background color of PDFs generated via HTML * Update tests
2022-11-02epub.css: left-align h1, as before.John MacFarlane
2022-10-24Remove sample.lua from data files (#8397)Albert Krewinkel
The file is kept around in the pandoc-lua-engine test-suite. Closes: #8356
2022-10-17Adjust tests for CSS change; add CSS comments to mark...John MacFarlane
highlighting CSS and citations CSS in the source.
2022-10-17Fix typo introduced by recent commit in styles.html.John MacFarlane
2022-10-17Use styles.citations.html partial in styles.html.John MacFarlane
2022-10-17EPUB CSS changes.John MacFarlane
With this change, we reduce the amount of inline CSS used for EPUBs. Almost everything is now in the default EPUB CSS (`data/epub.css`), which can be overridden either by putting `epub.css` in the user data directory or by using `--css` on the command line. Inline styles are only used for syntax highlighting (which depends on the style specified, and is only included on pages with highlighted code) and for bibliography formatting (which can depend on the CSL style, and is only used in the page containing the bibliography). Note that, for compatibility with older readers, we don't use flexbox to style `column/columns` divs by default, as we do in HTML. Instead, we use an older method which only works when there are two `column` divs inside a `columns` div. If you need more than two columns and aren't worried about support for older EPUB readers, you can modify the default CSS (there is a comment in the CSS telling you what to do). Closes #8379.
2022-10-06latex template: set fonts after Beamer themeJeremie Knuesel
Beamer themes such as metropolis and saintpetersburg change the default fonts. This change gives precedence to the user font settings by moving them after the loading of the Beamer theme.
2022-10-03[API Change] Base custom writers on Writer type.Albert Krewinkel
The `T.P.Lua.writeCustom` function changed to allow either a TextWriter or ByteStringWriter to be returned. The global variables `PANDOC_DOCUMENT` and `PANDOC_WRITER_OPTIONS` are no longer set when the writer script is loaded. Both variables are still set in classic writers before the conversion is started, so they can be used when they are wrapped in functions.
2022-10-01Remove unsupported element from pptx reference doc (#8342)Link Swanson
The default template contained text above the header, which can mislead users into thinking there is a way to put text there using pandoc See #6338.
2022-09-29LaTeX writer: use `\includesvg` for SVGs...John MacFarlane
...and include the `svg` package. Closes #8334.
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