-
Notifications
You must be signed in to change notification settings - Fork 358
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
LaTeX Error: Lonely \item--perhaps a missing list environment #207
Comments
Hi there. Thanks for flagging. Can you also include your results of running |
sessionInfo() Matrix products: default locale: time zone: America/Toronto attached base packages: other attached packages: loaded via a namespace (and not attached): |
Thanks. I'll try to see what's up. |
Can you clarify what you mean by "clone the repo"? It seems like LaTeX isn't synced up appropriately. |
I misspoke. I did clone a local copy of the repo to try editing source files (for debugging). But what i meant to say was that I first installed thesisdown and then created a new thesisdown project, from which i made no changes and only tried to knit index.Rmd. You mention LaTex isnt synced up? What do you mean by that? If I try to run say Then I get this
|
I’m not seeing I just did a fresh install and I’m not seeing any errors in building the PDF. |
I’m not sure about the error you are getting from tinytex::tlmgr_install("babel-portuges") either. That’s not a necessary package for things to build, but an example of how to add another LaTeX package. |
Thats weird, I just ran I did as you said, and did a fresh install and its the same error. I also had another person, on a linux machine, do a fresh install and try to knit index.Rmd and they also had the exact same error as myself with identical thesis.log file. |
Darn. I’m really not sure since I can’t replicate on my Mac. I guess you could try a bookdown example instead to see if that gives the game kind of error? https://github.com/rstudio/bookdown-demo |
That example worked fine. No Issues. Would you possibly share your |
The only major difference I see on initial look is that I'm using an older version of R on this machine:
|
I used another 2021 M1 macbook and downloaded R, Rstudio and MacTex. Then followed the instructions on the It is possible this is caused by some conflicting LateX configuration on mine. I tried installing MacTex again and it had no effect. The only option I can see it to backup my computer and install everything again from a factory reset. |
Strange! Best of luck. LaTeX can be pretty unruly at times. |
I found the solution here: Zettlr/Zettlr#4879 Specifically i made the following replacement in template.tex I replaced lines 119-147 with
Id be very curious if you can confirm what might have been going on. But the best I can tell is that the |
Unfortunately, I'm not great at debugging LaTeX anymore these days. I'll keep this open to see if the template needs updating when I get a chance. Thanks for finding this! |
Got the same error on Windows. Indeed the solution in #207 (comment) indeed solved it+
|
Hey, Wanting to use biblatex, I went down a little rabbit hole and found a solution that someone might find helpful, so I am sharing it here: My goal was to be able to use citeproc/biblatex interchangeably.
I (read: ChatGPT) then created a lua filter to replace cite_filter.lua:
In the
As a note, to use citeproc from here on, you would need to comment out the lua-filter pandoc argument and set In template.tex, replace the entire
The
where To compile with biber, I created this R script (you may need to change the biber location):
The script retains the I hope this is helpful to anyone, and if you have any suggestions for improvement, I am happy to learn :) EDIT: Overlooked the |
Describe the bug
I am using the cloned repo as is and no changes are made. I try to knit index. Rmd. The pdf does not compile.
I get the following Error:
There is further related behaviour I cannot explain.
If I remove any of the citations using @ from 03-chap3.Rmd
and lines 34-38 from 99-references.Rmd
then the pdf compiles directly from index.Rmd.
However If I leave the above lines in and knit Index.Rmd and then compile the thesis.tex file directly it produces a thesis.pdf file that contains the in text citation and the references list is filled, both correctly formatted. However Figure 3.2 now is missing its content but its caption is present.
Therefore there is some bug related to using in text citations.
Here is the the typical error from any citation from the thesis.log from trying to compile thesis.tex
To Reproduce
Clone the repo as is and knit index.Rmd
Expected behavior
To be able to handle in text citations using the @ref syntax.
Desktop (please complete the following information):
Additional context
Originally I was trying to get this work on the macdown rep for Mcmaster University and had the exact same problem.
The text was updated successfully, but these errors were encountered: