Skip to content
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

Make it run for newer version of pandoc #123

Open
MisterFruits opened this issue Jun 26, 2024 · 3 comments
Open

Make it run for newer version of pandoc #123

MisterFruits opened this issue Jun 26, 2024 · 3 comments

Comments

@MisterFruits
Copy link

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

@MisterFruits MisterFruits changed the title CSLReferences not being an item environment throws error 43 for make pdf error 43 for make pdf Jun 26, 2024
@MisterFruits
Copy link
Author

Ok, now seeing closed issues, i'll dig in, sorry for confusion

@tompollard
Copy link
Owner

No problem Victor, it's good to know when people hit issues. The repository isn't really maintained at the moment, so I wouldn't be surprised if there are problems with the build. I'll try to take a look at the repository when I have time to see if I can do some cleaning and updating.

@MisterFruits MisterFruits changed the title error 43 for make pdf Make it run for newer version of pandoc Jun 26, 2024
@MisterFruits
Copy link
Author

As pointed out by #121 and #122 running a a different version from pandoc 3.1.6.2 leads to errors. Maybe keeping an issue open about that would be great so that newcomers are aware of it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants