aboutsummaryrefslogtreecommitdiff
path: root/data/templates
AgeCommit message (Collapse)AuthorFilesLines
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`
2017-05-09LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman1-9/+9
* LaTeX: Load `parskip` before `hyperref`. According to `hyperref` package's `README.pdf`, page 22, `hyperref` package should be loaded after `parskip` package. * Adjust tests for previous change.
2017-05-08Fix links inside captions in LaTeX output with links-as-notes.Václav Haisman1-1/+1
Declare our redefined `\href` robust. Fixes #3651. (#3652)
2017-05-06ConTeXt template: improved font handling.John MacFarlane1-14/+11
simplefonts is now obsolete in ConTeXt. This patch comes from Pablo Rodríguez via jgm/pandoc-templates#247.
2017-04-29LaTeX writer: Fix problem with escaping in lstinline.John MacFarlane2-0/+2
Previously the LaTeX writer created invalid LaTeX when `--listings` was specified and a code span occured inside emphasis or another construction. This is because the characters `%{}\` must be escaped in lstinline when the listinline occurs in another command, otherwise they must not be escaped. To deal with this, adoping Michael Kofler's suggestion, we always wrap lstinline in a dummy command `\passthrough`, now defined in the default template if `--listings` is specified. This way we can consistently escape the special characters. Closes #1629.
2017-04-25HTML line block: Use class instead of style attribute.John MacFarlane8-0/+8
We now issue `<div class="line-block">` and include a default definition for `line-block` in the default templates, instead of hard-coding a `style` on the div. Closes #1623.
2017-04-04Ms writer improvements:John MacFarlane1-4/+4
- added some variables to the default template. - cleaner output for images (stringify alt text).
2017-04-04Small fixes to ms template.John MacFarlane1-6/+6
2017-04-01Ms writer: added syntax highlighting.John MacFarlane1-0/+4
Closes #3547. Macro definitions are inserted in the template when there is highlighted code. Limitations: background colors and underline currently not supported.
2017-03-31JATS template: always include `<back>` element even if empty.John MacFarlane1-2/+2
2017-03-31JATS writer: put references in `<back>`.John MacFarlane1-0/+7
Modified template to include a `<back>` and `<body>` section. This should give authors more flexibility, e.g. to put acknowledgements metadata in `<back>`. References are automatically extracted and put into `<back>`.
2017-03-30jats template: added xml-stylesheet variable.John MacFarlane1-0/+3
2017-03-28Added default.jats template.John MacFarlane1-0/+193
This is copied from Martin Fenner's pandoc-jats project: https://github.com/mfenner/pandoc-jats
2017-03-26default.ms template: move header-includes and .1C up.John MacFarlane1-5/+5
2017-03-26Ms writer: Hyperlink table of contents and other improvements.John MacFarlane1-1/+11
2017-03-26Ms writer: Use @ instead of | for inline math delimiter.John MacFarlane1-1/+1
The `|` delimiter had a bad interaction with tbl. See discussion in #1839.
2017-03-26Ms writer: Support external links.John MacFarlane1-0/+4
Also add config options for link color.
2017-03-25Ms writer: Implement header identifiers and internal links.John MacFarlane1-1/+0
2017-03-25Ms writer: use light gray for strikeout.John MacFarlane1-0/+2
Pending groff definitions for striking out an arbitrary section of text (not just a few words).
2017-03-25Ms writer: improved pdf metadata.John MacFarlane1-1/+2
2017-03-25ms template: beginnings of support for PDF metadata.John MacFarlane1-0/+4
This will have to be refined along the lines of what is now done in the latex writer/template. For help, see http://pipeline.lbl.gov/code/3rd_party/licenses.win/groff/1.19.2/pdf/pdfmark.pdf
2017-03-25Ms template: don't include www macros.John MacFarlane1-1/+0
2017-03-24Ms writer: Use indented paragraphs after first in section.John MacFarlane1-1/+1
Note that the current indentation setting is 0; see the settings in the template.
2017-03-24default.ms: Add settings for document variables like width.John MacFarlane1-2/+29
2017-03-24Use www.tmac in default.ms.John MacFarlane1-0/+1
This will allow us to use link macros, etc.
2017-03-24Ms writer: support --toc, date, abstract.John MacFarlane1-0/+12
2017-03-24Ms writer: Use custom .HRULE macro for horizontal rule.John MacFarlane1-10/+14
2017-03-23Ms writer: Super/subscript support.John MacFarlane1-0/+10
Also added some macro definitions to default template to support subscripts + better superscripts.
2017-03-23Initial addition of groff ms writer.John MacFarlane1-0/+31
* New module: Text.Pandoc.Writers.Ms. * New template: default.ms. * The writer uses texmath's new eqn writer to convert math to eqn format, so a ms file produced with this writer should be processed with `groff -ms -e` if it contains math.
2017-03-10Add Muse writer (#3489)Alexander Krotov1-0/+44
* Add Muse writer * Advertise new Muse writer * Muse writer: add regressions tests