aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
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-15docx writer settings.xml:John MacFarlane1-5/+5
- Set zoom to 100% by default. - Align math options more with current Word defaults (e.g. Cambria Math font).
2021-05-15docx writer: Remove rsids from settings.docx.John MacFarlane1-11/+1
Word will add these when revisions are made. But it's pointless to start out with a set of them.
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-19Update default ODT styleLorenzo1-1/+1
As of now, the default style for ODT documents has a "First paragraph" style that inherits from "Standard" style and has no top or bottom margin. All subsequent paragraphs have "Text_20_body" style that inherits from "Standard" and add "0.0598in" margins on top and bottom. This makes the final document a bit ugly since the first paragraph has a small gap ("0.0598in") towards the second one, and all subsequent have double that. The proposed fix makes "First paragraph" inherit from "Text_20_body" instead so that it also has a consistent margin. Another approach would be to inherit "Text_20_body" and add a 0 margin on top.
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-12Docx writer: handle table header using styles.John MacFarlane1-0/+15
Instead of hard-coding the border and header cell vertical alignment, we now let this be determined by the Table style, making use of Word's "conditional formatting" for the table's first row. For headerless tables, we use the tblLook element to tell Word not to apply conditional first-row formatting. Closes #7008.
2021-01-10JATS writer: fix citations (#7018)Albert Krewinkel1-203/+0
* JATS writer: keep code lines at 80 chars or below * JATS writer: fix citations
2021-01-10Update default CSL to use latest chicago-author-date.csl.John MacFarlane1-2/+12
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 data/make-reference-files.hs.John MacFarlane1-27/+0
I don't think this has been used for a long time.
2020-12-18Remove some extraneous files in data directory.John MacFarlane3-89/+0
2020-12-07LaTeX template: include csquotes package if csquotes variable set.John MacFarlane1-0/+3
2020-12-02Add translations zh-Hans.yaml and zh-Hant.yaml Kolen Cheung2-0/+44
Closes #6904, closes #6909. Co-authored-by: taotieren <admin@taotieren.com>
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