aboutsummaryrefslogtreecommitdiff
path: root/data/templates
AgeCommit message (Collapse)AuthorFilesLines
2021-10-21Fix line numbers in source code with reveal.jsJohn MacFarlane1-0/+3
We need "overflow: visible" for these to work, and reveal's default css disables this. So this modifies the default template to add this. Closes #7634. Thanks to @cderv for diagnosing the issue.
2021-10-16Ensure that babel is loaded also with pdflatex.John MacFarlane1-3/+2
This fixes a regression in #7604, which modernized babel usage but omitted to load babel for pdflatex, with the result that even simple documents could no longer be produced. Closes #7627.
2021-10-03Make babel use more idiomatichseg1-16/+13
* Use `babel`'s bidi implementation * Remove global `lang` option -- it broke eg hebrew * Import babel languages individually instead of as package options -- was broken for greek, hebrew * Move `header-includes` to after `babel` setup Closes #7604
2021-09-19Use babel, not polyglossia, with xelatex.John MacFarlane1-13/+1
Previously polyglossia worked better with xelatex, but that is no longer the case, so we simplify the code so that babel is used with all latex engines. This involves a change to the default LaTeX template.
2021-08-01RTF template: specify font family for fixed-width font f1.John MacFarlane1-1/+1
According to the spec, this is mandatory.
2021-07-22LaTeX writer: Use ulem for underline.John MacFarlane1-0/+1
ulem is conditionally included already when the `strikeout` variable is set, so we set this when there is underlined text, and use `\uline` instead of `\underline`. This fixes wrapping for underlined text. Closes #7351.
2021-07-05document-css: reset overflow-wrap on code blocksMauro Bieg1-1/+2
fixes #7423
2021-07-03Revert "LaTeX template: move title, author, date up to top of preamble."John MacFarlane1-29/+29
This reverts commit cc088687b4013c2b8b744eb337ed04fc63f315f2 and PR #7295. This fixes issues people had when using LaTeX commands defined later in the preamble (or in some cases UTF-8 text) in the title or author fields. Closes #7422.
2021-06-21reveal.js writer: better handling of options.John MacFarlane1-128/+70
Previously it was impossible to specify false values for options that default to true; setting the option to false just caused the portion of the template setting the option to be omitted. Now we prepopulate all the variables with their default values, including them unconditionally and allowing them to be overridden.
2021-05-20reveal.js template: use `hash: true` by default rather than...John MacFarlane1-4/+4
`history: true`. Closes #6968. Setting `hash: true` is enough to get linkability to a particular page of the slide show.
2021-05-20ConTeXt reader: improve ordered lists (#7304)Denis Maier1-0/+4
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-05-17LaTeX template: improve treatment of CSL entry-spacing.John MacFarlane1-3/+3
Previously with the default template settings (`indent` variable not set), we would get interparagraph spaces separating bib entries even with `entry-spacing="0"`. On the other hand, setting `entry-spacing="2"` gave ridiculously large spacing. This change makes the spacing caused by `entry-spacing` a multiple of `\parskip` by default, which gives aesthetically reasonable output. Those who want a larger or smaller unit (e.g. because they use `indent` which sets `\parskip` to 0) may `\setlength{\cslentryspacingunit}{10pt}` in header-includes to override the defaults. Closes #7296.
2021-05-16LaTeX template: move title, author, date up to top of preamble.John MacFarlane1-29/+29
This allows header-includes to use them, and puts them in a position where you can see them immediately. Closes #7295.
2021-05-16LaTeX template: define commands for zero width non-joiner characterAlbert Krewinkel1-0/+19
Closes: #6639 The zero-width non-joiner character is used to avoid ligatures (e.g. in German).
2021-05-15HTML-based slide shows: add support for institute (#7289)Thomas Hodgson5-1/+19
Add institute variable (string or list) to HTML-based slide formats.
2021-05-14LaTeX template: Move CSL macro defs before header-includes.John MacFarlane1-25/+25
This allows them to be overriden by header-includes. Closes #7286.
2021-05-10latex template: use non-starred names for xcolor color names.John MacFarlane1-1/+1
This should make svgnames and x11names work properly. Closes #6109.
2021-04-29Support toc-title in revealjs (#7171)Florian Kohrt1-0/+5
* Support toc-title in revealjs * Add semantic HTML "nav" tag Closes #7170. As with default.html5
2021-04-29Update default.latex (#7234)badumont1-1/+4
Fix bad vertical spacing after the bibliography.
2021-04-28list of figures before list of tables in LaTeX and ConTeXt templates (#7235)Julien Dutant2-6/+6
2021-03-16Remove JS comment from HTML (#7154)Florian Kohrt1-1/+1
Illegal, turn into HTML comment
2021-03-14Handle 'nocite' better with --biblatex and --natbib.John MacFarlane1-0/+3
Previously the nocite metadata field was ignored with these formats. Now it populates a `nocite-ids` template variable and causes a `\nocite` command to be issued. Closes #4585.
2021-03-11JATS templates: support 'equal-contrib' attrib for authorsAlbert Krewinkel2-2/+2
Authors who contributed equally to a paper may be marked with `equal-contrib`.
2021-02-26Wrap url colours in braces in the default LaTeX template (#7121)Loïc Grobol1-4/+4
2021-02-20revealjs writer: add 'center' option for vertical slide centering.maurerle1-0/+4
Closes #7104.
2021-02-18Revert "LaTeX template: disable `` ?` `` and `` !` `` ligatures."John MacFarlane1-1/+0
This reverts commit 24d7cd539ba70aa94480976a7957420c020cb19a.
2021-02-18LaTeX template: disable `` ?` `` and `` !` `` ligatures.John MacFarlane1-0/+1
These are often triggered by accident in languagegs that use ` `` ` for end quote (e.g. German). See jgm/citeproc#54.
2021-02-15JATS writer: add date-type to pub-date elementsAlbert Krewinkel1-1/+1
2021-02-15JATS writer: replace attribute "pub-type" with "publication-format".Albert Krewinkel1-3/+3
The former attribute is deprecated.
2021-02-03LaTeX template: Update to iftex package (#7073)Andrew Dunning1-11/+11
Load the iftex package directly rather than via the ifxetex and ifluatex compatibility wrappers, which have been merged into a single package that is part of the LaTeX core. The capitalization of the commands has been changed for compatibility with older versions of TeX Live that have the version of iftex by the Persian TeX Group. This had been removed in <https://github.com/jgm/pandoc/commit/2845794c0c31b2ef1f3e6a73bb5b109da4c74f37> for compatibility with BasicTeX, but that is no longer an issue.
2021-02-01Add default.bibtex to repository.John MacFarlane1-0/+10
2021-02-01BibTeX writer: use doclayout and doctemplate.John MacFarlane1-0/+10
This change allows bibtex/biblatex output to wrap as other formats do, depending on the settings of `--wrap` and `--columns`. It also introduces default templates for bibtex and biblatex, which allow for using the variables `header-include`, `include-before` or `include-after` (or alternatively the command line options `--include-in-header`, `--include-before-body`, `--include-after-body`) to insert content into the generated bibtex/biblatex. This change requires a change in the return type of the unexported `T.P.Citeproc.writeBibTeXString` from `Text` to `Doc Text`. Closes #7068.
2021-01-29JATS templates: tag author.name as string-nameAlbert Krewinkel2-0/+4
The partitioning the components of a name into surname, given names, etc. is not always possible or not available. Using `author.name` allows to give the full name as a fallback to be used when `author.surname` is not available.
2021-01-06Remove `\setupthinrules` from default context template.John MacFarlane1-2/+0
The width parameter this used is not actually supported, and the command didn't do anything.
2020-12-27Use meta-description instead of description in templates.John MacFarlane2-4/+4
Since this is an attribute value, we need to prepare it in the writer.
2020-12-27templates: added the `description` metatag to both html4 and html5 templates ↵Jerry Sky2-0/+6
(#6982) The `description` meta tag will make the generated HTML documents more complete and SEO-friendly.
2020-12-20LaTeX writer: support colspans and rowspans in tables. (#6950)Albert Krewinkel1-0/+3
Note that the multirow package is needed for rowspans. It is included in the latex template under a variable, so that it won't be used unless needed for a table.
2020-12-18Remove data/templates/README.markdown.John MacFarlane1-49/+0
2020-12-18Remove some extraneous files in data directory.John MacFarlane2-7/+0
2020-12-07LaTeX template: include csquotes package if csquotes variable set.John MacFarlane1-0/+3
2020-11-27EPUB: use preserveAspectRatio="xMidYMid" for cover image (#6895)Shin Sang-jae2-2/+2
This change affects both the epub2 and the epub3 templates. It avoids distortion of the cover image by requiring that the aspect ratio be preserved.
2020-11-25latex template: put back amssymbJohn MacFarlane1-3/+1
We need it for checkboxes in todo lists, and maybe for other things. In this location it seems compatible with the cases that propmted #6469 and PR #6762.
2020-11-25LaTeX writer: improve longtable output.John MacFarlane1-1/+1
- Don't create minipages for regular paragraphs. - Put width and alignment information in the longtable column descriptors. - Closes #6883.
2020-11-25latex template: disable language-specific shorthands in babel.John MacFarlane1-1/+4
Babel defines "shorthands" for some languages, and these can produce unexpected results. For example, in Spanish, `1.22` gets rendered as `122`, and `et~al.` as `etal`. One would think that babel's `shorthands=off` option (which we were using) would disable these, but it doesn't. So we remove `shorthands=off` and add some code that redefines the shorthands macro. Eventually this will be fixed in babel, I hope, and we can revert to something simpler. Closes #6817, closes #6887.
2020-11-23JATS template: allow array of persistent institute ids in `pid`Albert Krewinkel1-0/+3
2020-11-20JATS writer: support author affiliations (#6867)Albert Krewinkel3-6/+43
Closes: #6687
2020-11-19reveal.js template fixes.John MacFarlane1-8/+16
Put quotes around `controlsLayout`, `controlsBackArrows`, and `display`, since these require strings. Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
2020-11-18latex template: add a `\break` after parbox in CSLRightInline.John MacFarlane1-1/+1
This should fix spacing problems between entries with numeric styles.
2020-11-18latex template: fix number of params on CSLReferences.John MacFarlane1-1/+1
2020-11-18Replace org #+KEYWORDS with #+keywordsTEC1-3/+3
As of ~2 years ago, lower case keywords became the standard (though they are handled case insensitive, as always): https://code.orgmode.org/bzg/org-mode/commit/13424336a6f30c50952d291e7a82906c1210daf0 Upper case keywords are exclusive to the manual: - https://orgmode.org/list/871s50zn6p.fsf@nicolasgoaziou.fr/ - https://orgmode.org/list/87tuuw3n15.fsf@nicolasgoaziou.fr/