bibtex: Update pandoc latex template
Enables template to work with the new version (2.11) of pandoc.
This commit is contained in:
parent
a0bb818643
commit
3ee9c95374
1 changed files with 19 additions and 5 deletions
|
@ -397,10 +397,25 @@ $endif$
|
||||||
$if(csl-refs)$
|
$if(csl-refs)$
|
||||||
\newlength{\cslhangindent}
|
\newlength{\cslhangindent}
|
||||||
\setlength{\cslhangindent}{1.5em}
|
\setlength{\cslhangindent}{1.5em}
|
||||||
\newenvironment{cslreferences}%
|
\newlength{\csllabelwidth}
|
||||||
{$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
|
\setlength{\csllabelwidth}{3em}
|
||||||
\everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
|
\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry sp
|
||||||
{\par}
|
{% don't indent paragraphs
|
||||||
|
\setlength{\parindent}{0pt}
|
||||||
|
% turn on hanging indent if param 1 is 1
|
||||||
|
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
|
||||||
|
% set line spacing
|
||||||
|
% set entry spacing
|
||||||
|
\ifnum #2 > 0
|
||||||
|
\setlength{\parskip}{#3\baselineskip}
|
||||||
|
\fi
|
||||||
|
}%
|
||||||
|
{}
|
||||||
|
\usepackage{calc} % for \widthof, \maxof
|
||||||
|
\newcommand{\CSLBlock}[1]{#1\hfill\break}
|
||||||
|
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\maxof{\widthof{#1}}{\csllabelwidth}}{#1}}
|
||||||
|
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth}{#1}}
|
||||||
|
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
$if(title)$
|
$if(title)$
|
||||||
|
@ -562,4 +577,3 @@ $include-after$
|
||||||
|
|
||||||
$endfor$
|
$endfor$
|
||||||
\end{document}
|
\end{document}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue