aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-05-22Handle relative lengths (e.g. `2*`) in HTML column widths.John MacFarlane2-14/+62
See <https://www.w3.org/TR/html4/types.html#h-6.6>. "A relative length has the form "i*", where "i" is an integer. When allotting space among elements competing for that space, user agents allot pixel and percentage lengths first, then divide up remaining available space among relative lengths. Each relative length receives a portion of the available space that is proportional to the integer preceding the "*". The value "*" is equivalent to "1*". Thus, if 60 pixels of space are available after the user agent allots pixel and percentage space, and the competing relative lengths are 1*, 2*, and 3*, the 1* will be alloted 10 pixels, the 2* will be alloted 20 pixels, and the 3* will be alloted 30 pixels." Closes #4063.
2021-05-22Revert "HTML reader: simplify col width parsing"John MacFarlane1-9/+13
This reverts commit f76fe2ab56606528d4710cc6c40bceb5788c3906.
2021-05-22HTML reader: simplify col width parsingAlbert Krewinkel1-13/+9
2021-05-21Regenerate man page.John MacFarlane2-26/+93
2021-05-21Bump upper-bounds for network-uri, time.John MacFarlane2-10/+4
Change stack.yaml to use lts-17.12.
2021-05-21Fix link to KDE syntax highlighting docs.John MacFarlane1-1/+1
Closes jgm/pandoc-website#51.
2021-05-20Update changelog.John MacFarlane1-1/+33
2021-05-20DocBook reader: ensure that first and last names are separated.John MacFarlane2-6/+41
Closes #6541.
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-20Ms writer: handle tables with multiple paragraphs.John MacFarlane3-6/+92
Previously they overflowed the table cell width. We now set line lengths per-cell and restore them after the table has been written. Closes #7288.
2021-05-20LaTeX reader: More siunitx improvements. Closes #6658.John MacFarlane3-52/+161
There's still one slight divergence from the siunitx behavior: we get 'kg m/A/s' instead of 'kg m/(A s)'. At the moment I'm not going to worry about that.
2021-05-20LaTeX/siunitx: fix parsing of `\cubic` etc. See #6658.John MacFarlane2-35/+53
2021-05-20LaTeX reader sinuitx: fix + sign on ang.John MacFarlane2-3/+9
2021-05-20LaTeX reader siunitx: add leading 0 to numbers starting with .John MacFarlane3-5/+14
2021-05-20ConTeXt reader: improve ordered lists (#7304)Denis Maier4-49/+53
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-20LaTeX reader: Fix parsing of `+-` in siunitx numbers.John MacFarlane2-5/+11
See #6658.
2021-05-20LaTeX reader: support `\pm` in `SI{..}`.John MacFarlane2-1/+6
Closes #6620.
2021-05-20ZimWiki writer: allow links and emphasis in headersAlbert Krewinkel2-4/+4
The latest version of ZimWiki supports this. Closes: #6605
2021-05-19LaTeX reader: better support for `\xspace`.John MacFarlane4-15/+43
Previously we only supported it in inline contexts; now we support it in all contexts, including math. Partially addresses #7299.
2021-05-19Revisions to citation syntax description update.John MacFarlane1-5/+5
2021-05-19Update documentation on citation syntax.John MacFarlane1-32/+69
2021-05-19Remove unused pragma.John MacFarlane1-1/+0
2021-05-18Use fetchItem instead of downloadOrRead in fetchMediaResource.John MacFarlane1-1/+1
2021-05-18Text.Pandoc.MediaBag: change type to use a Text key...John MacFarlane2-7/+14
instead of `[FilePath]`. We normalize the path and use `/` separators for consistency.
2021-05-18Updaet changelog.John MacFarlane1-7/+80
2021-05-18LaTeX writer: separate successive quote chars with thin spaceAlbert Krewinkel2-2/+13
Successive quote characters are separated with a thin space to improve readability and to prevent unwanted ligatures. Detection of these quotes sometimes had failed if the second quote was nested in a span element. Closes: #6958
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-17Citeproc: ensure that CSL-related attributes are passed on...John MacFarlane1-1/+1
...to a Div with id 'refs'. Previously we just left the attributes of such a Div alone, which meant that style options like entry-spacing had no effect there.
2021-05-17HTML writer: keep attributes from code nested below pre tag.Albert Krewinkel2-1/+23
If a code block is defined with `<pre><code class="language-x">…</code></pre>`, where the `<pre>` element has no attributes, then the attributes from the `<code>` element are used instead. Any leading `language-` prefix is dropped in the code's *class* attribute are dropped to improve syntax highlighting. Closes: #7221
2021-05-17HTML writer: ensure headings only have valid attribs in HTML4Albert Krewinkel2-54/+71
Fixes: #5944
2021-05-17ConTeXt writer: use span identifiers as reference anchors.Albert Krewinkel2-2/+9
Closes: #7246
2021-05-17ConTeXt writer tests: keep code lines below 80 chars.Albert Krewinkel1-113/+119
2021-05-16LaTeX template: move title, author, date up to top of preamble.John MacFarlane5-42/+42
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 Krewinkel4-6/+26
Closes: #6639 The zero-width non-joiner character is used to avoid ligatures (e.g. in German).
2021-05-16Markdown writer: fewer unneeded escapes for `#`.John MacFarlane6-7/+16
See #6259.
2021-05-16Markdown writer: improve escaping of `@`.John MacFarlane1-1/+1
We need to escape literal `@` before `{` because of the new citation syntax.
2021-05-15Fix .editorconfig so Emacs can open zip archives and docx again.John MacFarlane1-0/+8
See https://github.com/hlissner/doom-emacs/issues/5057
2021-05-15Docx writer: copy over more settings from referenc.odcx.John MacFarlane34-1/+16
From settings.xml in the reference-doc, we now include: `zoom`, `embedSystemFonts`, `doNotTrackMoves`, `defaultTabStop`, `drawingGridHorizontalSpacing`, `drawingGridVerticalSpacing`, `displayHorizontalDrawingGridEvery`, `displayVerticalDrawingGridEvery`, `characterSpacingControl`, `savePreviewPicture`, `mathPr`, `themeFontLang`, `decimalSymbol`, `listSeparator`, `autoHyphenation`, `compat`. Closes #7240.
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 MacFarlane34-11/+1
Word will add these when revisions are made. But it's pointless to start out with a set of them.
2021-05-15MANUAL: note that `institute` variable works for HTML-based slides.John MacFarlane1-2/+5
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-15HTML writer: parse `<header>` as a DivAlbert Krewinkel2-5/+11
HTML5 `<header>` elements are treated like `<div>` elements.
2021-05-14MANUAL: add info about YAML escape sequences, link to spec.Albert Krewinkel1-4/+7
Closes: #7152
2021-05-14HTML reader: keep h1 tags as normal headers (#7274)Albert Krewinkel2-6/+3
The tags `<title>` and `<h1 class="title">` often contain the same information, so the latter was dropped from the document. However, as this can lead to loss of information, the heading is now always retained. Use `--shift-heading-level-by=-1` to turn the `<h1>` into the document title, or a filter to restore the previous behavior. Closes: #2293
2021-05-14Update changelog.John MacFarlane1-14/+35
2021-05-14Beamer writer: support exampleblock and alertblock.John MacFarlane3-4/+51
A block will be rendered as an exampleblock if the heading has class `example` and alertblock if it has class `alert`. Closes #7278.
2021-05-14changelog.md: fix Markdown, marking `<p>` as code.Albert Krewinkel1-1/+1
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-14Docx writer: fix alignment for cells.Albert Krewinkel1-14/+20
This fixes a regression introduced with the in the colspan/rowspan changes that caused column alignments to be ignored. The column alignment is used only if a default alignment is specified at the cell level; otherwise the cell-level alignment takes precedence.