From c4e198c84d3c3ff499893962f37a5b5ea8462626 Mon Sep 17 00:00:00 2001 From: Denis Maier Date: Sun, 17 Nov 2019 02:06:26 +0100 Subject: Update default.context (#5875) Define an start-stop-pair `cslreferences` to allow for hanging indents in the bibliography. Analogous to the cslreferences-environment in the default latex template. See here: https://github.com/jgm/pandoc-citeproc/issues/410 For this to work the context writer must be adapted. --- data/templates/default.context | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'data') diff --git a/data/templates/default.context b/data/templates/default.context index dcd2dde5d..89944c372 100644 --- a/data/templates/default.context +++ b/data/templates/default.context @@ -105,6 +105,22 @@ $endif$ \setupxtable[body][] \setupxtable[foot][bottomframe=on] +$if(csl-refs)$ +\newdimen\cslhangindent +\cslhangindent=1.5em +\definestartstop [cslreferences] [ + $if(csl-hanging-indent)$ + before={% + \setupnarrower[left=\cslhangindent] + \startnarrower[left]% + \setupindenting[-\leftskip,yes,first]% + %\setuphead[chapter,section][indentnext=yes]% + \indentation% + }, + after=\stopnarrower, + $endif$ +] +$endif$ $if(includesource)$ $for(sourcefile)$ \attachment[file=$curdir$/$sourcefile$,method=hidden] -- cgit v1.2.3