Skip to content

Make it run for newer version of pandoc #123

Open
@MisterFruits

Description

@MisterFruits

Hi!

I'm having troubles compiling a pdf from your template:
make pdf throws make: *** [pdf] Error 43 with the following error in the log:

 ❯ tail pandoc.pdf.log                                                                                                                                                                               [17:36:10]
  tex2pdf.-57db907ea331bc93/input.log.
Error producing PDF.
! LaTeX Error: Lonely \item--perhaps a missing list environment.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.969 \bibitem[\citeproctext]{ref-Cousteau1963}

After make tex diffing the results with what's in the original git repo it seems that every hypertarget calls are missing and here's the problematic section:

@@ -1021,13 +961,12 @@ Aenean dictum nunc id felis rhoncus aliquam.
 \singlespacing
 \setlength{\parindent}{0in}

-\hypertarget{references}{%
-\chapter*{References}\label{references}}
+\chapter*{References}\label{references}
 \addcontentsline{toc}{chapter}{References}

-\hypertarget{refs}{}
-\begin{CSLReferences}{1}{0}
-\leavevmode\vadjust pre{\hypertarget{ref-Cousteau1963}{}}%
+\phantomsection\label{refs}
+\begin{CSLReferences}{1}{1}
+\bibitem[\citeproctext]{ref-Cousteau1963}
 Cousteau Jacques \& Dugan James, 1963. \emph{{The Living Sea: by
 Jacques-Yves Cousteau}}, London: Hamish Hamilton.

I'm kind a noob with all this latex stuff, maybe you see something ?

Notes: installed pandoc with homebrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions