diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-10-06 20:34:40 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-10-06 20:34:40 -0300 |
commit | f1a14aebedceddece373dde4fb9ee1a542f1d970 (patch) | |
tree | 0bb0b73b12a067557b50f479e2c7a60749858490 | |
parent | fafa6142de97388b3d70d959f69a4ffecb4333ba (diff) | |
download | bookup-0.2.3.tar.gz bookup-0.2.3.tar.bz2 |
Fix: NULL at the end of the PDF TOC0.2.3
-rw-r--r-- | ChangeLog.md | 4 | ||||
-rw-r--r-- | TODO.md | 1 | ||||
-rw-r--r-- | structure/book/en/00-preamble.md | 3 | ||||
-rw-r--r-- | templates/tufte-handout.tex | 6 |
4 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog.md b/ChangeLog.md index a62fe7c..57adace 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,7 +1,9 @@ # ChangeLog -## v0.0.3 - Unreleased +## v0.2.3 - 2024-10-06 +* [x] Fix a `NULL` at the end of TOC in the PDF version. + It was inserted at the TeX source, due to an empty `R` block. * [x] Removes the unused `biblio-style` config. ## v0.2.2 - 2024-09-29 @@ -2,7 +2,6 @@ ## Issues -* [ ] There's a `NULL` at the end of the PDF index. * [ ] Bug in `pandoc` with `citeproc` ignoring citation inside LaTeX blocks. Affecting the PDF format. Test available at `test/pandoc`. Consider to test with the latest pandoc and citeproc versions. 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('') } ``` diff --git a/templates/tufte-handout.tex b/templates/tufte-handout.tex index d7ea4cc..93dbfce 100644 --- a/templates/tufte-handout.tex +++ b/templates/tufte-handout.tex @@ -198,6 +198,12 @@ $endif$ \tableofcontents } $endif$ +$if(lot)$ +\listoftables +$endif$ +$if(lof)$ +\listoffigures +$endif$ $body$ |