Andrew Dunning
fc9ac7993a
LaTeX template: Supply missing for
...
Partially addresses #5179
2019-01-01 19:23:52 -05:00
Andrew Dunning
8feda269b0
LaTeX template: Use bookmark
if available
...
The `bookmark` package can sometimes correct the levels of headings where `hyperref` cannot: see <https://komascript.de/release3.26 >.
2019-01-01 17:31:39 -05:00
Andrew Dunning
6a71997fcb
LaTeX template: Reindent
...
Use two spaces to be consistent internally and with other templates.
2019-01-01 14:59:19 -05:00
Andrew Dunning
3160836983
LaTeX template: Remove obsolete fixltx2e package
2019-01-01 14:57:19 -05:00
Andrew Dunning
b6d13467f6
LaTeX template: Load xurl if available
...
This breaks URLs in more locations. Only available with TeX Live 2018 and later.
2019-01-01 14:47:20 -05:00
Andrew Dunning
275cedc59c
LaTeX template: Load xcolor if available
...
The `xcolor` package must be loaded before the `footnote` package, which we load to fix foonotes in tables. Closes #4861 .
2019-01-01 14:45:20 -05:00
Andrew Dunning
d410554f46
LaTeX Template: Use Babel for LuaTeX
...
There are a number of bugs in Polyglossia under LuaLaTeX with common languages, e.g. <https://github.com/reutenauer/polyglossia/issues/182 >.
2019-01-01 14:37:42 -05:00
John MacFarlane
9fe6d91a1a
Remove unnecessary type="text/css" on style and link for HTML5.
...
Closes #5146 .
2018-12-14 11:29:35 -08:00
Enno
dc8caf10df
template:latex: make @ letter before using it ( #5145 )
...
This fixes the previous commit for parskip and KOMA classes.
2018-12-11 16:21:45 -05:00
Enno
84147eeff1
Let KOMA document class handle parskip when applicable ( #5143 )
...
This is just a change to the default latex template.
2018-12-11 13:22:31 -05:00
John MacFarlane
642c022d81
sample.lua: add SingleQuoted, DoubleQuoted.
...
Closes #5104 .
2018-11-29 10:42:05 -08:00
Andrew Dunning
514af101ef
Additional abbreviations
...
Many of these borrowed from the Chicago Manual of Style 10.42, 'Scholarly abbreviations', <https://www.chicagomanualofstyle.org/book/ed17/part2/ch10/psec042.html >.
2018-11-20 15:42:24 -05:00
Albert Krewinkel
c0d8b0abcb
Lua filters: test AST object equality via Haskell
...
Equality of Lua objects representing pandoc AST elements is tested by
unmarshalling the objects and comparing the result in Haskell. A new
function `equals` which performs this test has been added to the
`pandoc.utils` module.
Closes : #5092
2018-11-19 21:46:20 +01:00
John MacFarlane
e80bcb9bea
Asciidoc template: add :lang: to title header is lang is set in metadata.
...
Closes #5088 .
2018-11-19 12:02:25 -08:00
OvidiusCicero
6beb1fc28d
LaTeX template: add variable romanfont ( #4665 )
...
This opens up the possibility of setting the romanfont in xelatex/lualatex.
Note that mainfont actually oversets sansfont in headings
2018-11-03 12:41:47 -07:00
John MacFarlane
2f65263851
AsciiDoc writer: use single-line section headers.
...
The underline style is now deprecated.
Previously `--atx-headers` would enable the single-line
style; now the single-line style is always used.
Closes #5038 .
2018-11-03 12:03:05 -07:00
Nick Fleisher
19e0fcb68b
Add viz. to abbreviations file ( #5007 )
2018-10-22 18:45:46 -07:00
Yoan Blanc
9608fd0c4a
revealjs: typo in the socket.io javascript plugin ( #5006 )
2018-10-22 10:40:49 -07:00
Albert Krewinkel
916db81ade
Lua filters: iterate over AST element fields when using pairs
...
This makes it possible to iterate over all field names of an AST element
by using a generic `for` loop with `pairs`:
for field_name, field_content in pairs(element) do
…
end
Raw table fields of AST elements should be considered an implementation
detail and might change in the future. Accessing element properties
should always happen through the fields listed in the Lua filter docs.
Note that the iterator currently excludes the `t`/`tag` field.
2018-10-20 19:14:17 +02:00
Albert Krewinkel
8a00b30e40
Lua pandoc module: ensure MetaList elements behave like Lists
...
Methods usable on Lists can also be used on MetaList objects.
2018-10-15 21:08:39 +02:00
Albert Krewinkel
a444321be8
Lua pandoc module: fix MetaList constructor
...
Passing a MetaList object to the constructor `pandoc.MetaList` now
returns the passed list as a MetaList. This is consistent with the
constructor behavior when passed an (untagged) list.
Previously, the constructor used to create a new MetaList with the
passed MetaList as its only element.
2018-10-15 21:00:50 +02:00
Albert Krewinkel
6082caf233
Custom writer: provide PANDOC_DOCUMENT instead of Setup function
...
Custom writers have access to the global variable `PANDOC_DOCUMENT`. The
variable contains a userdata wrapper around the full pandoc AST and
exposes two fields, `meta` and `blocks`. The field content is only
marshaled on-demand, performance of scripts not accessing the fields
remains unaffected.
2018-10-14 21:23:41 +02:00
Albert Krewinkel
49544069a2
Custom writer: give full access to doc in optional Setup function ( #4967 )
...
Custom writers can specify an optional `Setup` function. The function
takes the full Pandoc document as input and should not return any value.
Users can use this function to configure the writer depending on the
given document's content or its metadata.
data/sample.lua: add sample use of Setup function.
The change allows to control the image format used to encode the image
produced from dot code.
Closes #4957
2018-10-13 23:20:29 -07:00
Albert Krewinkel
273d4dfcfa
data/sample.lua: replace custom pipe function with pandoc.utils.pipe
2018-10-13 20:54:47 +02:00
Albert Krewinkel
5f6f2c69f5
data/pandoc.lua: add datatype ListAttributes
...
Make ListAttributes a datatype. The type is similar to Attr.
2018-10-11 22:28:24 +02:00
John MacFarlane
30033f417f
Docx writer: added framework for custom properties.
...
So far, we don't actually write any custom properties,
but we have the infrastructure to add this.
See #3034 .
2018-10-09 10:38:50 -07:00
Albert Krewinkel
05efa5a0e6
Lua filter doc: fix description of Code.text
2018-10-06 21:48:24 +02:00
Mathias Walter
537d917988
LaTeX template: add variable hyperrefoptions( #4925 )
...
Introduce a new variable `hyperrefoptions` to pass to the hyperref package.
This allows us (for example) to specify `hyperrefoptions: linktoc=all` in a YAML block.
2018-10-04 12:22:22 -07:00
Ivan Trubach
9f4406023f
Translations/ru
...
I suppose that you copy-pasted the Russian translations from babel[1] package. Actually, it has two versions — `captionsrussian@ancient` and `captionsrussian@modern`, the former contains translations for the pre-revolution (1918) orthography.
[1]: http://ctan.math.utah.edu/ctan/tex-archive/macros/latex/contrib/babel-contrib/russian/russianb.ldf
2018-09-22 22:21:56 +03:00
J. B. Rainsberger
7b52d43877
Make HTML5 header easier to style precisely in default template ( #4767 )
...
Add the `title-block-header` identifier to the `header` element, to make it easier to style precisely.
2018-09-10 09:15:11 -07:00
José de Mattos Neto
70d0ae135e
Remove unnecessary indenting of TOC title ( #4869 )
...
Fixes #4798
2018-09-04 09:48:39 -07:00
John MacFarlane
7318bc91ce
EPUB writer: set epub:type on body element intelligently.
...
epub:type of first section epub:type of body
-------------------------- ------------------
prologue frontmatter
abstract frontmatter
acknowledgments frontmatter
copyright-page frontmatter
dedication frontmatter
foreword frontmatter
halftitle, frontmatter
introduction frontmatter
preface frontmatter
seriespage frontmatter
titlepage frontmatter
afterword backmatter
appendix backmatter
colophon backmatter
conclusion backmatter
epigraph backmatter
Otherwise body will have epub:type 'bodymatter'.
This only affects epub3.
See http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
Closes #4823 .
2018-08-28 12:35:28 -07:00
Wandmalfarbe
dac85d683f
Add support for $toc-title$ to LaTeX (and PDF). ( #4853 )
2018-08-25 09:55:17 -07:00
John MacFarlane
2bc352f305
TEI template: improve publicationStmt.
...
Add support for publisher, address, pubPlace, and date variables.
2018-08-16 21:19:03 -07:00
John MacFarlane
0910e92187
TEI improvements.
...
- Ensure that title element is always present, even if empty.
- Put author tags in the template, rather than adding them in
the writer.
Closes #4839 .
2018-08-16 21:06:49 -07:00
John MacFarlane
fe312b0a7a
LaTeX writer/template: be sensitive to filecolor
variable.
...
`linkcolor` only affects internal links, and `urlcolor` only
affects linked URLs. For external links, the option to use is
`filecolor`.
Closes #4822 .
2018-08-16 20:48:51 -07:00
Cyril Roelandt
2ae8272754
Support "toc-title" in the beamer template. ( #4835 )
...
It is a bit awkward to have a title for every frame, but not for the one
that holds the table of contents. Allow users to specify a title if they
wish.
2018-08-15 09:58:17 -07:00
Francesco Occhipinti
2661658a69
RST writer: use titleblock
instead of title
variable for title block
...
Closes #4803
After this commit use `$titleblock$` in order to get what was contained
in `$title$` before, that is a title and subtitle rendered according to
the official rST method:
http://docutils.sourceforge.net/docs/user/rst/quickstart.html#document-title-subtitle . from
With this commit, the `$title$` and `$subtitle$` metadata are available and they
simply carry the metadata values. This opens up more possibilities in templates.
2018-08-01 12:32:16 -07:00
John MacFarlane
748aa920f6
Moved some beamer code in default.latex template.
...
This change allows beamer themes to change the
template and font (as Metropolis does).
Closes #4450 .
2018-07-21 22:05:21 -07:00
Igor Khorlo
3efcf2c95a
Add missing rollingLinks option to revealjs template ( #4778 )
...
Fix (add) the missing option 'rollingLinks' in reveal.js template.
2018-07-18 19:26:16 -07:00
lux-lth
e56a1a3088
Translations/fr ( #4766 )
...
* Edited FR translation, Cc (Carbon Copy) translates to 'Copie carbone' : Cc
* Edited FR translation, 'Chapter' translates 'Chapitre' (typo)
* Edited FR translation, 'Figure' translates to 'Figure'
* Edited FR translation, 'Glossary' translates to 'Glossaire'
* Edited FR translation, 'to' translates to 'à'
* Edited FR translation, first letter to uppercase
* Edited FR translation, 'Table' translates to 'Tableau'
2018-07-12 19:31:38 +02:00
Alexander Krotov
ebf4ed8944
Texinfo writer: use @sup and @sub instead of custom macros
...
Fixes #4728
2018-06-25 03:14:04 +03:00
John MacFarlane
4173460689
reveal.js writer and template: reuse mathjax URL...
...
...provided by the argument to `--mathjax` or the normal
pandoc default, rather than a hard-coded one in the template.
Closes #4701 .
2018-06-12 09:35:27 -07:00
Felix Yan
9b3d14b6ef
pandoc.lua: fix a typo ( #4692 )
2018-06-08 15:15:36 -07:00
John MacFarlane
6ea706256d
Support --number-sections in RST output...
...
via the "section-numbering" directive in standalone output.
2018-06-02 21:37:15 -07:00
Pablo Rodríguez
d5f085535e
new Greek fallback typeface (would fix #4405 ) ( #4605 )
...
CMU Serif would give better typographic results
than the current Greek fallback DejaVu Serif.
2018-05-01 21:22:56 -07:00
OvidiusCicero
5ced96c0cc
Make template polyglot ( #4606 )
...
This line: `<link rel="stylesheet" href="$css$">` is not valid XML.
Making it self-closing makes the template polyglot.
2018-05-01 11:29:04 -07:00
John Muccigrosso
00e3c5c8c1
Add background-image variable to default.latex ( #4601 )
...
New variable with same name as comparable variable in (proposed) reveal.js template, so that background images can indicated for both presentation formats with one variable.
2018-04-26 11:33:20 -07:00
John Muccigrosso
91877692f3
Adding background-image variable to reveal.js template ( #4600 )
2018-04-26 11:32:48 -07:00
John MacFarlane
d0940c6e00
Ms template: Fix date.
...
Previously .ND was used, but this only works if you
have a title page, which we don't. Thanks to @teoric.
2018-04-25 17:49:01 -07:00