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.
This commit is contained in:
Denis Maier 2019-11-17 02:06:26 +01:00 committed by John MacFarlane
parent 5bd6d966f4
commit c4e198c84d

View file

@ -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]