summaryrefslogtreecommitdiff
path: root/data
Commit message (Collapse)AuthorAge
* Added a few abbreviations and sorted the list. (#3984)Wandmalfarbe2017-11-03
|
* Improved support for columns in HTML.John MacFarlane2017-11-02
| | | | | | | | | | * 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.
* HTML Writer: consistently use dashed class-namesmb212017-10-31
| | | | see #3556
* pandoc.lua: define default list attributesAlbert Krewinkel2017-10-25
| | | | | | 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.
* pandoc.lua: destructure attr for Link and ImageAlbert Krewinkel2017-10-17
| | | | | | 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.
* pandoc.lua: throw better error when pipe command failsAlbert Krewinkel2017-10-05
| | | | | A table containing the error code, command, and command output is thrown instead of just a string error message.
* Merge pull request #3951 from greut/patch-1John MacFarlane2017-10-03
|\ | | | | Load Google Font using HTTPS by default
| * Load Google Font using HTTPS by defaultYoan Blanc2017-10-03
| | | | | | Otherwise they won't show up in current version of firefox/chromium.
* | pandoc.lua: use wrapper funciton for pipe commandAlbert Krewinkel2017-10-03
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Lua.PandocModule: promote addFunction to top levelAlbert Krewinkel2017-10-03
|/ | | | This reduces some boilerplate.
* Move 'tables in footnotes' fix out of beamer part of default.latex.John MacFarlane2017-09-12
| | | | | | This caused an error in beamer. Footnotes already work in tables in beamer, without this code.
* Support for PDF generation via `weasyprint` and `prince` (#3909)Mauro Bieg2017-09-11
| | | | | | | * 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
* Write euro symbol directly in LaTeXAndrew Dunning2017-09-08
| | | | The textcomp package allows pdfLaTeX to parse `€` directly, making the \euro command unneeded. Closes #3801.
* Removed old beamer template.John MacFarlane2017-09-08
| | | | | | | 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.
* Use starred versions of xcolor namesAndrew Dunning2017-09-08
| | | Prevents changes to documents defined using the dvipsnames list (e.g. `Blue` gives a different result with svgnames enabled).
* Merge branch 'master' into patch-1Andrew Dunning2017-09-08
|\
| * LaTeX template: load polyglossia after header-includes.John MacFarlane2017-09-07
| | | | | | | | | | | | It needs to be loaded as late as possible. Closes #3898.
| * Merge pull request #3885 from tarleb/lua-module-docsJohn MacFarlane2017-09-07
| |\ | | | | | | Lua module documentation
| | * data/pandoc.lua: fix typos in documentationAlbert Krewinkel2017-08-31
| | |
* | | Use xcolor for colorlinks optionAndrew Dunning2017-09-07
| | | | | | | | | 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.
* | | Combine LaTeX/Beamer templatesAndrew Dunning2017-08-26
|/ / | | | | | | | | All conditionals use the `beamer` variable set by the writer. Closes #3878.
* / Allow setting Japanese fonts when using LuaLaTeX (#3873)Václav Haisman2017-08-25
|/ | | | | | | ...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`.
* Text.Pandoc.Lua: support Inline and Block catch-allsAlbert Krewinkel2017-08-22
| | | | | | | Try function `Inline`/`Block` if no other filter function of the respective type matches an element. Closes: #3859
* Small improvement to #3855 - move lang attribute up.John MacFarlane2017-08-21
| | | | | So we don't have a dangling line with the closing `>` when `lang` is not set.
* docbook5 template: use lang and subtitle variables (#3855)Jens Getreu2017-08-21
|
* data/pandoc.lua: fix documentationAlbert Krewinkel2017-08-21
| | | | Multiple documentation mistakes were fixed.
* data/pandoc.lua: Include Pandoc, Meta in implicit filtersAlbert Krewinkel2017-08-21
| | | | | | 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.
* Implement multicolumn support for slide formats.John MacFarlane2017-08-14
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix hyperref options clash (#3847)Andrew Dunning2017-08-14
| | | 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>).
* Added Listing to Term.John MacFarlane2017-08-12
| | | | So far only added to English.
* Added new translations.John MacFarlane2017-08-12
|
* Change to yaml for translation files.John MacFarlane2017-08-12
|
* Added de.trans.John MacFarlane2017-08-11
|
* Added support for translations (localization) (see #3559).John MacFarlane2017-08-11
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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`.
* data/pandoc.lua: regularize constructors.John MacFarlane2017-06-29
| | | | | | We now use Pandoc instead of Doc (though Doc remains a deprecated Synonym), and we deprecate DoubleQuoted, SingleQuoted, InlineMath, and DisplayMath.
* LaTeX template: added `natbiboptions` variable.John MacFarlane2017-06-28
| | | | Closes #3768.
* data/pandoc.lua: add accessors to Table elementsAlbert Krewinkel2017-06-27
|
* Removed redundant element from data/docx/word/numbering.xml.John MacFarlane2017-06-27
| | | | | The elements we need are generated when the document is compiled; this didn't do anything.
* Support `--toc` in `opendocument`/`odt`.John MacFarlane2017-06-26
|
* Use `table-of-contents` for contents of toc, make `toc` a boolean.John MacFarlane2017-06-26
| | | | | | | | | | | | | | 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.
* latex template: fix typo in fix for notes in tables.John MacFarlane2017-06-20
| | | | | | | | | 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.
* Added Vimwiki reader (#3705).Yuchen Pei2017-06-19
| | | | | | * 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.
* Use revealjs's math plugin for mathjax.John MacFarlane2017-06-18
| | | | | | | | | | | | | | 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.
* Added aspectratio variable to beamer template (#3723).Václav Haisman2017-06-05
| | | | | | * Transplant jgm/pandoc-templates#236 to Pandoc repository. * Document `aspectratio` in user manual. * Enumerate possible values for `aspectratio`.
* Docx writer: Use Table rather than "Table Normal" for table style.John MacFarlane2017-05-25
| | | | | | "Table Normal" is the default table style and can't be modified. Closes #3275, further testing welcome.
* modified template.latex to fix XeLaTex being used with tables (#3661)lwolfsonkin2017-05-18
| | | - reordered `lang` variable handling to immediately before `bidi`
* Docx writer: Change FigureWithCaption to CaptionedFigure (#3658)Ian2017-05-18
| | | | Edit styles.xml as part of the fix for #3656
* Lua module: allow omitting Attr in element constructorsAlbert Krewinkel2017-05-18
| | | | | | | The Attr argument is made optional for all pandoc element constructors which take such a parameter. The attr param is always the last argument of the constructor functions, so the option to omit them makes it easier to construct new pandoc elements by hand.
* LaTeX: Load `parskip` before `hyperref`. (#3654)Václav Haisman2017-05-09
| | | | | | | | | * 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.
* Fix links inside captions in LaTeX output with links-as-notes.Václav Haisman2017-05-08
| | | | | | Declare our redefined `\href` robust. Fixes #3651. (#3652)