aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-10-06 20:34:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-10-06 20:34:40 -0300
commitf1a14aebedceddece373dde4fb9ee1a542f1d970 (patch)
tree0bb0b73b12a067557b50f479e2c7a60749858490
parentfafa6142de97388b3d70d959f69a4ffecb4333ba (diff)
downloadbookup-f1a14aebedceddece373dde4fb9ee1a542f1d970.tar.gz
bookup-f1a14aebedceddece373dde4fb9ee1a542f1d970.tar.bz2
Fix: NULL at the end of the PDF TOC0.2.3
-rw-r--r--ChangeLog.md4
-rw-r--r--TODO.md1
-rw-r--r--structure/book/en/00-preamble.md3
-rw-r--r--templates/tufte-handout.tex6
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
diff --git a/TODO.md b/TODO.md
index 6d37c61..aa828b3 100644
--- a/TODO.md
+++ b/TODO.md
@@ -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$