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

bibliography_entries() propblems on missing "\item" for every publication list (bug) #251

Closed
byronchu77 opened this issue Mar 14, 2024 · 5 comments

Comments

@byronchu77
Copy link

There is a now in the bibliography_entries() function, which is likely due to a missing "\item" for the lists of publications.
I use the template of Hyndman to test this, the error message comes as "! LaTeX Error: Something's wrong--perhaps a missing \item."
When I checked the .tex file, and found the problem lies in these code:

\section{Publications}\label{publications}}

\hypertarget{refs-9ab79af7a94489e94e6182750a67b967}{}
\begin{CSLReferences}{0}{0}
\leavevmode\vadjust pre{\hypertarget{ref-R-vitae}{}}%
\CSLLeftMargin{1. }%
\CSLRightInline{O'Hara-Wild, M., \& Hyndman, R. (2023). \emph{Vitae:
Curriculum vitae for r markdown}.
\url{https://pkg.mitchelloharawild.com/vitae/}}

\leavevmode\vadjust pre{\hypertarget{ref-R-tibble}{}}%
\CSLLeftMargin{2. }%
\CSLRightInline{Müller, K., \& Wickham, H. (2023). \emph{Tibble: Simple
data frames}. \url{https://tibble.tidyverse.org/}}

\end{CSLReferences}

I tried to insert an "\item" in front of each list, and it worked.

\begin{CSLReferences}{0}{0}
    \item \leavevmode\vadjust pre{\hypertarget{ref-R-vitae}{}}%
        \CSLLeftMargin{1. }%
        \CSLRightInline{O'Hara-Wild, M., \& Hyndman, R. (2023). \emph{Vitae: Curriculum vitae for r markdown}. \url{https://pkg.mitchelloharawild.com/vitae/}}
    
    \item \leavevmode\vadjust pre{\hypertarget{ref-R-tibble}{}}%
        \CSLLeftMargin{2. }%
        \CSLRightInline{Müller, K., \& Wickham, H. (2023). \emph{Tibble: Simple data frames}. \url{https://tibble.tidyverse.org/}}
\end{CSLReferences}

I figured it because the function, "bibliography_entries()", needed to be updated since I did not have this problem one month ago. The issue might be due to the recent update in R or latex itself.

Thank you.

@the-tave
Copy link

Thanks for describing this issue! I kept getting an Error saying "! LaTeX Error: Something's wrong--perhaps a missing \item." and I couldn't figure it out. Is there a possible work-around directly in the Rmd file? Or maybe a patch coming up?
Cheers

@plbaldoni
Copy link

I am experiencing the same issue

@jdtonkin
Copy link

Same here

@mitchelloharawild
Copy link
Owner

This is discussed further in #246, I believe it is a pandoc versioning issue. Any fixes which work with all versions of pandoc are welcomed.

@mitchelloharawild
Copy link
Owner

Closing as duplicate of #246

@mitchelloharawild mitchelloharawild closed this as not planned Won't fix, can't repro, duplicate, stale Jun 12, 2024
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

5 participants