From f1a14aebedceddece373dde4fb9ee1a542f1d970 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 6 Oct 2024 20:34:40 -0300 Subject: Fix: NULL at the end of the PDF TOC --- structure/book/en/00-preamble.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'structure') diff --git a/structure/book/en/00-preamble.md b/structure/book/en/00-preamble.md index 8746e47..4c15c09 100644 --- a/structure/book/en/00-preamble.md +++ b/structure/book/en/00-preamble.md @@ -59,5 +59,8 @@ if (knitr::is_html_output()) { ```{r echo=FALSE, results='asis'} if (knitr::is_latex_output()) { # Your code here + # By default, it outputs nothing. + # An empty code block would return the string 'NULL' to LaTeX, which would then be printed. + cat('') } ``` -- cgit v1.2.3