git.iko.soy/typeable/pandoc
on master help sign in
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.

commitc4e198c84d3c3ff499893962f37a5b5ea8462626 authorDenis Maier <maier.de@gmail.com> dateSun 17 Nov 2019, 02:06 (7 years ago) parent5bd6d96
1 file changed+16
data/templates/default.context+16
data/templates/default.context+16
@@ -105,6 +105,22 @@ $endif$
105105\setupxtable[body][]
106106\setupxtable[foot][bottomframe=on]
107107
108+$if(csl-refs)$
109+\newdimen\cslhangindent
110+\cslhangindent=1.5em
111+\definestartstop [cslreferences] [
112+ $if(csl-hanging-indent)$
113+ before={%
114+ \setupnarrower[left=\cslhangindent]
115+ \startnarrower[left]%
116+ \setupindenting[-\leftskip,yes,first]%
117+ %\setuphead[chapter,section][indentnext=yes]%
118+ \indentation%
119+ },
120+ after=\stopnarrower,
121+ $endif$
122+]
123+$endif$
108124$if(includesource)$
109125$for(sourcefile)$
110126\attachment[file=$curdir$/$sourcefile$,method=hidden]