Git Product home page Git Product logo

Comments (16)

ismayc avatar ismayc commented on August 10, 2024

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.

GregForkutza avatar GregForkutza commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

Thanks. I'll try to see what's up.

from thesisdown.

ismayc avatar ismayc commented on August 10, 2024

Can you clarify what you mean by "clone the repo"? It seems like LaTeX isn't synced up appropriately.

from thesisdown.

GregForkutza avatar GregForkutza commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

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.

GregForkutza avatar GregForkutza commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

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.

GregForkutza avatar GregForkutza commented on August 10, 2024

That example worked fine. No Issues. Would you possibly share your sessioninfo? Maybe there is something I am missing?

from thesisdown.

ismayc avatar ismayc commented on August 10, 2024

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.

GregForkutza avatar GregForkutza commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

Strange! Best of luck. LaTeX can be pretty unruly at times.

from thesisdown.

GregForkutza avatar GregForkutza commented on August 10, 2024

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.

ismayc avatar ismayc commented on August 10, 2024

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.

andreifoldes avatar andreifoldes commented on August 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.