diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 1dda2c8..4a75095 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -4,17 +4,21 @@ "type": "split", "children": [ { - "id": "63d80c6eb3872afa", + "id": "ae41ba9882c0a3d6", "type": "tabs", "children": [ { - "id": "dc8c249564ffac56", + "id": "01161538f53367e8", "type": "leaf", "state": { - "type": "empty", - "state": {}, + "type": "markdown", + "state": { + "file": "chapters/01_Getting_Started.md", + "mode": "source", + "source": false + }, "icon": "lucide-file", - "title": "New tab" + "title": "01_Getting_Started" } } ] @@ -264,26 +268,26 @@ "obsidian-kanban:Create new board": false } }, - "active": "dc8c249564ffac56", + "active": "01161538f53367e8", "lastOpenFiles": [ - "conf/sedK5OZdk", - "conf/sed0lodyQ", - "conf/sedVrX4GJ", - "templates/odt.yaml", - "templates/frontmatter-docx.md", - "templates/docx.yaml", - "scripts/new-project.sh", + "conf/sedO6HWQd", + "conf/sedLQxQGf", + "conf/sedIsN7C4", + "conf/sed8HHrHm", + "conf/sed0agSpY", + "conf/sed9gY2gw", + "conf/seddo6XG6", + "conf/sedyheY4U", + "conf/seduL1p1z", + "conf/sedltGqhZ", + "conf/sedv2m0sa", "chapters/01_Getting_Started.md", + "templates/frontmatter-docx.md", "chapters/00_Introduction.md", - "conf/sedBC8U5P", "chapters/AppendixB.md", "chapters/03_Features.md", "chapters/02_Usage.md", "chapters/02_Features.md", - "conf/frontmatter.tex", - "conf/sed7Vpnn0", - "conf/latex.yaml", - "conf/sedOEGv7F", "chapters/Preface.md", "chapters/Index.md", "chapters/Glossary.md", diff --git a/build/html/basic-book-builder.html b/build/html/basic-book-builder.html index 3a012a6..57667c0 100644 --- a/build/html/basic-book-builder.html +++ b/build/html/basic-book-builder.html @@ -24,6 +24,71 @@ vertical-align: middle; } .display.math{display: block; text-align: center; margin: 0.5rem auto;} + /* CSS for syntax highlighting */ + html { -webkit-text-size-adjust: 100%; } + pre > code.sourceCode { white-space: pre; position: relative; } + pre > code.sourceCode > span { display: inline-block; line-height: 1.25; } + pre > code.sourceCode > span:empty { height: 1.2em; } + .sourceCode { overflow: visible; } + code.sourceCode > span { color: inherit; text-decoration: inherit; } + div.sourceCode { margin: 1em 0; } + pre.sourceCode { margin: 0; } + @media screen { + div.sourceCode { overflow: auto; } + } + @media print { + pre > code.sourceCode { white-space: pre-wrap; } + pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } + } + pre.numberSource code + { counter-reset: source-line 0; } + pre.numberSource code > span + { position: relative; left: -4em; counter-increment: source-line; } + pre.numberSource code > span > a:first-child::before + { content: counter(source-line); + position: relative; left: -1em; text-align: right; vertical-align: baseline; + border: none; display: inline-block; + -webkit-touch-callout: none; -webkit-user-select: none; + -khtml-user-select: none; -moz-user-select: none; + -ms-user-select: none; user-select: none; + padding: 0 4px; width: 4em; + color: #aaaaaa; + } + pre.numberSource { margin-left: 3em; border-left: 1px solid #aaaaaa; padding-left: 4px; } + div.sourceCode + { } + @media screen { + pre > code.sourceCode > span > a:first-child::before { text-decoration: underline; } + } + code span.al { color: #ff0000; font-weight: bold; } /* Alert */ + code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */ + code span.at { color: #7d9029; } /* Attribute */ + code span.bn { color: #40a070; } /* BaseN */ + code span.bu { color: #008000; } /* BuiltIn */ + code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */ + code span.ch { color: #4070a0; } /* Char */ + code span.cn { color: #880000; } /* Constant */ + code span.co { color: #60a0b0; font-style: italic; } /* Comment */ + code span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */ + code span.do { color: #ba2121; font-style: italic; } /* Documentation */ + code span.dt { color: #902000; } /* DataType */ + code span.dv { color: #40a070; } /* DecVal */ + code span.er { color: #ff0000; font-weight: bold; } /* Error */ + code span.ex { } /* Extension */ + code span.fl { color: #40a070; } /* Float */ + code span.fu { color: #06287e; } /* Function */ + code span.im { color: #008000; font-weight: bold; } /* Import */ + code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */ + code span.kw { color: #007020; font-weight: bold; } /* Keyword */ + code span.op { color: #666666; } /* Operator */ + code span.ot { color: #007020; } /* Other */ + code span.pp { color: #bc7a00; } /* Preprocessor */ + code span.sc { color: #4070a0; } /* SpecialChar */ + code span.ss { color: #bb6688; } /* SpecialString */ + code span.st { color: #4070a0; } /* String */ + code span.va { color: #19177c; } /* Variable */ + code span.vs { color: #4070a0; } /* VerbatimString */ + code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */ /* CSS for citations */ div.csl-bib-body { } div.csl-entry { @@ -51,7 +116,7 @@

Basic Book Builder

-

A Pandoc template for building books and articles

+

A Pandoc template for building books, documents and articles

Cover illustration @@ -64,13 +129,15 @@

Basic Book Builder

- A Pandoc template for building books and articles + A Pandoc template for building books, documents and articles + + @@ -128,243 +195,207 @@ window.MathJax = { -

Preface

-

Preface to the Book…

Introduction

-

This is a basic book (or article) builder template based on a Pandoc -build process in conjunction with a number of other tools to generate -PDF, ODT, HTML, LaTex, Markdown, and Epub book output formats from -Markdown source content , which can optionally be edited as an Obsidian -vault.

-

This book builder template has been curated by John Haverlack.This is a basic book (or article / document) builder template based +on a Pandoc(Pandoc - Index, +n.d.) build process in conjunction with a number of other +tools to generate PDF, HTML, LaTex, Markdown, ODT, DOCX, and Epub book +output formats from a single set Markdown source content , which can +optionally be edited as an Obsidian vault.

+

This basic book builder(Jehaverlack/Basic-Book-Builder, +n.d.) template has been curated by John Haverlack.(John Haverlack ACEP, n.d.)

Getting Started

-

Installing Pre-Requisites

-

For Debian / ZorinOS and likely Ubuntu based systems.

+

Cloning the Basic Book +Builder

+
+

Cloning the repository

+
git clone https://github.com/jehaverlack/basic-book-builder.git
+
+
+

Navigate to the repo directory

+
cd basic-book-builder
+
+

Setting Up Build Environment

-

TODO

-

It would be nice to roll a setup script to take care of this.

+

Debian Based Linux

+

This script only support Debian based linux system (Debian, Ubunutu, +Zorin, etc) This script has not been widely tested across platforms

-

Required

-

Pandoc

- -
-

sudo apt install https://github.com/jgm/pandoc/releases/download/3.8.2.1/pandoc-3.8.2.1-1-amd64.deb

-
-

Code Editor

-
-

Code Editor

-

VSCodium is recommend for -privacy (telemetry/tracking) reasons - https://vscodium.com/

+
+

Setup Build Environment

+
./scripts/setup-linux-deb.sh
-

But any text editor will work. #### make

-
sudo apt install make
-

jq and yq

-
sudo apt install jq yq
-

texlive

-
-

sudo apt install texlive texlive-xetex texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra

-
-

MathJax

-
    -
  • https://www.mathjax.org/
  • -
-
wget https://registry.npmjs.org/mathjax/-/mathjax-3.2.2.tgz
-tar xzf mathjax-3.2.2.tgz
-mv package/es5/* lib/mathjax
-rm -rf package mathjax-3.2.2.tgz
-
-

TODO

-

This need to be rolled into a setup script.

-
-

Optional

-

The following are not strictly requires to use this book builder -template.

-

Obsidian

-
-

Highly Recommended

-

Editing book chapter content in Obsidian is a very productive means -for editing Markdown source content.

-
- -
sudo apt install https://github.com/obsidianmd/obsidian-releases/releases/download/v1.9.14/obsidian_1.9.14_amd64.deb
-

Zotero

-
-

Highly Recommended

-

If you need to managed citations and references, Zotero integration -is highly recommended.

-
-
    -
  • https://www.zotero.org/
  • -
-
sudo cp ./scripts/deps/zotero.list /etc/apt/sources.list.d/
-
sudo apt update
-
sudo apt install zotero
-
Better BibTex for Zotero
-

Install the Better BibTex Plugin for Zotero - Zotero > Tool > -Plugins

-
Export citations.bib
-
    -
  • Zotero > File > Export Library > Format: Better BibTeX
  • -
  • -
  • -
  • -
-
Zotero Connector Browser -Plugin
-
    -
  • https://chromewebstore.google.com/detail/zotero-connector/ekhagklcjbdpajgpjgmbionohlpdbjgc
  • -
-

Provides you the ability to auto add Web resources to your Zotero -citation database.

-

lmodern

-
sudo apt install lmodern
-

epubcheck

-
sudo apt install epubcheck
-

foliate

-

An EPub Reader

-
    -
  • https://johnfactotum.github.io/foliate/
  • -
-
sudo apt install https://github.com/johnfactotum/foliate/releases/download/2.6.4/com.github.johnfactotum.foliate_2.6.4_all.deb
-

calibre

-

An EPub Reader

-
    -
  • https://calibre-ebook.com
  • -
-
sudo apt install calibre
-

Editing the Configuration

-

Editing the Book

-

Configuration

-

There are a number of other config files for each format:

-
conf/
-├── epub-metadata.xml
-├── epub_template.html
-├── epub.yaml
-├── frontmatter_epub.md
-├── frontmatter_epub.xhtml
-├── frontmatter.html
-├── frontmatter.tex
-├── header.tex
-├── html.yaml
-├── latex.yaml
-├── markdown.yaml
-├── metadata.yaml
-├── pandoc.yaml
-├── pdf.yaml
-├── style.css
-└── style_epub.css
-
-

Main Config Files

-
    -
  • metadata.yaml - Set Title, etc
  • -
  • pandoc.yaml - Main Pandoc Config #### Per format Configs
  • -
  • pdf.yaml
  • -
  • html.yaml
  • -
  • latex.yaml
  • -
  • epub.yaml
  • -
-

FrontMatter Config

-

There are 2 Version of the FrontMatter for PDF, and HTML bases -formats that set the Title, Author, Verizon, Copyright, etc…

-
    -
  • frontmatter.tex
  • -
  • frontmatter.html
  • -
  • frontmatter_epub.* - Work in Progress
  • -
-
-

There is probably a better way to do this.

-
-

Editing the Content

-

To edit the book open the basic-book-builder directory -as an Obsidian Vault.

-
    -
  • Edit the Markdown content in the chapters -directory.
  • -
-

Citations

-
-

Note: the Zotero database needs configured to export automatically to -lib/citations.bib

-
-

To insert a Zotero Citation - Ensure the Zotero App and DB are -running on you system. - Alt + I (to insert citation) - Search for and -select citation reference

-

Usage: Building the Book

-

PDF

-
make pdf
-

HTML

-
make html
-

LaTex

-
make latex
-

Markdown

-
make markdown
-

EPub

-
-

Note: This ePub configuration still needs tuning.

-
-
make epub
-

Appendix A

-

First Appendix

+

For more information on setting up the build environment for your +system see Appendix A.

Glossary

-
    -
  • AI - Artificial Intelligence
  • -
  • -
+
AuthorJohn Haverlack
Version1.1.0
Date2026-02-04
AffiliationAlaska Center for Energy and Power
InstitutionUniversity of Alaska Fairbanks
ISBN:UNSPECIFIED
DOI:UNSPECIFIED
MaturityBETA
++++ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
TermDescription
AST (Abstract Syntax Tree)Pandoc’s internal structured representation of a document. Lua +filters operate on the AST before rendering to a target format.
BibliographyA .bib file (e.g., Zotero export) used by Pandoc with +citeproc to generate formatted citations and reference +lists.
CalloutA styled block (e.g., [!warning]) transformed by Lua +filters into format-specific output such as LaTeX environments or HTML +<div> elements.
Defaults File (YAML)A Pandoc configuration file defining output format, filters, +metadata, and rendering options (e.g., pdf.yaml, +html.yaml).
DOCXMicrosoft Word document format generated by Pandoc; styling is +controlled via a reference.docx file.
Filter (Lua)A script that modifies Pandoc’s AST before rendering. Used in this +workflow for callouts and other structural transformations.
FrontmatterFormat-specific content inserted before the main body (e.g., +frontmatter.tex, frontmatter.html, +frontmatter-docx.md).
HTMLWeb output format generated by Pandoc, typically styled via CSS and +supporting interactive features.
LaTeXTypesetting system used for high-quality PDF generation via XeLaTeX +in this workflow.
Lua FilterA lightweight scripting extension used by Pandoc to customize +document transformations programmatically.
MakefileAutomation script orchestrating the build pipeline for PDF, HTML, +DOCX, ODT, and Markdown outputs.
MarkdownPlain-text markup language serving as the source format for all +outputs in the workflow.
MetadataKey–value pairs (e.g., metadata.yaml) defining title, +author, license, version, and other document variables.
ODTOpenDocument Text format used by LibreOffice; similar to DOCX but +open-standard.
PandocUniversal document converter used to transform Markdown into PDF, +HTML, DOCX, ODT, EPUB, and more.
PDFPortable Document Format output produced via Pandoc + XeLaTeX.
Reference DocumentA DOCX or ODT file defining styles (fonts, headings, spacing) used +when generating Word/LibreOffice outputs.
Resource PathDirectories Pandoc searches for images, diagrams, and other assets +during rendering.
TemplateA format-specific layout file (e.g., LaTeX template) used to control +document structure beyond styling.
TOC (Table of Contents)Automatically generated navigation structure controlled by +toc and toc-depth options.
XeLaTeXLaTeX engine used to generate PDFs with modern font support (via +fontspec).
ZoteroReference manager used to generate .bib files for +citation processing with Pandoc.

Bibliography

+
+Jehaverlack/Basic-Book-Builder: A Pandoc Workflow for +Building PDF, HTML, EPUB, and +LaTeX Book Format. n.d. +Https://github.com/jehaverlack/basic-book-builder. +
John Haverlack ACEP. n.d. Https://www.uaf.edu/acep/about/our-team/john-haverlack.php.
+
+Pandoc - Index. n.d. Https://pandoc.org/. +
diff --git a/build/html/conf/style.css b/build/html/conf/style.css index fee5730..400d021 100644 --- a/build/html/conf/style.css +++ b/build/html/conf/style.css @@ -89,7 +89,9 @@ ul, ol { .callout-speculative, .callout-caution, .callout-warning, -.callout-danger { +.callout-danger, +.callout-code, +.callout-cli { border-radius: 6px; padding: 5px; /* internal padding */ margin-top: 5px; /* external spacing tightened */ @@ -104,7 +106,9 @@ ul, ol { .callout-speculative p:first-child strong, .callout-caution p:first-child strong, .callout-warning p:first-child strong, -.callout-danger p:first-child strong { +.callout-danger p:first-child strong, +.callout-code p:first-child strong, +.callout-cli p:first-child strong { display: block; font-family: "Libertinus Sans", sans-serif; font-weight: 600; @@ -118,7 +122,9 @@ ul, ol { .callout-speculative p, .callout-caution p, .callout-warning p, -.callout-danger p { +.callout-danger p, +.callout-code p, +.callout-cli p { margin-top: 5px; margin-bottom: 5px; line-height: 1.45; /* slightly condensed text spacing */ @@ -181,6 +187,23 @@ ul, ol { border-left-color: #d83b3a; } +/* ------------------------------ + Code / CLI Callouts + ------------------------------ */ + + .callout-code { + background: #f5f5f5; + border-left-color: #b4b4b4; +} + +.callout-cli { + background: #f0f0f0; + border-left-color: #777; + font-family: "Noto Sans Mono", monospace; + font-size: 0.95em; +} + + /* ------------------------------ Images (in body content) ------------------------------ */ diff --git a/build/html/lib/img/2-node-directed-graph.png b/build/html/lib/img/2-node-directed-graph.png deleted file mode 100644 index 5405b86..0000000 Binary files a/build/html/lib/img/2-node-directed-graph.png and /dev/null differ diff --git a/build/html/lib/img/2-node-undirected-complete-graph.png b/build/html/lib/img/2-node-undirected-complete-graph.png deleted file mode 100644 index 9923993..0000000 Binary files a/build/html/lib/img/2-node-undirected-complete-graph.png and /dev/null differ diff --git a/build/html/lib/img/4-node-directed-graph.png b/build/html/lib/img/4-node-directed-graph.png deleted file mode 100644 index 3bbbf3f..0000000 Binary files a/build/html/lib/img/4-node-directed-graph.png and /dev/null differ diff --git a/build/html/lib/img/6-node-directed-compete-graph.pdf b/build/html/lib/img/6-node-directed-compete-graph.pdf deleted file mode 100644 index 25b2fce..0000000 Binary files a/build/html/lib/img/6-node-directed-compete-graph.pdf and /dev/null differ diff --git a/build/html/lib/img/6-node-directed-compete-graph.png b/build/html/lib/img/6-node-directed-compete-graph.png deleted file mode 100644 index d3cd543..0000000 Binary files a/build/html/lib/img/6-node-directed-compete-graph.png and /dev/null differ diff --git a/build/html/lib/img/6-node-undirected-compete-selfconn-graph.png b/build/html/lib/img/6-node-undirected-compete-selfconn-graph.png deleted file mode 100644 index 60d0eff..0000000 Binary files a/build/html/lib/img/6-node-undirected-compete-selfconn-graph.png and /dev/null differ diff --git a/build/html/lib/img/6-node-undirected-complete-graph.png b/build/html/lib/img/6-node-undirected-complete-graph.png deleted file mode 100644 index 1455d4a..0000000 Binary files a/build/html/lib/img/6-node-undirected-complete-graph.png and /dev/null differ diff --git a/build/html/lib/img/Graph_isomorphism_a.svg.png b/build/html/lib/img/Graph_isomorphism_a.svg.png deleted file mode 100644 index e9a25bc..0000000 Binary files a/build/html/lib/img/Graph_isomorphism_a.svg.png and /dev/null differ diff --git a/build/html/lib/img/Graph_isomorphism_b.svg.png b/build/html/lib/img/Graph_isomorphism_b.svg.png deleted file mode 100644 index c258f76..0000000 Binary files a/build/html/lib/img/Graph_isomorphism_b.svg.png and /dev/null differ diff --git a/build/html/lib/img/Inverse_square_law.svg.png b/build/html/lib/img/Inverse_square_law.svg.png deleted file mode 100644 index 2589a20..0000000 Binary files a/build/html/lib/img/Inverse_square_law.svg.png and /dev/null differ diff --git a/build/html/lib/img/Pii.png b/build/html/lib/img/Pii.png deleted file mode 100644 index 7ef9fc0..0000000 Binary files a/build/html/lib/img/Pii.png and /dev/null differ diff --git a/build/html/lib/img/Pinna's_illusory_intertwining_effect_480x480.gif b/build/html/lib/img/Pinna's_illusory_intertwining_effect_480x480.gif deleted file mode 100644 index 47cd186..0000000 Binary files a/build/html/lib/img/Pinna's_illusory_intertwining_effect_480x480.gif and /dev/null differ diff --git a/build/html/lib/img/Pio.png b/build/html/lib/img/Pio.png deleted file mode 100644 index a653694..0000000 Binary files a/build/html/lib/img/Pio.png and /dev/null differ diff --git a/build/html/lib/img/Poi.png b/build/html/lib/img/Poi.png deleted file mode 100644 index d9b2e01..0000000 Binary files a/build/html/lib/img/Poi.png and /dev/null differ diff --git a/build/html/lib/img/Poo.png b/build/html/lib/img/Poo.png deleted file mode 100644 index 9ed2679..0000000 Binary files a/build/html/lib/img/Poo.png and /dev/null differ diff --git a/build/html/lib/img/Revolving_circles.480x480.png b/build/html/lib/img/Revolving_circles.480x480.png deleted file mode 100644 index 32f1f32..0000000 Binary files a/build/html/lib/img/Revolving_circles.480x480.png and /dev/null differ diff --git a/build/html/lib/img/Revolving_circles.480x480_white.png b/build/html/lib/img/Revolving_circles.480x480_white.png deleted file mode 100644 index 226c66e..0000000 Binary files a/build/html/lib/img/Revolving_circles.480x480_white.png and /dev/null differ diff --git a/build/html/lib/img/Revolving_circles.svg b/build/html/lib/img/Revolving_circles.svg deleted file mode 100644 index 652b782..0000000 --- a/build/html/lib/img/Revolving_circles.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/build/html/lib/img/Unit_circle_angles_color.png b/build/html/lib/img/Unit_circle_angles_color.png deleted file mode 100644 index 54f182b..0000000 Binary files a/build/html/lib/img/Unit_circle_angles_color.png and /dev/null differ diff --git a/build/html/lib/img/directed-proximity.png b/build/html/lib/img/directed-proximity.png deleted file mode 100644 index 24ce766..0000000 Binary files a/build/html/lib/img/directed-proximity.png and /dev/null differ diff --git a/build/html/lib/img/udir-proximity.png b/build/html/lib/img/udir-proximity.png deleted file mode 100644 index 2a5aa00..0000000 Binary files a/build/html/lib/img/udir-proximity.png and /dev/null differ diff --git a/build/html/lib/img/unit-circle-with-pi.png b/build/html/lib/img/unit-circle-with-pi.png deleted file mode 100644 index 6b16bc2..0000000 Binary files a/build/html/lib/img/unit-circle-with-pi.png and /dev/null differ diff --git a/build/html/lib/img/unit-circle-with-pi.png.png b/build/html/lib/img/unit-circle-with-pi.png.png deleted file mode 100644 index 2789e57..0000000 Binary files a/build/html/lib/img/unit-circle-with-pi.png.png and /dev/null differ diff --git a/build/html/lib/img/unit-circle-with-tau.png b/build/html/lib/img/unit-circle-with-tau.png deleted file mode 100644 index eb70cd5..0000000 Binary files a/build/html/lib/img/unit-circle-with-tau.png and /dev/null differ diff --git a/build/latex/basic-book-builder.aux b/build/latex/basic-book-builder.aux index a5493bb..29df7dc 100644 --- a/build/latex/basic-book-builder.aux +++ b/build/latex/basic-book-builder.aux @@ -33,16 +33,16 @@ \gdef \LT@i {\LT@entry {1}{86.68152pt}\LT@entry {1}{383.07349pt}} -\newlabel{glossary}{{2.2}{3}{Glossary}{chapter*.4}{}} -\@writefile{toc}{\contentsline {chapter}{Glossary}{3}{chapter*.4}\protected@file@percent } -\@writefile{toc}{\contentsline {chapter}{Index}{5}{chapter*.5}\protected@file@percent } +\newlabel{glossary}{{2.2}{4}{Glossary}{chapter*.4}{}} +\@writefile{toc}{\contentsline {chapter}{Glossary}{4}{chapter*.4}\protected@file@percent } +\@writefile{toc}{\contentsline {chapter}{Index}{6}{chapter*.5}\protected@file@percent } \bibcite{ref-JehaverlackBasicbookbuilderPandoca}{\citeproctext } \bibcite{ref-JohnHaverlackACEP}{\citeproctext } \bibcite{ref-PandocIndex}{\citeproctext } \bibcite{ref-JehaverlackBasicbookbuilderPandoca}{\citeproctext } \bibcite{ref-JohnHaverlackACEP}{\citeproctext } \bibcite{ref-PandocIndex}{\citeproctext } -\newlabel{bibliography}{{2.2}{7}{Bibliography}{chapter*.6}{}} -\@writefile{toc}{\contentsline {chapter}{Bibliography}{7}{chapter*.6}\protected@file@percent } -\newlabel{refs}{{2.2}{7}{Bibliography}{section*.7}{}} -\gdef \@abspage@last{12} +\newlabel{bibliography}{{2.2}{8}{Bibliography}{chapter*.6}{}} +\@writefile{toc}{\contentsline {chapter}{Bibliography}{8}{chapter*.6}\protected@file@percent } +\newlabel{refs}{{2.2}{8}{Bibliography}{section*.7}{}} +\gdef \@abspage@last{13} diff --git a/build/latex/basic-book-builder.log b/build/latex/basic-book-builder.log index 1a691e4..eabab23 100644 --- a/build/latex/basic-book-builder.log +++ b/build/latex/basic-book-builder.log @@ -1,4 +1,4 @@ -This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Debian) (preloaded format=xelatex 2025.11.6) 5 FEB 2026 11:32 +This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Debian) (preloaded format=xelatex 2025.11.6) 5 FEB 2026 13:01 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. @@ -683,32 +683,23 @@ Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO) (/usr/share/texlive/texmf-dist/tex/latex/kvsetkeys/kvsetkeys.sty Package: kvsetkeys 2022-10-05 v1.19 Key value parser (HO) ))) -(/usr/share/texlive/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty -Package: fancyvrb 2023/01/19 4.5a verbatim text (tvz,hv) -\FV@CodeLineNo=\count292 -\FV@InFile=\read2 -\FV@TabBox=\box55 -\c@FancyVerbLine=\count293 -\FV@StepNumber=\count294 -\FV@OutFile=\write3 -) (/usr/share/texlive/texmf-dist/tex/latex/tools/longtable.sty Package: longtable 2021-09-01 v4.17 Multi-page Table package (DPC) \LTleft=\skip53 \LTright=\skip54 \LTpre=\skip55 \LTpost=\skip56 -\LTchunksize=\count295 +\LTchunksize=\count292 \LTcapwidth=\dimen162 -\LT@head=\box56 -\LT@firsthead=\box57 -\LT@foot=\box58 -\LT@lastfoot=\box59 -\LT@gbox=\box60 -\LT@cols=\count296 -\LT@rows=\count297 -\c@LT@tables=\count298 -\c@LT@chunks=\count299 +\LT@head=\box55 +\LT@firsthead=\box56 +\LT@foot=\box57 +\LT@lastfoot=\box58 +\LT@gbox=\box59 +\LT@cols=\count293 +\LT@rows=\count294 +\c@LT@tables=\count295 +\c@LT@chunks=\count296 \LT@p@ftn=\toks24 ) (/usr/share/texlive/texmf-dist/tex/latex/booktabs/booktabs.sty @@ -723,42 +714,42 @@ Package: booktabs 2020/01/12 v1.61803398 Publication quality tables \cmidrulesep=\dimen170 \cmidrulekern=\dimen171 \defaultaddspace=\dimen172 -\@cmidla=\count300 -\@cmidlb=\count301 +\@cmidla=\count297 +\@cmidlb=\count298 \@aboverulesep=\dimen173 \@belowrulesep=\dimen174 -\@thisruleclass=\count302 -\@lastruleclass=\count303 +\@thisruleclass=\count299 +\@lastruleclass=\count300 \@thisrulewidth=\dimen175 ) (/usr/share/texlive/texmf-dist/tex/latex/tools/array.sty Package: array 2022/09/04 v2.5g Tabular extension package (FMi) \col@sep=\dimen176 -\ar@mcellbox=\box61 +\ar@mcellbox=\box60 \extrarowheight=\dimen177 \NC@list=\toks25 \extratabsurround=\skip57 \backup@length=\skip58 -\ar@cellbox=\box62 +\ar@cellbox=\box61 ) -\c@none=\count304 +\c@none=\count301 (/usr/share/texlive/texmf-dist/tex/latex/tools/calc.sty Package: calc 2017/05/25 v4.3 Infix arithmetic (KKT,FJ) -\calc@Acount=\count305 -\calc@Bcount=\count306 +\calc@Acount=\count302 +\calc@Bcount=\count303 \calc@Adimen=\dimen178 \calc@Bdimen=\dimen179 \calc@Askip=\skip59 \calc@Bskip=\skip60 LaTeX Info: Redefining \setlength on input line 80. LaTeX Info: Redefining \addtolength on input line 81. -\calc@Ccount=\count307 +\calc@Ccount=\count304 \calc@Cskip=\skip61 ) (/usr/share/texlive/texmf-dist/tex/latex/footnotehyper/footnotehyper.sty Package: footnotehyper 2021/08/13 v1.1e hyperref aware footnote.sty (JFB) -\FNH@notes=\box63 +\FNH@notes=\box62 \FNH@width=\dimen180 \FNH@toks=\toks26 ) @@ -779,7 +770,7 @@ Package graphics Info: Driver file: xetex.def on input line 107. \Gin@req@height=\dimen181 \Gin@req@width=\dimen182 ) -\pandoc@box=\box64 +\pandoc@box=\box63 \cslhangindent=\skip62 \csllabelwidth=\skip63 @@ -794,7 +785,7 @@ Package: tcolorbox 2022/06/24 version 5.1.1 text color boxes \pgfutil@tempdimb=\dimen184 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def -\pgfutil@abb=\box65 +\pgfutil@abb=\box64 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/pgf.revision.tex) @@ -825,16 +816,16 @@ Package: pgfsys 2023-01-15 v3.1.10 (3.1.10) \pgf@yc=\dimen192 \pgf@xd=\dimen193 \pgf@yd=\dimen194 -\w@pgf@writea=\write4 -\r@pgf@reada=\read3 -\c@pgf@counta=\count308 -\c@pgf@countb=\count309 -\c@pgf@countc=\count310 -\c@pgf@countd=\count311 +\w@pgf@writea=\write3 +\r@pgf@reada=\read2 +\c@pgf@counta=\count305 +\c@pgf@countb=\count306 +\c@pgf@countc=\count307 +\c@pgf@countd=\count308 \t@pgf@toka=\toks31 \t@pgf@tokb=\toks32 \t@pgf@tokc=\toks33 -\pgf@sys@id@count=\count312 +\pgf@sys@id@count=\count309 (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg File: pgf.cfg 2023-01-15 v3.1.10 (3.1.10) ) @@ -849,13 +840,13 @@ File: pgfsys-dvipdfmx.def 2023-01-15 v3.1.10 (3.1.10) f File: pgfsys-common-pdf.def 2023-01-15 v3.1.10 (3.1.10) ) -\pgfsys@objnum=\count313 +\pgfsys@objnum=\count310 ))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code. tex File: pgfsyssoftpath.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgfsyssoftpath@smallbuffer@items=\count314 -\pgfsyssoftpath@bigbuffer@items=\count315 +\pgfsyssoftpath@smallbuffer@items=\count311 +\pgfsyssoftpath@bigbuffer@items=\count312 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code. tex @@ -868,8 +859,8 @@ Package: pgfcore 2023-01-15 v3.1.10 (3.1.10) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex \pgfmath@dimen=\dimen195 -\pgfmath@count=\count316 -\pgfmath@box=\box66 +\pgfmath@count=\count313 +\pgfmath@box=\box65 \pgfmath@toks=\toks34 \pgfmath@stack@operand=\toks35 \pgfmath@stack@operation=\toks36 @@ -893,7 +884,7 @@ tex) thmetics.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex -\c@pgfmathroundto@lastzeros=\count317 +\c@pgfmathroundto@lastzeros=\count314 )) (/usr/share/texlive/texmf-dist/tex/generic/pgf/math/pgfint.code.tex) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.te @@ -929,10 +920,10 @@ File: pgfcorepathusage.code.tex 2023-01-15 v3.1.10 (3.1.10) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.te x File: pgfcorescopes.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgfpic=\box67 -\pgf@hbox=\box68 -\pgf@layerbox@main=\box69 -\pgf@picture@serial@count=\count318 +\pgfpic=\box66 +\pgf@hbox=\box67 +\pgf@layerbox@main=\box68 +\pgf@picture@serial@count=\count315 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.c ode.tex @@ -965,8 +956,8 @@ File: pgfcorearrows.code.tex 2023-01-15 v3.1.10 (3.1.10) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex File: pgfcoreshade.code.tex 2023-01-15 v3.1.10 (3.1.10) \pgf@max=\dimen275 -\pgf@sys@shading@range@num=\count319 -\pgf@shadingcount=\count320 +\pgf@sys@shading@range@num=\count316 +\pgf@shadingcount=\count317 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex File: pgfcoreimage.code.tex 2023-01-15 v3.1.10 (3.1.10) @@ -974,7 +965,7 @@ File: pgfcoreimage.code.tex 2023-01-15 v3.1.10 (3.1.10) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code. tex File: pgfcoreexternal.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgfexternal@startupbox=\box70 +\pgfexternal@startupbox=\box69 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.te x @@ -993,7 +984,7 @@ File: pgfcorerdf.code.tex 2023-01-15 v3.1.10 (3.1.10) ))) (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex File: pgfmoduleshapes.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgfnodeparttextbox=\box71 +\pgfnodeparttextbox=\box70 ) (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex File: pgfmoduleplot.code.tex 2023-01-15 v3.1.10 (3.1.10) ) @@ -1010,7 +1001,7 @@ Package: pgfcomp-version-1-18 2023-01-15 v3.1.10 (3.1.10) Package: verbatim 2022-07-02 v1.5u LaTeX2e package for verbatim enhancements \every@verbatim=\toks37 \verbatim@line=\toks38 -\verbatim@in@stream=\read4 +\verbatim@in@stream=\read3 ) (/usr/share/texlive/texmf-dist/tex/latex/environ/environ.sty Package: environ 2014/05/04 v0.3 A new way to define environments @@ -1018,24 +1009,24 @@ Package: environ 2014/05/04 v0.3 A new way to define environments (/usr/share/texlive/texmf-dist/tex/latex/trimspaces/trimspaces.sty Package: trimspaces 2009/09/17 v1.1 Trim spaces around a token list )) -\tcb@titlebox=\box72 -\tcb@upperbox=\box73 -\tcb@lowerbox=\box74 -\tcb@phantombox=\box75 -\c@tcbbreakpart=\count321 -\c@tcblayer=\count322 -\c@tcolorbox@number=\count323 +\tcb@titlebox=\box71 +\tcb@upperbox=\box72 +\tcb@lowerbox=\box73 +\tcb@phantombox=\box74 +\c@tcbbreakpart=\count318 +\c@tcblayer=\count319 +\c@tcolorbox@number=\count320 +\tcb@temp=\box75 \tcb@temp=\box76 \tcb@temp=\box77 \tcb@temp=\box78 -\tcb@temp=\box79 (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcbraster.code.tex Library (tcolorbox): 'tcbraster.code.tex' version '5.1.1' -\c@tcbrastercolumn=\count324 -\c@tcbrasterrow=\count325 -\c@tcbrasternum=\count326 -\c@tcbraster=\count327 +\c@tcbrastercolumn=\count321 +\c@tcbrasterrow=\count322 +\c@tcbrasternum=\count323 +\c@tcbraster=\count324 ) (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcbskins.code.tex Library (tcolorbox): 'tcbskins.code.tex' version '5.1.1' (/usr/share/texlive/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty @@ -1057,7 +1048,7 @@ Package: tikz 2023-01-15 v3.1.10 (3.1.10) (/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers .code.tex File: pgflibraryplothandlers.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgf@plot@mark@count=\count328 +\pgf@plot@mark@count=\count325 \pgfplotmarksize=\dimen280 ) \tikz@lastx=\dimen281 @@ -1068,28 +1059,28 @@ File: pgflibraryplothandlers.code.tex 2023-01-15 v3.1.10 (3.1.10) \tikz@lastmovetoy=\dimen286 \tikzleveldistance=\dimen287 \tikzsiblingdistance=\dimen288 -\tikz@figbox=\box80 -\tikz@figbox@bg=\box81 -\tikz@tempbox=\box82 -\tikz@tempbox@bg=\box83 -\tikztreelevel=\count329 -\tikznumberofchildren=\count330 -\tikznumberofcurrentchild=\count331 -\tikz@fig@count=\count332 +\tikz@figbox=\box79 +\tikz@figbox@bg=\box80 +\tikz@tempbox=\box81 +\tikz@tempbox@bg=\box82 +\tikztreelevel=\count326 +\tikznumberofchildren=\count327 +\tikznumberofcurrentchild=\count328 +\tikz@fig@count=\count329 (/usr/share/texlive/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex File: pgfmodulematrix.code.tex 2023-01-15 v3.1.10 (3.1.10) -\pgfmatrixcurrentrow=\count333 -\pgfmatrixcurrentcolumn=\count334 -\pgf@matrix@numberofcolumns=\count335 +\pgfmatrixcurrentrow=\count330 +\pgfmatrixcurrentcolumn=\count331 +\pgf@matrix@numberofcolumns=\count332 ) -\tikz@expandcount=\count336 +\tikz@expandcount=\count333 (/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tik zlibrarytopaths.code.tex File: tikzlibrarytopaths.code.tex 2023-01-15 v3.1.10 (3.1.10) ))) -\tcb@waterbox=\box84 +\tcb@waterbox=\box83 (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcbskinsjigsaw.code.tex Library (tcolorbox): 'tcbskinsjigsaw.code.tex' version '5.1.1' @@ -1104,9 +1095,9 @@ Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO) Package pdfcol Info: Interface disabled because of missing PDF mode of pdfTeX. ) Package pdfcol Info: pdfTeX's color stacks are not available. -\tcb@testbox=\box85 -\tcb@totalupperbox=\box86 -\tcb@totallowerbox=\box87 +\tcb@testbox=\box84 +\tcb@totalupperbox=\box85 +\tcb@totallowerbox=\box86 ) (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcbhooks.code.tex Library (tcolorbox): 'tcbhooks.code.tex' version '5.1.1' @@ -1117,30 +1108,30 @@ Library (tcolorbox): 'tcbfitting.code.tex' version '5.1.1' \tcbfitdim=\dimen289 \tcb@lowerfitdim=\dimen290 \tcb@upperfitdim=\dimen291 -\tcb@cur@hbadness=\count337 +\tcb@cur@hbadness=\count334 ) (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcblistingsutf8.code.tex Library (tcolorbox): 'tcblistingsutf8.code.tex' version '5.1.1' (/usr/share/texlive/texmf-dist/tex/latex/tcolorbox/tcblistings.code.tex Library (tcolorbox): 'tcblistings.code.tex' version '5.1.1' (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.sty -\lst@mode=\count338 -\lst@gtempboxa=\box88 +\lst@mode=\count335 +\lst@gtempboxa=\box87 \lst@token=\toks41 -\lst@length=\count339 +\lst@length=\count336 \lst@currlwidth=\dimen292 -\lst@column=\count340 -\lst@pos=\count341 +\lst@column=\count337 +\lst@pos=\count338 \lst@lostspace=\dimen293 \lst@width=\dimen294 -\lst@newlines=\count342 -\lst@lineno=\count343 +\lst@newlines=\count339 +\lst@lineno=\count340 \lst@maxwidth=\dimen295 (/usr/share/texlive/texmf-dist/tex/latex/listings/lstmisc.sty File: lstmisc.sty 2020/03/24 1.8d (Carsten Heinz) -\c@lstnumber=\count344 -\lst@skipnumbers=\count345 -\lst@framebox=\box89 +\c@lstnumber=\count341 +\lst@skipnumbers=\count342 +\lst@framebox=\box88 ) (/usr/share/texlive/texmf-dist/tex/latex/listings/listings.cfg File: listings.cfg 2020/03/24 1.8d listings configuration @@ -1162,7 +1153,7 @@ Package pdftexcmds Info: \pdfdraftmode not found. Package: shellesc 2019/11/08 v1.0c unified shell escape interface for LaTeX Package shellesc Info: Restricted shell escape enabled on input line 77. )) -\c@tcblisting=\count346 +\c@tcblisting=\count343 )) Package tcolorbox Info: Library `listingsutf8' is compatible with pdftex only. Library `listings` is loaded instead. on input line 29. @@ -1185,17 +1176,17 @@ File: pgflibraryfadings.code.tex 2023-01-15 v3.1.10 (3.1.10) Library (tcolorbox): 'tcbposter.code.tex' version '5.1.1' )) (/usr/share/texlive/texmf-dist/tex/latex/float/float.sty Package: float 2001/11/08 v1.3d Float enhancements (AL) -\c@float@type=\count347 +\c@float@type=\count344 \float@exts=\toks42 -\float@box=\box90 +\float@box=\box89 \@float@everytoks=\toks43 -\@floatcapt=\box91 +\@floatcapt=\box90 ) (/usr/share/texlive/texmf-dist/tex/latex/base/makeidx.sty Package: makeidx 2021/10/04 v1.0m Standard LaTeX package ) -\@indexfile=\write5 -\openout5 = `basic-book-builder.idx'. +\@indexfile=\write4 +\openout4 = `basic-book-builder.idx'. Writing index file basic-book-builder.idx @@ -1249,11 +1240,11 @@ Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO) (/usr/share/texlive/texmf-dist/tex/generic/gettitlestring/gettitlestring.sty Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO) ) -\c@section@level=\count348 +\c@section@level=\count345 ) \@linkdim=\dimen296 -\Hy@linkcounter=\count349 -\Hy@pagecounter=\count350 +\Hy@linkcounter=\count346 +\Hy@pagecounter=\count347 (/usr/share/texlive/texmf-dist/tex/latex/hyperref/pd1enc.def File: pd1enc.def 2022-11-13 v7.00u Hyperref: PDFDocEncoding definition (HO) @@ -1264,7 +1255,7 @@ Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO) (/usr/share/texlive/texmf-dist/tex/generic/etexcmds/etexcmds.sty Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO) ) -\Hy@SavedSpaceFactor=\count351 +\Hy@SavedSpaceFactor=\count348 (/usr/share/texlive/texmf-dist/tex/latex/hyperref/puenc.def File: puenc.def 2022-11-13 v7.00u Hyperref: PDF Unicode definition (HO) @@ -1277,7 +1268,7 @@ Package hyperref Info: Plain pages OFF on input line 4177. Package hyperref Info: Backreferencing OFF on input line 4182. Package hyperref Info: Implicit mode ON; LaTeX internals redefined. Package hyperref Info: Bookmarks ON on input line 4410. -\c@Hy@tempcnt=\count352 +\c@Hy@tempcnt=\count349 LaTeX Info: Redefining \url on input line 4748. \XeTeXLinkMargin=\dimen297 @@ -1288,7 +1279,7 @@ Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO) Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO ) )) -\Fld@menulength=\count353 +\Fld@menulength=\count350 \Field@Width=\dimen298 \Fld@charsize=\dimen299 Package hyperref Info: Hyper figures OFF on input line 6027. @@ -1303,9 +1294,9 @@ Package hyperref Info: PDF/A mode OFF on input line 6057. Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi package with kernel methods ) -\Hy@abspage=\count354 -\c@Item=\count355 -\c@Hfootnote=\count356 +\Hy@abspage=\count351 +\c@Item=\count352 +\c@Hfootnote=\count353 ) Package hyperref Info: Driver (autodetected): hxetex. @@ -1316,11 +1307,11 @@ File: hxetex.def 2022-11-13 v7.00u Hyperref driver for XeTeX Package: stringenc 2019/11/29 v1.12 Convert strings between diff. encodings (HO ) ) -\pdfm@box=\box92 -\c@Hy@AnnotLevel=\count357 -\HyField@AnnotCount=\count358 -\Fld@listcount=\count359 -\c@bookmark@seq@number=\count360 +\pdfm@box=\box91 +\c@Hy@AnnotLevel=\count354 +\HyField@AnnotCount=\count355 +\Fld@listcount=\count356 +\c@bookmark@seq@number=\count357 (/usr/share/texlive/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty Package: rerunfilecheck 2022-07-10 v1.10 Rerun checks for auxiliary files (HO) @@ -1340,9 +1331,9 @@ Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2 ) (/usr/share/texlive/texmf-dist/tex/latex/bookmark/bkm-dvipdfm.def File: bkm-dvipdfm.def 2020-11-06 v1.29 bookmark driver for dvipdfm (HO) -\BKM@id=\count361 +\BKM@id=\count358 )) -Package hyperref Info: Option `colorlinks' set `true' on input line 298. +Package hyperref Info: Option `colorlinks' set `true' on input line 289. (./basic-book-builder.aux @@ -1358,26 +1349,26 @@ LaTeX Warning: Label `ref-PandocIndex' multiply defined. ) \openout1 = `basic-book-builder.aux'. -LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. -LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 303. -LaTeX Font Info: ... okay on input line 303. +LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. +LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 294. +LaTeX Font Info: ... okay on input line 294. *geometry* driver: auto-detecting *geometry* detected driver: xetex @@ -1441,7 +1432,7 @@ t=math;language=dflt;" (fontspec) - 'bold small caps' (b/sc) with NFSS spec.: LaTeX Font Info: Font shape `TU/latinmodern-math.otf(0)/m/n' will be -(Font) scaled to size 14.92346pt on input line 303. +(Font) scaled to size 14.92346pt on input line 294. Package fontspec Info: latinmodern-math scale = 1.243617846722112. @@ -1480,18 +1471,18 @@ t=math;language=dflt;" (fontspec) - 'bold small caps' (b/sc) with NFSS spec.: LaTeX Font Info: Font shape `TU/latinmodern-math.otf(1)/m/n' will be -(Font) scaled to size 14.92346pt on input line 303. +(Font) scaled to size 14.92346pt on input line 294. LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font -(Font) `operators' in the math version `normal' on input line 303. +(Font) `operators' in the math version `normal' on input line 294. LaTeX Font Info: Overwriting symbol font `operators' in version `normal' (Font) OT1/lmr/m/n --> TU/latinmodern-math.otf(1)/m/n on input - line 303. + line 294. LaTeX Font Info: Encoding `OT1' has changed to `TU' for symbol font -(Font) `operators' in the math version `bold' on input line 303. +(Font) `operators' in the math version `bold' on input line 294. LaTeX Font Info: Overwriting symbol font `operators' in version `bold' (Font) OT1/lmr/bx/n --> TU/latinmodern-math.otf(1)/b/n on inpu -t line 303. +t line 294. Package fontspec Info: latinmodern-math scale = 1.243617846722112. @@ -1578,15 +1569,15 @@ t=math;language=dflt;" (fontspec) =0pt\relax \fontdimen 21\font =0pt\relax LaTeX Font Info: Encoding `OMS' has changed to `TU' for symbol font -(Font) `symbols' in the math version `normal' on input line 303. +(Font) `symbols' in the math version `normal' on input line 294. LaTeX Font Info: Overwriting symbol font `symbols' in version `normal' (Font) OMS/lmsy/m/n --> TU/latinmodern-math.otf(2)/m/n on inpu -t line 303. +t line 294. LaTeX Font Info: Encoding `OMS' has changed to `TU' for symbol font -(Font) `symbols' in the math version `bold' on input line 303. +(Font) `symbols' in the math version `bold' on input line 294. LaTeX Font Info: Overwriting symbol font `symbols' in version `bold' (Font) OMS/lmsy/b/n --> TU/latinmodern-math.otf(2)/b/n on inpu -t line 303. +t line 294. Package fontspec Info: latinmodern-math scale = 1.243617846722112. @@ -1655,22 +1646,22 @@ ath.otf]/OT:script=math;language=dflt;+ssty=1;" (fontspec) =8.95407pt\relax \fontdimen 13\font =0pt\relax LaTeX Font Info: Encoding `OMX' has changed to `TU' for symbol font -(Font) `largesymbols' in the math version `normal' on input line 3 -03. +(Font) `largesymbols' in the math version `normal' on input line 2 +94. LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal' (Font) OMX/lmex/m/n --> TU/latinmodern-math.otf(3)/m/n on inpu -t line 303. +t line 294. LaTeX Font Info: Encoding `OMX' has changed to `TU' for symbol font -(Font) `largesymbols' in the math version `bold' on input line 303 +(Font) `largesymbols' in the math version `bold' on input line 294 . LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold' (Font) OMX/lmex/m/n --> TU/latinmodern-math.otf(3)/b/n on inpu -t line 303. -LaTeX Info: Redefining \microtypecontext on input line 303. -Package microtype Info: Applying patch `item' on input line 303. -Package microtype Info: Applying patch `toc' on input line 303. -Package microtype Info: Applying patch `eqnum' on input line 303. -Package microtype Info: Applying patch `footnote' on input line 303. +t line 294. +LaTeX Info: Redefining \microtypecontext on input line 294. +Package microtype Info: Applying patch `item' on input line 294. +Package microtype Info: Applying patch `toc' on input line 294. +Package microtype Info: Applying patch `eqnum' on input line 294. +Package microtype Info: Applying patch `footnote' on input line 294. Package microtype Info: Character protrusion enabled (level 2). Package microtype Info: Using protrusion set `basicmath'. Package microtype Info: No adjustment of tracking. @@ -1680,14 +1671,14 @@ Package microtype Info: Loading generic protrusion settings for font family (microtype) `NotoSerif' (encoding: TU). (microtype) For optimal results, create family-specific settings. (microtype) See the microtype manual for details. -\c@lstlisting=\count362 -Package hyperref Info: Link coloring ON on input line 303. +\c@lstlisting=\count359 +Package hyperref Info: Link coloring ON on input line 294. LaTeX Font Info: Font shape `TU/NotoSerif(0)/m/n' will be -(Font) scaled to size 24.88pt on input line 314. +(Font) scaled to size 24.88pt on input line 305. LaTeX Font Info: Font shape `TU/NotoSerif(0)/b/n' will be -(Font) scaled to size 24.88pt on input line 314. +(Font) scaled to size 24.88pt on input line 305. LaTeX Font Info: Font shape `TU/NotoSerif(0)/m/n' will be -(Font) scaled to size 17.28pt on input line 316. +(Font) scaled to size 17.28pt on input line 307. File: lib/img/UAF-ACEP.png Graphic file (type bmp) [1 @@ -1696,31 +1687,31 @@ File: lib/img/UAF-ACEP.png Graphic file (type bmp) ] LaTeX Font Info: Font shape `TU/NotoSerif(0)/b/n' will be -(Font) scaled to size 17.28pt on input line 331. +(Font) scaled to size 17.28pt on input line 322. LaTeX Font Info: Font shape `TU/NotoSerif(0)/m/it' will be -(Font) scaled to size 12.0pt on input line 333. +(Font) scaled to size 12.0pt on input line 324. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(1)/m/n' will be -(Font) scaled to size 10.44641pt on input line 338. +(Font) scaled to size 10.44641pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(1)/m/n' will be -(Font) scaled to size 7.46173pt on input line 338. +(Font) scaled to size 7.46173pt on input line 329. LaTeX Font Info: Trying to load font information for OML+lmm on input line 3 -38. +29. (/usr/share/texmf/tex/latex/lm/omllmm.fd File: omllmm.fd 2015/05/01 v1.6.1 Font defs for Latin Modern ) LaTeX Font Info: Font shape `TU/latinmodern-math.otf(2)/m/n' will be -(Font) scaled to size 14.92493pt on input line 338. +(Font) scaled to size 14.92493pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(2)/m/n' will be -(Font) scaled to size 10.44743pt on input line 338. +(Font) scaled to size 10.44743pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(2)/m/n' will be -(Font) scaled to size 7.46246pt on input line 338. +(Font) scaled to size 7.46246pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(3)/m/n' will be -(Font) scaled to size 14.922pt on input line 338. +(Font) scaled to size 14.922pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(3)/m/n' will be -(Font) scaled to size 10.44539pt on input line 338. +(Font) scaled to size 10.44539pt on input line 329. LaTeX Font Info: Font shape `TU/latinmodern-math.otf(3)/m/n' will be -(Font) scaled to size 7.461pt on input line 338. -LaTeX Font Info: Trying to load font information for U+msa on input line 338 +(Font) scaled to size 7.461pt on input line 329. +LaTeX Font Info: Trying to load font information for U+msa on input line 329 . (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd @@ -1729,7 +1720,7 @@ File: umsa.fd 2013/01/14 v3.01 AMS symbols A (/usr/share/texlive/texmf-dist/tex/latex/microtype/mt-msa.cfg File: mt-msa.cfg 2006/02/04 v1.1 microtype config. file: AMS symbols (a) (RS) ) -LaTeX Font Info: Trying to load font information for U+msb on input line 338 +LaTeX Font Info: Trying to load font information for U+msb on input line 329 . (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd @@ -1739,15 +1730,15 @@ File: umsb.fd 2013/01/14 v3.01 AMS symbols B File: mt-msb.cfg 2005/06/01 v1.0 microtype config. file: AMS symbols (b) (RS) ) LaTeX Font Info: Font shape `TU/NotoSerif(0)/b/n' will be -(Font) scaled to size 12.0pt on input line 339. +(Font) scaled to size 12.0pt on input line 330. LaTeX Font Info: Font shape `TU/NotoSerif(0)/m/n' will be -(Font) scaled to size 14.4pt on input line 358. +(Font) scaled to size 14.4pt on input line 349. LaTeX Font Info: Font shape `TU/NotoSerif(0)/b/n' will be -(Font) scaled to size 14.4pt on input line 358. +(Font) scaled to size 14.4pt on input line 349. [2] (./basic-book-builder.toc) -\tf@toc=\write6 -\openout6 = `basic-book-builder.toc'. +\tf@toc=\write5 +\openout5 = `basic-book-builder.toc'. [1 @@ -1761,51 +1752,57 @@ Chapter 1. ] Chapter 2. LaTeX Font Info: Font shape `TU/NotoSansMono(0)/m/n' will be -(Font) scaled to size 12.0pt on input line 445. +(Font) scaled to size 12.0pt on input line 433. + +Overfull \hbox (10.34296pt too wide) in paragraph at lines 434--434 +[]\TU/NotoSansMono(0)/m/n/12 git clone https://github.com/jehaverlack/basic-boo +k-builder.git[] + [] + [2 -] -Underfull \hbox (badness 10000) in alignment at lines 488--496 +] [3] +Underfull \hbox (badness 10000) in alignment at lines 479--487 [] [] [] -Underfull \hbox (badness 10000) in alignment at lines 496--498 +Underfull \hbox (badness 10000) in alignment at lines 487--489 [] [] [] -Overfull \hbox (1.68248pt too wide) in paragraph at lines 502--502 +Overfull \hbox (1.68248pt too wide) in paragraph at lines 493--493 []|\TU/NotoSerif(0)/b/n/12 Bibliography| [] -Underfull \hbox (badness 10000) in alignment at lines 498--550 +Underfull \hbox (badness 10000) in alignment at lines 489--541 [] [] [] -[3 +[4 -] [4] (./basic-book-builder.ind) [5 +] [5] (./basic-book-builder.ind) [6 -] [6 +] [7 ] -Underfull \hbox (badness 3977) in paragraph at lines 585--587 +Underfull \hbox (badness 3977) in paragraph at lines 576--578 []\TU/NotoSerif(0)/m/it/12 John Haverlack | ACEP\TU/NotoSerif(0)/m/n/12 . n.d. Https://www.uaf.edu/acep/about/our-team/john- [] -Underfull \hbox (badness 3977) in paragraph at lines 597--599 +Underfull \hbox (badness 3977) in paragraph at lines 588--590 []\TU/NotoSerif(0)/m/it/12 John Haverlack | ACEP\TU/NotoSerif(0)/m/n/12 . n.d. Https://www.uaf.edu/acep/about/our-team/john- [] -[7 +[8 -] [8 +] [9 ] (./basic-book-builder.aux) @@ -1813,12 +1810,12 @@ LaTeX Warning: There were multiply-defined labels. ) Here is how much of TeX's memory you used: - 36419 strings out of 478775 - 751624 string characters out of 5850945 + 36014 strings out of 478775 + 745203 string characters out of 5850945 1858991 words of memory out of 5000000 - 55842 multiletter control sequences out of 15000+600000 + 55441 multiletter control sequences out of 15000+600000 516036 words of font info for 92 fonts, out of 8000000 for 9000 14 hyphenation exceptions out of 8191 90i,11n,122p,1015b,948s stack positions out of 10000i,1000n,20000p,200000b,200000s -Output written on basic-book-builder.pdf (12 pages). +Output written on basic-book-builder.pdf (13 pages). diff --git a/build/latex/basic-book-builder.pdf b/build/latex/basic-book-builder.pdf index ce4786e..2bc4a14 100644 Binary files a/build/latex/basic-book-builder.pdf and b/build/latex/basic-book-builder.pdf differ diff --git a/build/latex/basic-book-builder.tex b/build/latex/basic-book-builder.tex index a6bd938..91e4e11 100644 --- a/build/latex/basic-book-builder.tex +++ b/build/latex/basic-book-builder.tex @@ -42,44 +42,6 @@ }{% if KOMA class \KOMAoptions{parskip=half}} \makeatother -\usepackage{color} -\usepackage{fancyvrb} -\newcommand{\VerbBar}{|} -\newcommand{\VERB}{\Verb[commandchars=\\\{\}]} -\DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\}} -% Add ',fontsize=\small' for more characters per line -\newenvironment{Shaded}{}{} -\newcommand{\AlertTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}} -\newcommand{\AnnotationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}} -\newcommand{\AttributeTok}[1]{\textcolor[rgb]{0.49,0.56,0.16}{#1}} -\newcommand{\BaseNTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}} -\newcommand{\BuiltInTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{#1}} -\newcommand{\CharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}} -\newcommand{\CommentTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textit{#1}}} -\newcommand{\CommentVarTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}} -\newcommand{\ConstantTok}[1]{\textcolor[rgb]{0.53,0.00,0.00}{#1}} -\newcommand{\ControlFlowTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}} -\newcommand{\DataTypeTok}[1]{\textcolor[rgb]{0.56,0.13,0.00}{#1}} -\newcommand{\DecValTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}} -\newcommand{\DocumentationTok}[1]{\textcolor[rgb]{0.73,0.13,0.13}{\textit{#1}}} -\newcommand{\ErrorTok}[1]{\textcolor[rgb]{1.00,0.00,0.00}{\textbf{#1}}} -\newcommand{\ExtensionTok}[1]{#1} -\newcommand{\FloatTok}[1]{\textcolor[rgb]{0.25,0.63,0.44}{#1}} -\newcommand{\FunctionTok}[1]{\textcolor[rgb]{0.02,0.16,0.49}{#1}} -\newcommand{\ImportTok}[1]{\textcolor[rgb]{0.00,0.50,0.00}{\textbf{#1}}} -\newcommand{\InformationTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}} -\newcommand{\KeywordTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{\textbf{#1}}} -\newcommand{\NormalTok}[1]{#1} -\newcommand{\OperatorTok}[1]{\textcolor[rgb]{0.40,0.40,0.40}{#1}} -\newcommand{\OtherTok}[1]{\textcolor[rgb]{0.00,0.44,0.13}{#1}} -\newcommand{\PreprocessorTok}[1]{\textcolor[rgb]{0.74,0.48,0.00}{#1}} -\newcommand{\RegionMarkerTok}[1]{#1} -\newcommand{\SpecialCharTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}} -\newcommand{\SpecialStringTok}[1]{\textcolor[rgb]{0.73,0.40,0.53}{#1}} -\newcommand{\StringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}} -\newcommand{\VariableTok}[1]{\textcolor[rgb]{0.10,0.09,0.49}{#1}} -\newcommand{\VerbatimStringTok}[1]{\textcolor[rgb]{0.25,0.44,0.63}{#1}} -\newcommand{\WarningTok}[1]{\textcolor[rgb]{0.38,0.63,0.69}{\textbf{\textit{#1}}}} \usepackage{longtable,booktabs,array} \newcounter{none} % for unnumbered tables \usepackage{calc} % for calculating minipage widths @@ -158,6 +120,8 @@ \usepackage{xcolor} \definecolor{speculativeback}{RGB}{247,232,255} % #f7e8ff \definecolor{speculativeframe}{RGB}{139,43,226} % #8b2be2 +\definecolor{lightgrayback}{RGB}{245,245,245} +\definecolor{lightgrayframe}{RGB}{180,180,180} % --- Left-align all Pandoc tables --- \usepackage{longtable} @@ -257,6 +221,33 @@ after=\par\vspace{6pt} } + +% ========================================================= +% Code / CLI Boxes +% ========================================================= + +\newtcolorbox{codebox}[1][Code]{% + title=\ifstrempty{#1}{\blanktitle}{#1}, + colback=lightgrayback, + colframe=lightgrayframe, + colbacktitle=lightgrayback!90!white, + fonttitle=\bfseries, + coltitle=black, + enhanced, sharp corners, breakable, + after=\par\vspace{6pt} +} + +\newtcolorbox{clibox}[1][Command Line]{% + title=\ifstrempty{#1}{\blanktitle}{#1}, + colback=lightgrayback, + colframe=lightgrayframe, + colbacktitle=lightgrayback!90!white, + fonttitle=\bfseries, + coltitle=black, + enhanced, sharp corners, breakable, + after=\par\vspace{6pt} +} + \usepackage{xurl} \usepackage{fancyhdr} @@ -438,23 +429,26 @@ Haverlack.(\citeproc{ref-JohnHaverlackACEP}{\emph{John {Haverlack} \section{Cloning the Basic Book Builder}\label{cloning-the-basic-book-builder} -\begin{quote} -{[}!cli{]} Cloning the repository +\begin{clibox}[Cloning the repository] +\begin{verbatim} +git clone https://github.com/jehaverlack/basic-book-builder.git +\end{verbatim} -\begin{Shaded} -\begin{Highlighting}[] -\FunctionTok{git}\NormalTok{ clone https://github.com/jehaverlack/basic{-}book{-}builder.git} -\end{Highlighting} -\end{Shaded} -\end{quote} - -\begin{quote} -{[}!cli{]} Navigate to the repo directory +\end{clibox} +\begin{clibox}[Navigate to the repo directory] \begin{verbatim} cd basic-book-builder \end{verbatim} -\end{quote} + +\end{clibox} + +\begin{codebox}[Code Example] +\begin{verbatim} +if then else +\end{verbatim} + +\end{codebox} \section{Setting Up Build Environment}\label{setting-up-build-environment} @@ -464,15 +458,12 @@ This script only support Debian based linux system (Debian, Ubunutu, Zorin, etc) This script has not been widely tested across platforms \end{cautionbox} -\begin{quote} -{[}!cli{]} Setup Build Environment +\begin{clibox}[Setup Build Environment] +\begin{verbatim} +./scripts/setup-linux-deb.sh +\end{verbatim} -\begin{Shaded} -\begin{Highlighting}[] -\ExtensionTok{./scripts/setup{-}linux{-}deb.sh} -\end{Highlighting} -\end{Shaded} -\end{quote} +\end{clibox} For more information on setting up the build environment for your system see Appendix A. diff --git a/build/latex/basic-book-builder.toc b/build/latex/basic-book-builder.toc index f4b7540..94c6f6f 100644 --- a/build/latex/basic-book-builder.toc +++ b/build/latex/basic-book-builder.toc @@ -2,6 +2,6 @@ \contentsline {chapter}{\numberline {2}Getting Started}{2}{chapter.2}% \contentsline {section}{\numberline {2.1}Cloning the Basic Book Builder}{2}{section.2.1}% \contentsline {section}{\numberline {2.2}Setting Up Build Environment}{2}{section.2.2}% -\contentsline {chapter}{Glossary}{3}{chapter*.4}% -\contentsline {chapter}{Index}{5}{chapter*.5}% -\contentsline {chapter}{Bibliography}{7}{chapter*.6}% +\contentsline {chapter}{Glossary}{4}{chapter*.4}% +\contentsline {chapter}{Index}{6}{chapter*.5}% +\contentsline {chapter}{Bibliography}{8}{chapter*.6}% diff --git a/build/pdf/basic-book-builder.pdf b/build/pdf/basic-book-builder.pdf index ce4786e..2bc4a14 100644 Binary files a/build/pdf/basic-book-builder.pdf and b/build/pdf/basic-book-builder.pdf differ diff --git a/chapters/01_Getting_Started.md b/chapters/01_Getting_Started.md index 9ac2ae4..fab6121 100644 --- a/chapters/01_Getting_Started.md +++ b/chapters/01_Getting_Started.md @@ -4,7 +4,7 @@ > [!cli] Cloning the repository -> ```bash +> ``` > git clone https://github.com/jehaverlack/basic-book-builder.git > ``` @@ -14,6 +14,11 @@ > cd basic-book-builder > ``` +> [!code] Code Example +> ``` +> if then else +> ``` + ## Setting Up Build Environment @@ -24,7 +29,7 @@ > [!cli] Setup Build Environment -> ```bash +> ``` > ./scripts/setup-linux-deb.sh > ``` diff --git a/filters/callouts.lua b/filters/callouts.lua index c0c0905..281bd89 100644 --- a/filters/callouts.lua +++ b/filters/callouts.lua @@ -1,14 +1,15 @@ -- Map callout types to LaTeX environments local callout_env_map = { - idea = "ideabox", - proposed = "proposedbox", - established = "establishedbox", - speculative = "speculativebox", - caution = "cautionbox", - warning = "warningbox", - danger = "dangerbox" - } - + idea = "ideabox", + proposed = "proposedbox", + established = "establishedbox", + speculative = "speculativebox", + caution = "cautionbox", + warning = "warningbox", + danger = "dangerbox", + code = "codebox", + cli = "clibox" +} function BlockQuote(el) if #el.content > 0 and el.content[1].t == "Para" then diff --git a/templates/header.tex b/templates/header.tex index 0181b07..82fbfb1 100644 --- a/templates/header.tex +++ b/templates/header.tex @@ -14,6 +14,8 @@ \usepackage{xcolor} \definecolor{speculativeback}{RGB}{247,232,255} % #f7e8ff \definecolor{speculativeframe}{RGB}{139,43,226} % #8b2be2 +\definecolor{lightgrayback}{RGB}{245,245,245} +\definecolor{lightgrayframe}{RGB}{180,180,180} % --- Left-align all Pandoc tables --- \usepackage{longtable} @@ -113,6 +115,33 @@ after=\par\vspace{6pt} } + +% ========================================================= +% Code / CLI Boxes +% ========================================================= + +\newtcolorbox{codebox}[1][Code]{% + title=\ifstrempty{#1}{\blanktitle}{#1}, + colback=lightgrayback, + colframe=lightgrayframe, + colbacktitle=lightgrayback!90!white, + fonttitle=\bfseries, + coltitle=black, + enhanced, sharp corners, breakable, + after=\par\vspace{6pt} +} + +\newtcolorbox{clibox}[1][Command Line]{% + title=\ifstrempty{#1}{\blanktitle}{#1}, + colback=lightgrayback, + colframe=lightgrayframe, + colbacktitle=lightgrayback!90!white, + fonttitle=\bfseries, + coltitle=black, + enhanced, sharp corners, breakable, + after=\par\vspace{6pt} +} + \usepackage{xurl} \usepackage{fancyhdr}