Comments (16)
Hi there. Thanks for flagging. Can you also include your results of running sessionInfo()
or something similar in R, so I can identify your versions of packages?
from thesisdown.
sessionInfo()
R version 4.3.2 (2023-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Sonoma 14.4.1
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/Toronto
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] remotes_2.5.0
loaded via a namespace (and not attached):
[1] desc_1.4.3 digest_0.6.35 R6_2.5.1
[4] bookdown_0.38.1 thesisdown_0.2.0.9000 fastmap_1.1.1
[7] xfun_0.43 knitr_1.45 htmltools_0.5.8
[10] rmarkdown_2.26 ps_1.7.6 cli_3.6.2
[13] processx_3.8.4 callr_3.7.6 compiler_4.3.2
[16] rprojroot_2.0.4 here_1.0.1 rstudioapi_0.16.0
[19] tools_4.3.2 pkgbuild_1.4.4 curl_5.2.1
[22] evaluate_0.23 yaml_2.3.8 rlang_1.1.3
from thesisdown.
Thanks. I'll try to see what's up.
from thesisdown.
Can you clarify what you mean by "clone the repo"? It seems like LaTeX isn't synced up appropriately.
from thesisdown.
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
tinytex::tlmgr_install("babel-portuges")
Then I get this
tlmgr update --all --self
tlmgr install babel-portuges
tlmgr: Remote database (revision 70801 of the texlive-scripts package)
seems to be older than the local installation (rev 70821 of
texlive-scripts); please use a different mirror and/or wait a day or two.
I don't know if that is relevant or not.
from thesisdown.
I’m not seeing tinytex
listed in your sessionInfo()
output which seems strange and your \item error also is a LaTeX package error I believe. Maybe try to start fresh again at the top of the README for instructions?
I just did a fresh install and I’m not seeing any errors in building the PDF.
from thesisdown.
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.
from thesisdown.
Thats weird, I just ran sessioninfo()
again and am seeing tinytex
.
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.
from thesisdown.
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
from thesisdown.
That example worked fine. No Issues. Would you possibly share your sessioninfo
? Maybe there is something I am missing?
from thesisdown.
The only major difference I see on initial look is that I'm using an older version of R on this machine:
R version 4.2.2 (2022-10-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 14.4.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 bookdown_0.38.1 fastmap_1.1.1
[4] cli_3.6.2 htmltools_0.5.7 tools_4.2.2
[7] rstudioapi_0.15.0 yaml_2.3.8 tinytex_0.50
[10] rmarkdown_2.26 knitr_1.45 xfun_0.42
[13] digest_0.6.34 thesisdown_0.2.0.9000 renv_1.0.5
[16] rlang_1.1.3 evaluate_0.23
from thesisdown.
I used another 2021 M1 macbook and downloaded R, Rstudio and MacTex. Then followed the instructions on the readme
and it worked fine. It has no issue.
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.
from thesisdown.
Strange! Best of luck. LaTeX can be pretty unruly at times.
from thesisdown.
I found the solution here: Zettlr/Zettlr#4879
Specifically i made the following replacement in template.tex
I replaced lines 119-147 with
% definitions for citeproc citations
\NewDocumentCommand\citeproctext{}{}
\NewDocumentCommand\citeproc{mm}{%
\begingroup\def\citeproctext{#2}\cite{#1}\endgroup}
\makeatletter
% allow citations to break across lines
\let\@cite@ofmt\@firstofone
% avoid brackets around text for \cite:
\def\@biblabel#1{}
\def\@cite#1#2{{#1\if@tempswa , #2\fi}}
\makeatother
\newlength{\cslhangindent}
\setlength{\cslhangindent}{1.5em}
\newlength{\csllabelwidth}
\setlength{\csllabelwidth}{3em}
\newenvironment{CSLReferences}[2] % #1 hanging-indent, #2 entry-spacing
{\begin{list}{}{%
\setlength{\itemindent}{0pt}
\setlength{\leftmargin}{0pt}
\setlength{\parsep}{0pt}
% turn on hanging indent if param 1 is 1
\ifodd #1
\setlength{\leftmargin}{\cslhangindent}
\setlength{\itemindent}{-1\cslhangindent}
\fi
% set entry spacing
\setlength{\itemsep}{#2\baselineskip}}}
{\end{list}}
\usepackage{calc}
\newcommand{\CSLBlock}[1]{\hfill\break\parbox[t]{\linewidth}{\strut\ignorespaces#1\strut}}
\newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{\strut#1\strut}}
\newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
$endif$
Id be very curious if you can confirm what might have been going on. But the best I can tell is that the /citeproctext
command was not being "found" and so this fixes it by making those definitions in the template?
from thesisdown.
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!
from thesisdown.
Got the same error on Windows. Indeed the solution in #207 (comment) indeed solved it+
> sessionInfo()
R version 4.4.0 (2024-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8
[2] LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8
[4] LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8
time zone: Europe/London
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods
[7] base
loaded via a namespace (and not attached):
[1] compiler_4.4.0 bookdown_0.39
[3] fastmap_1.1.1 cli_3.6.2
[5] htmltools_0.5.8.1 tools_4.4.0
[7] rstudioapi_0.16.0 yaml_2.3.8
[9] remotes_2.5.0 rmarkdown_2.27
[11] knitr_1.47 xfun_0.45
[13] digest_0.6.35 thesisdown_0.2.0.9000
[15] rlang_1.1.3 evaluate_0.24.0
from thesisdown.
Related Issues (20)
- thesisdown and quarto HOT 3
- Thesis by ... HOT 1
- Problems in getting front matter, TOC and headings right when adapting bookdown/thesisdown to local university LaTeX template
- Unable to use single quotes in abstract.Rmd HOT 2
- apostrophe ’ in the abstract file is rendered as ’ HOT 3
- Failing to knit in times new roman HOT 2
- italics and accented vowels in prelims HOT 1
- Thesis by ... HOT 1
- How to cite? HOT 3
- How do I remove the "Approved for the division page" without running into an error? HOT 1
- Landscape pages HOT 4
- chapter bibliographies using thesisdown? HOT 1
- DOI overstretching in references HOT 8
- Page header: overlap between page and "Chapter X" HOT 3
- dynamic placement of LoF and LoT? HOT 3
- Chapter bibliography rendering incorrectly in HTML for final chapter HOT 3
- speed things up HOT 1
- Is it possible to split the RMD output per each section? HOT 3
- Is it possible to use officedown functionalities within thesisdown? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thesisdown.