aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2017-11-20data/pandoc.lua: enable table-like behavior of attributes (#4080)Albert Krewinkel1-1/+92
Attribute lists are represented as associative lists in Lua. Pure associative lists are awkward to work with. A metatable is attached to attribute lists, allowing to access and use the associative list as if the attributes were stored in as normal key-value pair in table. Note that this changes the way `pairs` works on attribute lists. Instead of producing integer keys and two-element tables, the resulting iterator function now returns the key and value of those pairs. Use `ipairs` to get the old behavior. Warning: the new iteration mechanism only works if pandoc has been compiled with Lua 5.2 or later (current default: 5.3). The `pandoc.Attr` function is altered to allow passing attributes as key-values in a normal table. This is more convenient than having to construct the associative list which is used internally. Closes #4071
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-11Fixed URIs in jats.csl.John MacFarlane1-4/+1
They were being rendered twice, leading to invalid XML.
2017-11-09Removed etc. from abbreviations file.John MacFarlane1-1/+0
Reason: often etc. ends a sentence, and we want the . to be treated as a sentence-ending period.
2017-11-03Added a few abbreviations and sorted the list. (#3984)Wandmalfarbe1-19/+42
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-namesmb212-2/+2
see #3556
2017-10-25pandoc.lua: define default list attributesAlbert Krewinkel1-1/+2
The second argument of the OrderedList constructor, which should define the list's attributes, is made optional. Default attributes are used if the parameter is omitted.
2017-10-17pandoc.lua: destructure attr for Link and ImageAlbert Krewinkel1-2/+2
Make Attr values accessible through through the keys `identifier`, `classes` and `attributes`. This is already used in other elements with attributes and is now fixed for Link and Image.
2017-10-05pandoc.lua: throw better error when pipe command failsAlbert Krewinkel1-3/+3
A table containing the error code, command, and command output is thrown instead of just a string error message.
2017-10-03Merge pull request #3951 from greut/patch-1John MacFarlane1-1/+1
Load Google Font using HTTPS by default
2017-10-03pandoc.lua: use wrapper funciton for pipe commandAlbert Krewinkel1-0/+23
The pipe command is wrapped in a lua function, throwing a lua error if the command returns with an error. A wrapper is needed as Haskell functions exposed to lua may not throw lua errors due to limitations of hslua. The error handling is written such that a table can be returned as an error object in the future. This is potentially useful when finer control is required while catching the error in lua code. Current limitations of hslua require error objects to be strings.
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-10-03Lua.PandocModule: promote addFunction to top levelAlbert Krewinkel1-1/+1
This reduces some boilerplate.
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-11Support for PDF generation via `weasyprint` and `prince` (#3909)Mauro Bieg1-2/+2
* Rename --latex-engine to --pdf-engine * In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`. * Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906). * `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file
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 Dunning2-11/+11
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-07Merge pull request #3885 from tarleb/lua-module-docsJohn MacFarlane1-2/+2
Lua module documentation
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-31data/pandoc.lua: fix typos in documentationAlbert Krewinkel1-2/+2
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-22Text.Pandoc.Lua: support Inline and Block catch-allsAlbert Krewinkel1-1/+2
Try function `Inline`/`Block` if no other filter function of the respective type matches an element. Closes: #3859
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-21data/pandoc.lua: fix documentationAlbert Krewinkel1-3/+4
Multiple documentation mistakes were fixed.
2017-08-21data/pandoc.lua: Include Pandoc, Meta in implicit filtersAlbert Krewinkel1-1/+6
Functions with a name that corresponds to an AST element are included in implicit pandoc filter, but both `Meta` and `Pandoc` were wrongly ignored till now.
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-08-12Added Listing to Term.John MacFarlane1-0/+1
So far only added to English.
2017-08-12Added new translations.John MacFarlane46-24/+920
2017-08-12Change to yaml for translation files.John MacFarlane3-0/+0
2017-08-11Added de.trans.John MacFarlane1-0/+19
2017-08-11Added support for translations (localization) (see #3559).John MacFarlane2-0/+38
* readDataFile, readDefaultDataFile, getReferenceDocx, getReferenceODT have been removed from Shared and moved into Class. They are now defined in terms of PandocMonad primitives, rather than being primitve methods of the class. * toLang has been moved from BCP47 to Class. * NoTranslation and CouldNotLoudTranslations have been added to LogMessage. * New module, Text.Pandoc.Translations, exporting Term, Translations, readTranslations. * New functions in Class: translateTerm, setTranslations. Note that nothing is loaded from data files until translateTerm is used; setTranslation just sets the language to be used. * Added two translation data files in data/translations. * LaTeX reader: Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia) and `\figurename`.
2017-06-29data/pandoc.lua: regularize constructors.John MacFarlane1-11/+10
We now use Pandoc instead of Doc (though Doc remains a deprecated Synonym), and we deprecate DoubleQuoted, SingleQuoted, InlineMath, and DisplayMath.
2017-06-28LaTeX template: added `natbiboptions` variable.John MacFarlane1-1/+1
Closes #3768.
2017-06-27data/pandoc.lua: add accessors to Table elementsAlbert Krewinkel1-1/+2
2017-06-27Removed redundant element from data/docx/word/numbering.xml.John MacFarlane1-2/+3
The elements we need are generated when the document is compiled; this didn't do anything.
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-19Added Vimwiki reader (#3705).Yuchen Pei1-0/+82
* New module Text.Pandoc.Readers.Vimwiki, exporting readVimwiki [API change]. * New input format `vimwiki`. * New data file, `data/vimwiki.css`, for displaying the HTML produced by this reader and pandoc's HTML writer in the style of vimwiki's own HTML export.
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-25Docx writer: Use Table rather than "Table Normal" for table style.John MacFarlane1-2/+3
"Table Normal" is the default table style and can't be modified. Closes #3275, further testing welcome.
2017-05-18modified template.latex to fix XeLaTex being used with tables (#3661)lwolfsonkin1-14/+15
- reordered `lang` variable handling to immediately before `bidi`