diff options
| -rw-r--r-- | _changelog.yml | 1 | ||||
| -rw-r--r-- | _output.yml | 13 | ||||
| -rwxr-xr-x | bin/compile-notes | 5 | ||||
| -rw-r--r-- | content/notes/00-changelog/changelog.md | 1 | ||||
| -rw-r--r-- | templates/_output.yml | 3 |
5 files changed, 18 insertions, 5 deletions
diff --git a/_changelog.yml b/_changelog.yml index e9fd049..f8553a8 100644 --- a/_changelog.yml +++ b/_changelog.yml @@ -25,6 +25,7 @@ versions: coverage. * Fix RSS/Atom generation. * LaTeX engine detection. + * Increase chapter levels in the notebook. - id: 0.6.1 date_atom: 2026-01-31T14:06:00-03:00 diff --git a/_output.yml b/_output.yml index 2de4e33..87043ef 100644 --- a/_output.yml +++ b/_output.yml @@ -1,12 +1,15 @@ # Bookdown output configuration # See https://bookdown.org/yihui/bookdown/output-formats.html +# +# The main _output.yml file is overriden by the one from the templates/ folder +# whenever a book is compiled. # EPUB # See https://rdrr.io/cran/bookdown/man/epub_book.html epub_book: toc: true toc_depth: 3 - chapter_level: 2 + chapter_level: 3 cover_image: images/cover.png epub_version: epub3 @@ -19,7 +22,7 @@ epub_book: tufte:tufte_html: toc: true toc_depth: 3 - chapter_level: 2 + chapter_level: 3 cover_image: images/cover.png # Make sure to disable Pandoc's example_lists extension @@ -97,14 +100,16 @@ bookdown::tufte_book2: # Limited localization support: # https://tex.stackexchange.com/questions/755019/babel-onchar-ids-fonts-not-detecting-chinese-text-in-xelatex # - #latex_engine: "xelatex" + latex_engine: "xelatex" # LuaLaTeX # # Supports switching the locale based on character autodetection with # \babelprovide[onchar=ids fonts]{arabic} # - latex_engine: "lualatex" + # As of 2026-04-08, does not go well along with the marginfix package. + # + #latex_engine: "lualatex" # The natbib package does not support translating the author separator, only "and" is supported. # So better to stick with pandoc-citeproc. diff --git a/bin/compile-notes b/bin/compile-notes index 075e566..197c0ff 100755 --- a/bin/compile-notes +++ b/bin/compile-notes @@ -1,6 +1,6 @@ #!/usr/bin/env bash # -# Book compiler +# Notes compiler # # Parameters @@ -25,6 +25,9 @@ TEMPLATES="templates/notes/$LANG" # Update _output.yml with language information sed -e "s|%%lang%%|$LANG|g" $BASEDIR/templates/_output.yml > _output.yml +# Use higher chapter level in notebooks +sed -i -e 's/chapter_level: 2/chapter_level: 3/' _output.yml + # Remove any dangling output files rm -f $OUTPUT.md diff --git a/content/notes/00-changelog/changelog.md b/content/notes/00-changelog/changelog.md index c543c0b..4e85fd1 100644 --- a/content/notes/00-changelog/changelog.md +++ b/content/notes/00-changelog/changelog.md @@ -16,6 +16,7 @@ This section can be used to register changes in the text versions. * Adds appendix in the documentation, with chapter reporting coverage. * Fix RSS/Atom generation. * LaTeX engine detection. +* Increase chapter levels in the notebook. ## Version 0.6.1 - 2026-01-31 {#v0.6.1 .unnumbered} diff --git a/templates/_output.yml b/templates/_output.yml index 96904a7..a32e75f 100644 --- a/templates/_output.yml +++ b/templates/_output.yml @@ -1,5 +1,8 @@ # Bookdown output configuration # See https://bookdown.org/yihui/bookdown/output-formats.html +# +# The main _output.yml file is overriden by the one from the templates/ folder +# whenever a book is compiled. # EPUB # See https://rdrr.io/cran/bookdown/man/epub_book.html |
