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:
parent
5bd6d966f4
commit
c4e198c84d
1 changed files with 16 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue