aboutsummaryrefslogtreecommitdiff
path: root/data/templates
AgeCommit message (Collapse)AuthorFilesLines
2018-07-21Moved some beamer code in default.latex template.John MacFarlane1-37/+35
This change allows beamer themes to change the template and font (as Metropolis does). Closes #4450.
2018-07-18Add missing rollingLinks option to revealjs template (#4778)Igor Khorlo1-0/+4
Fix (add) the missing option 'rollingLinks' in reveal.js template.
2018-06-25Texinfo writer: use @sup and @sub instead of custom macrosAlexander Krotov1-22/+0
Fixes #4728
2018-06-12reveal.js writer and template: reuse mathjax URL...John MacFarlane1-1/+1
...provided by the argument to `--mathjax` or the normal pandoc default, rather than a hard-coded one in the template. Closes #4701.
2018-06-02Support --number-sections in RST output...John MacFarlane1-0/+4
via the "section-numbering" directive in standalone output.
2018-05-01new Greek fallback typeface (would fix #4405) (#4605)Pablo Rodríguez1-1/+1
CMU Serif would give better typographic results than the current Greek fallback DejaVu Serif.
2018-05-01Make template polyglot (#4606)OvidiusCicero1-1/+1
This line: `<link rel="stylesheet" href="$css$">` is not valid XML. Making it self-closing makes the template polyglot.
2018-04-26Add background-image variable to default.latex (#4601)John Muccigrosso1-0/+5
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-26Adding background-image variable to reveal.js template (#4600)John Muccigrosso1-0/+5
2018-04-25Ms template: Fix date.John MacFarlane1-1/+4
Previously .ND was used, but this only works if you have a title page, which we don't. Thanks to @teoric.
2018-03-30Add -V beameroption variable (#4359)Étienne BERSAC1-0/+4
* LaTeX template: Use `pgfpages` package; this is needed for notes on second screen in beamer * LaTeX template: Add `beameroption` variable in template
2018-03-17ConTeXt template: pdfa variable to generate PDF/A (#4294)Henri Menke1-0/+7
The resulting PDF can be verified using the Apache PDFBox preflight app. ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is a valid PDF/A-1b file ``` Instructions on how to install the ICC profiles on ConTeXt standalone can be found in the wiki: <http://wiki.contextgarden.net/PDFX#ICC_profiles>. If the ICC profiles are not available the log will contain messages like these ``` backend > profiles > profile specification 'sRGB.icc' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > no default profile 'srgb.icc' for colorspace 'rgb' backend > profiles > profile specification 'sRGB IEC61966-2.1' loaded from '/usr/local/texlive/2017/texmf-dist/tex/context/colors/icc/context/colorprofiles.xml' backend > profiles > error, couldn't locate profile 'srgb.icc' backend > profiles > invalid output intent 'sRGB IEC61966-2.1' ``` and the resulting PDF will not be valid PDF/A: ``` $ java -jar preflight-app-2.0.8.jar test.pdf The file test.pdf is not a valid PDF/A-1b file, error(s) : 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "g" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, The operator "G" can't be used without Color Profile on page 1 2.4.3 : Invalid Color space, /DeviceGray default for operator "TJ" can't be used without Color Profile on page 1 ``` However, the PDF will still be generated and the "errors" shown in the log do not break anything.
2018-03-17Provide `bidi` package's option using `\PassOptionsToPackage` (#4357).Václav Haisman1-6/+3
* Provide `bidi` package's option using `\PassOptionsToPackage`. This avoid clash when `polyglossia` loads it first and then it is loaded again for XeLaTeX when `latex-dir-rtl` defined. * Adjust test suite for LaTeX template change.
2018-02-08rst template: remove definition of 'math' role as raw.John MacFarlane1-6/+0
This used to be needed prior to v 0.8 of docutils, but now math support is built-in.
2018-01-19hlint code improvements.John MacFarlane1-1/+1
2018-01-19Merge pull request #4221 from phikal/masterJohn MacFarlane1-0/+4
Ms writer: Added papersize variable
2018-01-15ConTeXt writer: Use xtables instead of Tables (#4223)Henri Menke1-0/+5
- Default to xtables for context output. - Added `ntb` extension (affecting context writer only) to use Natural Tables instead. - Added `Ext_ntb` constructor to `Extension` (API change).
2018-01-05Update copyright notices to include 2018Albert Krewinkel1-1/+1
2018-01-03Ms writer: Added papersize variablePhilip K1-0/+4
2017-12-26HTML writer: Use br elements in line blocks...John MacFarlane9-9/+0
instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block.
2017-12-13Update latex template to work with recent versions of beamer.John MacFarlane1-6/+18
The old template produced numbered sections with some recent versions of beamer. Thanks to Thomas Hodgson.
2017-12-11Added support for LaTeX pagestyle variable (#4135)Thomas Hodgson1-0/+3
* Add pagestyle support * Add pagestyle option to MANUAL.txt * Moved mention of pagestyle to the section on variables
2017-12-04reveal.js template: add title-slide identifier to title slide.John MacFarlane1-1/+1
This allows it to be styled more easily. Closes #4120.
2017-12-03Include default CSS for 'underline' class in HTML-based templates.John MacFarlane9-0/+9
2017-12-01revealjs template: added a necessary escape.John MacFarlane1-1/+1
2017-12-01reveal.js template: include tex2jax configuration.John MacFarlane1-0/+12
This ensures that we don't use $..$ delimiters, which gives bad results when $ is used as a currency sign. This depends on the current dev version of reveal.js.
2017-11-14LaTeX template: include natbib/biblatex after polyglossia.John MacFarlane1-10/+10
Otherwise we seem to get an error; biblatex wants polyglossia language to be defined. Closes #4073.
2017-11-02Improved support for columns in HTML.John MacFarlane9-24/+27
* Move as much as possible to the CSS in the template. * Ensure that all the HTML-based templates (including epub) contain the CSS for columns. * Columns default to 50% width unless they are given a width attribute. Closes #4028.
2017-10-31HTML Writer: consistently use dashed class-namesmb211-1/+1
see #3556
2017-10-03Load Google Font using HTTPS by defaultYoan Blanc1-1/+1
Otherwise they won't show up in current version of firefox/chromium.
2017-09-12Move 'tables in footnotes' fix out of beamer part of default.latex.John MacFarlane1-2/+3
This caused an error in beamer. Footnotes already work in tables in beamer, without this code.
2017-09-08Write euro symbol directly in LaTeXAndrew Dunning1-6/+1
The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
2017-09-08Removed old beamer template.John MacFarlane1-285/+0
We now use the default.latex template for both latex and beamer. It contains conditionals for the beamer-specific things. `pandoc -D beamer` will return this template.
2017-09-08Use starred versions of xcolor namesAndrew Dunning1-1/+1
Prevents changes to documents defined using the dvipsnames list (e.g. `Blue` gives a different result with svgnames enabled).
2017-09-08Merge branch 'master' into patch-1Andrew Dunning1-9/+9
2017-09-07LaTeX template: load polyglossia after header-includes.John MacFarlane1-9/+9
It needs to be loaded as late as possible. Closes #3898.
2017-09-07Use xcolor for colorlinks optionAndrew Dunning1-2/+5
Beamer loads `xcolor` rather than `color`, and thus the `dvipsnames` option doesn't take effect. This also provides a wider range of colour selections with the `svgnames` option. Closes #3877.
2017-08-26Combine LaTeX/Beamer templatesAndrew Dunning1-1/+97
All conditionals use the `beamer` variable set by the writer. Closes #3878.
2017-08-25Allow setting Japanese fonts when using LuaLaTeX (#3873)Václav Haisman1-0/+13
...by using the `luatexja-fontspec` and `luatexja-preset` packages. Use existing `CJKmainfont` and `CJKoptions` template variables. Add `luatexjafontspecoptions` for `luatexja-fontspec` and `luatexjapresetoptions` for `luatexja-preset`.
2017-08-21Small improvement to #3855 - move lang attribute up.John MacFarlane1-4/+4
So we don't have a dangling line with the closing `>` when `lang` is not set.
2017-08-21docbook5 template: use lang and subtitle variables (#3855)Jens Getreu1-1/+7
2017-08-14Implement multicolumn support for slide formats.John MacFarlane7-0/+7
The structure expected is: <div class="columns"> <div class="column" width="40%"> contents... </div> <div class="column" width="60%"> contents... </div> </div> Support has been added for beamer and all HTML slide formats. Closes #1710. Note: later we could add a more elegant way to create this structure in Markdown than to use raw HTML div elements. This would come for free with a "native div syntax" (#168). Or we could devise something specific to slides
2017-08-14Fix hyperref options clash (#3847)Andrew Dunning1-5/+7
Avoids an options clash when loading a package (e.g. `tufte-latex`) that uses `hyperref` settings different from those in the template (introduced in <https://github.com/jgm/pandoc-templates/commit/feffd7c64abab863abd3f6458d1c445d6bfe7fc4>).
2017-06-28LaTeX template: added `natbiboptions` variable.John MacFarlane1-1/+1
Closes #3768.
2017-06-26Support `--toc` in `opendocument`/`odt`.John MacFarlane1-0/+129
2017-06-26Use `table-of-contents` for contents of toc, make `toc` a boolean.John MacFarlane11-11/+11
Changed markdown, rtf, and HTML-based templates accordingly. This allows you to set `toc: true` in the metadata; this previously produced strange results in some output formats. Closes #2872. For backwards compatibility, `toc` is still set to the toc contents. But it is recommended that you update templates to use `table-of-contents` for the toc contents and `toc` for a boolean flag.
2017-06-20latex template: fix typo in fix for notes in tables.John MacFarlane1-1/+1
See https://github.com/jgm/pandoc-templates/commit/1475299c9aebfe3e47c135d6653202db3b2f6696#diff-c7c27b8e99f898fde7715afd9ae8cd02R126 However, this is not a complete fix: https://github.com/jgm/pandoc-templates/pull/208#issuecomment-309631622 Thanks to zeeMonkeez. See #2378.
2017-06-18Use revealjs's math plugin for mathjax.John MacFarlane1-2/+11
This is a thin wrapper around mathjax that makes math look better on revealjs. See https://github.com/hakimel/reveal.js/#mathjax We do this by setting the 'mathjax' boolean variable and using it in the revealjs template. Also, for revealjs and mathjax, we don't assign the usual thing to the 'math' variable, since it's handled by mathjax config. Closes #3743.
2017-06-05Added aspectratio variable to beamer template (#3723).Václav Haisman1-1/+1
* Transplant jgm/pandoc-templates#236 to Pandoc repository. * Document `aspectratio` in user manual. * Enumerate possible values for `aspectratio`.
2017-05-18modified template.latex to fix XeLaTex being used with tables (#3661)lwolfsonkin1-14/+15
- reordered `lang` variable handling to immediately before `bidi`