christophergandrud/Rep-Res-Book

titling.sty not found

Closed this issue · 1 comments

When I was trying to Notebook compile CarsScatterExample.md:

library(ggplot2)

qplot(cars$dist, cars$speed) + theme_bw()

The output was:

/home/eduardo/.cabal/bin/pandoc +RTS -K512m -RTS CarsScatterExample.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output CarsScatterExample.pdf --template /home/eduardo/R/x86_64-suse-linux-gnu-library/3.2/rmarkdown/rmd/latex/default-1.15.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' 
output file: CarsScatterExample.knit.md

! LaTeX Error: File `titling.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 

l.96 ^^M

pandoc: Error producing PDF
Erro: pandoc document conversion failed with error 43

In my opensuse, we use sudo zypper install "tex(titling.sty)" to install package texlive-titling that contains this file.

After that, it was able to create the pdf:

/home/eduardo/.cabal/bin/pandoc +RTS -K512m -RTS CarsScatterExample.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash-implicit_figures --output CarsScatterExample.pdf --template /home/eduardo/R/x86_64-suse-linux-gnu-library/3.2/rmarkdown/rmd/latex/default-1.15.2.tex --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable 'geometry:margin=1in' 
output file: CarsScatterExample.knit.md


Output created: CarsScatterExample.pdf

Thanks for letting me know about this.