-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update .sty files for latest Pandoc citeproc approach #236
Comments
Hit the Blame button on this file: https://github.com/jgm/pandoc-templates/blame/master/default.latex |
res-doc-b not done note sometimes (for French?) have to use bookdown::render_book()
This is all done (except resdoc-b). Note, however, that for some document types I had to change the default rendering back to |
On the server we have Pandoc version:
With this, the English techreport fails for me as it is now using either csasdown/inst/csas-style/tech-report.sty Line 436 in 92f7f64
\usepackage{enumitem}
\newenvironment{CSLReferences}%
{}%
{\par}
% \newlist{CSLReferences}{itemize}{1}
% \setlist[CSLReferences]{label={},
% leftmargin=\cslhangindent,
% itemindent=-1\cslhangindent,
% parsep=\parskip,
% itemsep=\cslentryspacing}
\usepackage{calc} Appears it cannot be a list the way it is now... |
This should now be working with pandoc < 3.1.7 and with pandoc >= 3.1.8. Pandoc 3.1.7 requires its own template, so csasdown checks for it and stops. I check the pandoc version on the fly and uncomment/comment sections of the .sty file as needed. 417f88c |
The latest Pandoc has changed how references are handled by the default 'citeproc' method. Argh!
You can verify this is an issue by trying to build the unit tests. I tried with the tech report.
See https://tex.stackexchange.com/questions/695228/undefined-control-sequence-using-citeproc-to-convert-md-to-pdf-with-a-template
And an example of extra code now needed in the preamble here: jgm/pandoc#9031 (comment)
However, it's more complicated than this for us and I'm out of time to try fixing this right now. So, I'm documenting where I left off. Working on the tech report, here is what I've found:
% \RequirePackage[authoryear]{natbib} % Citations
% \bibpunct{(}{)}{;}{a}{}{,} % Punctuation for citations
Then in reference list, need to stop injecting
CSLReferences
at beginning and end of bibliography. I forget if we're doing that or pandoc was. Replace with biblist?e.g.
\begin{CSLReferences}
becomes\begin{biblist}
@jdunic first flagged this
The text was updated successfully, but these errors were encountered: