Re: [R-SIG-Mac] Knitting an Rmarkdown file fails for pdf
Thanks, Peter. Duncan also suggested the age of my LaTeX installation might be the issue. Antony > On 5 May 2024, at 17:52, peter dalgaard wrote: > > Hi Antony, > > The absence of \NewDocumentCommand could suggest that your LaTeX installation > is too old. Some kind of path messup might also do it, I suppose. > > - Peter > >> On 5 May 2024, at 16:27 , Antony Unwin wrote: >> >> I have recently updated my Mac to R 4.4.0 and the latest version of RStudio. >> This may or may not be the reason that any Rmd files of mine with citations >> fail with the following error on knitting to pdf: >> >> ! Undefined control sequence. >> l.98 \NewDocumentCommand >> \citeproctext{}{} >> >> Error: LaTeX failed to compile citeTest.tex. >> >> Knitting to html or to word work fine. Knitting to pdf without citations >> works as well. Does anyone have a solution? >> >> As a test file I have used the sample Rmd file from Posit with one citation >> added. >> >> Thanks for any help >> >> Antony >> >> >> Professor (em.) Antony Unwin >> Mathematics Institute, >> University of Augsburg, >> 86135 Augsburg, Germany >> >> >> >> >> [[alternative HTML version deleted]] >> >> ___ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac > > -- > Peter Dalgaard, Professor, > Center for Statistics, Copenhagen Business School > Solbjerg Plads 3, 2000 Frederiksberg, Denmark > Phone: (+45)38153501 > Office: A 4.23 > Email: pd@cbs.dk Priv: pda...@gmail.com > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Knitting an Rmarkdown file fails for pdf
Thanks, Duncan, that solves that problem (and quickly!). Antony > On 5 May 2024, at 18:33, Duncan Murdoch wrote: > > TeX Live 2015 is pretty old. Maybe an update would fix things. The R > "tinytex" package installs a small version of TeX Live; it may be the easiest > way to update. > > Duncan > > On 05/05/2024 11:25 a.m., Antony Unwin wrote: >> The first line of my log file is: >> This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded >> format=pdflatex 2015.10.28) >>> On 5 May 2024, at 16:38, Duncan Murdoch wrote: >>> >>> On 05/05/2024 10:27 a.m., Antony Unwin wrote: I have recently updated my Mac to R 4.4.0 and the latest version of RStudio. This may or may not be the reason that any Rmd files of mine with citations fail with the following error on knitting to pdf: ! Undefined control sequence. l.98 \NewDocumentCommand \citeproctext{}{} Error: LaTeX failed to compile citeTest.tex. Knitting to html or to word work fine. Knitting to pdf without citations works as well. Does anyone have a solution? As a test file I have used the sample Rmd file from Posit with one citation added. Thanks for any help Antony >>> >>> Can you tell which version of LaTeX it is using? >>> >>> Duncan Murdoch >>> > ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
Re: [R-SIG-Mac] Knitting an Rmarkdown file fails for pdf
Hi Antony, The absence of \NewDocumentCommand could suggest that your LaTeX installation is too old. Some kind of path messup might also do it, I suppose. - Peter > On 5 May 2024, at 16:27 , Antony Unwin wrote: > > I have recently updated my Mac to R 4.4.0 and the latest version of RStudio. > This may or may not be the reason that any Rmd files of mine with citations > fail with the following error on knitting to pdf: > > ! Undefined control sequence. > l.98 \NewDocumentCommand >\citeproctext{}{} > > Error: LaTeX failed to compile citeTest.tex. > > Knitting to html or to word work fine. Knitting to pdf without citations > works as well. Does anyone have a solution? > > As a test file I have used the sample Rmd file from Posit with one citation > added. > > Thanks for any help > > Antony > > > Professor (em.) Antony Unwin > Mathematics Institute, > University of Augsburg, > 86135 Augsburg, Germany > > > > > [[alternative HTML version deleted]] > > ___ > R-SIG-Mac mailing list > R-SIG-Mac@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-mac -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[R-SIG-Mac] Knitting an Rmarkdown file fails for pdf
I have recently updated my Mac to R 4.4.0 and the latest version of RStudio. This may or may not be the reason that any Rmd files of mine with citations fail with the following error on knitting to pdf: ! Undefined control sequence. l.98 \NewDocumentCommand \citeproctext{}{} Error: LaTeX failed to compile citeTest.tex. Knitting to html or to word work fine. Knitting to pdf without citations works as well. Does anyone have a solution? As a test file I have used the sample Rmd file from Posit with one citation added. Thanks for any help Antony Professor (em.) Antony Unwin Mathematics Institute, University of Augsburg, 86135 Augsburg, Germany [[alternative HTML version deleted]] ___ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac