aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-01 18:02:17 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-01 18:05:20 -0800
commit02d3c71e7224853ecabaa9ac4cd947ec2ac1e579 (patch)
treeb311c690e48cd067bfdf236e0357ca73d4d5f6e7 /data/templates
parentb239c89a82b66abc55bf7c08e37492938c817c56 (diff)
downloadpandoc-02d3c71e7224853ecabaa9ac4cd947ec2ac1e579.tar.gz
BibTeX writer: use doclayout and doctemplate.
This change allows bibtex/biblatex output to wrap as other formats do, depending on the settings of `--wrap` and `--columns`. It also introduces default templates for bibtex and biblatex, which allow for using the variables `header-include`, `include-before` or `include-after` (or alternatively the command line options `--include-in-header`, `--include-before-body`, `--include-after-body`) to insert content into the generated bibtex/biblatex. This change requires a change in the return type of the unexported `T.P.Citeproc.writeBibTeXString` from `Text` to `Doc Text`. Closes #7068.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.biblatex10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/default.biblatex b/data/templates/default.biblatex
new file mode 100644
index 000000000..6bf2632d8
--- /dev/null
+++ b/data/templates/default.biblatex
@@ -0,0 +1,10 @@
+$for(header-includes)$
+$header-includes$
+$endfor$
+$for(include-before)$
+$include-before$
+$endfor$
+$body$
+$for(include-after)$
+$include-after$
+$endfor$