Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Compatibility with Pandoc V2.11 #201

Closed
iandol opened this issue Oct 15, 2020 · 2 comments
Closed

Compatibility with Pandoc V2.11 #201

iandol opened this issue Oct 15, 2020 · 2 comments
Labels

Comments

@iandol
Copy link

iandol commented Oct 15, 2020

There are some changes to the default.latex template relating to those using CSL bibliographies with the new Pandoc V2.11, causing some errors with Eisvogel: ! LaTeX Error: \begin{document} ended by \end{CSLReferences} etc.

The new update from default.latex:

$if(csl-refs)$
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newenvironment{CSLReferences}[3] % #1 hanging-ident, #2 entry spacing
 {% 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 entry spacing
  \ifnum #2 > 0
  \setlength{\parskip}{#2\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$
@DavidZhang73
Copy link

Same problem.

@Wandmalfarbe
Copy link
Owner

Wandmalfarbe commented Oct 29, 2020

I merged upstream changes from the default template in commit aaa91f3 so your issue should be solved if you use the template from the master branch.

baldurmen added a commit to baldurmen/eisvogel that referenced this issue Jan 5, 2022
baldurmen added a commit to baldurmen/eisvogel that referenced this issue Jan 16, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants