Skip to content

Commit

Permalink
Slight improvements to hanging indent code in latex template.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Sep 3, 2019
1 parent 513058a commit dc01071
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions data/templates/default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,14 @@ $for(bibliography)$
$endfor$
$endif$
$if(csl-refs)$
\newlength{\cslhangindent} % set up new length
\setlength{\cslhangindent}{$if(csl-hanging-indent)$2em$else$0em$endif$}
$if(csl-hanging-indent)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
$endif$
\newenvironment{cslreferences}%
{\everypar{\setlength{\hangindent}{\cslhangindent}}}%
{\par} % by default, this env does not change anything
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
{\par}
$endif$

$if(title)$
Expand Down

0 comments on commit dc01071

Please sign in to comment.