Clean output for a single .tex file
clean_slide.Rd
Uses latexmk -C <slide_file>
, also removing the PDF file.
Uses latexmk -c <slide_file>
to keep the PDF file.
Arguments
- slide_file
[character(1)]
Name of a (single) slide, with or without.tex
extension. See examples offind_slide_tex()
.- keep_pdf
[FALSE]
: Keep the PDF file.- verbose
[TRUE]
: Print additional output to the console.- check_status
[TRUE]
: Wait forlatexmk
to finish and return the exit status. Not supported formethod = "tinytex"
.
Value
Invisibly:
If
check_status
,TRUE
if the exit code is 0,FALSE
otherwise.If
check_status
isFALSE
,NULL
is returned.
Examples
if (FALSE) { # \dontrun{
# Create the PDF
compile_slide("slides-cart-computationalaspects.tex")
# Remove the PDF and other output
clean_slide("slides-cart-computationalaspects.tex")
} # }