pandoc/data/templates
John MacFarlane e0984a43a9 Add built-in citation support using new citeproc library.
This deprecates the use of the external pandoc-citeproc
filter; citation processing is now built in to pandoc.

* Add dependency on citeproc library.
* Add Text.Pandoc.Citeproc module (and some associated unexported
  modules under Text.Pandoc.Citeproc).  Exports `processCitations`.
  [API change]
* Add data files needed for Text.Pandoc.Citeproc:  default.csl
  in the data directory, and a citeproc directory that is just
  used at compile-time.  Note that we've added file-embed as a mandatory
  rather than a conditional depedency, because of the biblatex
  localization files. We might eventually want to use readDataFile
  for this, but it would take some code reorganization.
* Text.Pandoc.Loging: Add `CiteprocWarning` to `LogMessage` and use it
  in `processCitations`. [API change]
* Add tests from the pandoc-citeproc package as command tests (including
  some tests pandoc-citeproc did not pass).
* Remove instructions for building pandoc-citeproc from CI and
  release binary build instructions.  We will no longer distribute
  pandoc-citeproc.
* Markdown reader: tweak abbreviation support.  Don't insert a
  nonbreaking space after a potential abbreviation if it comes right before
  a note or citation.  This messes up several things, including citeproc's
  moving of note citations.
* Add `csljson` as and input and output format. This allows pandoc
  to convert between `csljson` and other bibliography formats,
  and to generate formatted versions of CSL JSON bibliographies.
* Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`. [API
  change]
* Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`. [API
  change]
* Added `bibtex`, `biblatex` as input formats.  This allows pandoc
  to convert between BibLaTeX and BibTeX and other bibliography formats,
  and to generated formatted versions of BibTeX/BibLaTeX bibliographies.
* Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
  `readBibLaTeX`. [API change]
* Make "standalone" implicit if output format is a bibliography format.
  This is needed because pandoc readers for bibliography formats put
  the bibliographic information in the `references` field of metadata;
  and unless standalone is specified, metadata gets ignored.
  (TODO: This needs improvement. We should trigger standalone for the
  reader when the input format is bibliographic, and for the writer
  when the output format is markdown.)
* Carry over `citationNoteNum` to `citationNoteNumber`.  This was just
  ignored in pandoc-citeproc.
* Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
  [API change] This runs the processCitations transformation.
  We need to treat it like a filter so it can be placed
  in the sequence of filter runs (after some, before others).
  In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
  so this special filter may be specified either way in a defaults file
  (or by `citeproc: true`, though this gives no control of positioning
  relative to other filters).  TODO: we need to add something to the
  manual section on defaults files for this.
* Add deprecation warning if `upandoc-citeproc` filter is used.
* Add `--citeproc/-C` option to trigger citation processing.
  This behaves like a filter and will be positioned
  relative to filters as they appear on the command line.
* Rewrote the manual on citatations, adding a dedicated Citations
  section which also includes some information formerly found in
  the pandoc-citeproc man page.
* Look for CSL styles in the `csl` subdirectory of the pandoc user data
  directory.  This changes the old pandoc-citeproc behavior, which looked
  in `~/.csl`.  Users can simply symlink `~/.csl` to the `csl`
  subdirectory of their pandoc user data directory if they want
  the old behavior.
* Add support for CSL bibliography entry formatting to LaTeX, HTML,
  Ms writers.  Added CSL-related CSS to styles.html.
2020-09-21 10:15:50 -07:00
..
.github Added issue and PR template for data/templates. 2017-02-27 11:01:12 +01:00
article.jats_publishing Introduce new format variants for JATS (#6067) 2020-02-12 20:36:02 -08:00
default.asciidoc Asciidoc template: add :lang: to title header is lang is set in metadata. 2018-11-19 12:02:25 -08:00
default.asciidoctor Asciidoctor writer sets the stem attribute if it contains latexmath 2019-02-09 08:21:53 -08:00
default.commonmark Use table-of-contents for contents of toc, make toc a boolean. 2017-06-26 16:20:09 +02:00
default.context ConTeXt template: Adjustments to title formatting (#5949) 2019-12-11 08:28:11 -08:00
default.docbook4 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
default.docbook5 Use new doctemplates, doclayout. 2019-08-25 14:24:31 -07:00
default.dokuwiki Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.dzslides Add partial styles.html in HTML5 template. 2019-09-05 12:39:50 -07:00
default.epub2 EPUB writer: Use svg tag wrapper for cover image. 2019-07-13 15:20:14 -07:00
default.epub3 EPUB writer: Use svg tag wrapper for cover image. 2019-07-13 15:20:14 -07:00
default.haddock Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.html4 Add support for $toc-title$ to HTML (4 and 5) (#5930) 2019-11-23 17:13:23 -08:00
default.html5 Add support for $toc-title$ to HTML (4 and 5) (#5930) 2019-11-23 17:13:23 -08:00
default.icml Minor template & test changes for latest dev doctemplates. 2019-10-14 23:42:29 -07:00
default.jats_archiving Introduce new format variants for JATS (#6067) 2020-02-12 20:36:02 -08:00
default.jats_articleauthoring Introduce new format variants for JATS (#6067) 2020-02-12 20:36:02 -08:00
default.jats_publishing Introduce new format variants for JATS (#6067) 2020-02-12 20:36:02 -08:00
default.jira Add jira writer (#5548) 2019-06-05 17:52:23 -04:00
default.latex Add built-in citation support using new citeproc library. 2020-09-21 10:15:50 -07:00
default.man Update man template to avoid bad wraps. 2019-11-24 09:55:04 -08:00
default.markdown Use table-of-contents for contents of toc, make toc a boolean. 2017-06-26 16:20:09 +02:00
default.mediawiki Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.ms Ms template: Use Palatino for default font. 2019-11-16 19:32:59 -08:00
default.muse Update muse template to handle multiple authors better. 2019-07-28 19:25:44 -07:00
default.opendocument Add abstract and subtitle to opendocument template. 2020-05-16 14:40:15 -07:00
default.opml Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.org Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.plain Use table-of-contents for contents of toc, make toc a boolean. 2017-06-26 16:20:09 +02:00
default.revealjs update template for reveal.js 4.0.0 (#6390) 2020-05-21 14:30:12 -07:00
default.rst RST writer: use titleblock instead of title variable for title block 2018-08-01 12:32:16 -07:00
default.rtf Use table-of-contents for contents of toc, make toc a boolean. 2017-06-26 16:20:09 +02:00
default.s5 Add partial styles.html in HTML5 template. 2019-09-05 12:39:50 -07:00
default.slideous Add partial styles.html in HTML5 template. 2019-09-05 12:39:50 -07:00
default.slidy Add partial styles.html in HTML5 template. 2019-09-05 12:39:50 -07:00
default.tei TEI template: improve publicationStmt. 2018-08-16 21:19:03 -07:00
default.texinfo Texinfo writer: use @sup and @sub instead of custom macros 2018-06-25 03:14:04 +03:00
default.textile Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
default.xwiki Add XWiki Support (#4167) 2019-04-02 17:27:02 -06:00
default.zimwiki Merge commit '9e52ac6bb02afd7b4ed5dad61021a1fa33051203' as 'data/templates' 2017-02-20 20:52:00 +01:00
README.markdown Add missing copyright notices and remove license boilerplate (#5112) 2019-02-04 13:52:31 -08:00
styles.html Add built-in citation support using new citeproc library. 2020-09-21 10:15:50 -07:00

The pandoc-templates repository contains default templates for pandoc.

If you use custom templates, we recommend forking this repository, so that you can integrate changes to the default templates in future pandoc releases.

This repository is a subtree of pandoc; it will be updated each time there is a new pandoc release. However, changes to templates are made first in pandoc; thus, issues and pull requests should be made pandoc's issue tracker rather than here.

All of the templates in this repository are dual licensed, under both the GPL (v2 or higher, same as pandoc) and the BSD 3-clause license (included below).

Copyright (c) 2014--2019, John MacFarlane

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  • Neither the name of John MacFarlane nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.