diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 46e5392..fc886ea 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -20,23 +20,8 @@ "icon": "lucide-file", "title": "00_Introduction" } - }, - { - "id": "09afe60c287c13ed", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "chapters/00_Introduction.md", - "mode": "source", - "source": false - }, - "icon": "lucide-file", - "title": "00_Introduction" - } } - ], - "currentTab": 1 + ] } ], "direction": "vertical" @@ -235,6 +220,16 @@ { "id": "e9804fd12413705d", "type": "leaf", + "state": { + "type": "mathpad-view", + "state": {}, + "icon": "lucide-ghost", + "title": "mathpad-view" + } + }, + { + "id": "1e80d66b61fedf35", + "type": "leaf", "state": { "type": "mathpad-view", "state": {}, @@ -247,8 +242,7 @@ } ], "direction": "horizontal", - "width": 200, - "collapsed": true + "width": 200 }, "left-ribbon": { "hiddenItems": { @@ -263,16 +257,26 @@ "obsidian-kanban:Create new board": false } }, - "active": "09afe60c287c13ed", + "active": "c8db6b72741a9d4b", "lastOpenFiles": [ - "README.md", + "conf/sedcoz12V", + "build/lib/diag", + "build/lib/img/ACEP Logo for Canvas.png", + "build/lib/img/ACEP Logo.png", + "build/lib/img/ACEP-50px.png", + "build/lib/img/ACEP.png", + "build/lib/img/ACEPLogo.png", + "build/lib/img/UAF.png", + "build/lib/img/UAFLogo_A_black.png", + "build/lib/img/UAFLogo_A_blue.png", "chapters/02_Chapter2.md", + "chapters/01_Chapter1.md", + "chapters/00_Introduction.md", + "README.md", "build/b3.epub", "build/Paths-to-Perception.epub", "build/media", "chapters/Citations.md", - "chapters/01_Chapter1.md", - "chapters/00_Introduction.md", "chapters/Terminology.md", "lib/old-citations.bib", "build/b3.html", @@ -280,17 +284,8 @@ "build/Paths-to-Perception.tex", "build/Paths-to-Perception.html", "build/conf/style.css", - "build/lib/mathjax/ui/safe.js", "build/lib/img/unit-circle-with-tau.png", "build/lib/img/unit-circle-with-pi.png.png", - "build/lib/img/unit-circle-with-pi.png", - "build/lib/img/udir-proximity.png", - "build/lib/img/directed-proximity.png", - "build/lib/img/Unit_circle_angles_color.png", - "build/lib/img/Revolving_circles.svg", - "build/lib/img/Revolving_circles.480x480_white.png", - "build/lib/img/Revolving_circles.480x480.png", - "build/lib/img/Poo.png", "pm/Book Action Items.md", "chapters/Unitfication.md", "chapters/03_Cylindrical_Spacetime.md", diff --git a/Makefile b/Makefile index 05fee03..0aec9e8 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,36 @@ PANDOC = pandoc BASE = conf/pandoc.yaml -all: build/pdf build/epub build/html +all: pdf epub html latex markdown pdf: @mkdir -p build + @scripts/build-frontmatter.sh conf/metadata.yaml templates/frontmatter.tex conf/frontmatter.tex $(PANDOC) --defaults=$(BASE) --defaults=conf/pdf.yaml epub: @mkdir -p build/media + # @scripts/build-frontmatter.sh conf/metadata.yaml templates/frontmatter.html conf/frontmatter.html $(PANDOC) --defaults=$(BASE) --defaults=conf/epub.yaml html: @mkdir -p build/lib/img build/lib/mathjax build/conf cp -r lib/img build/lib/ + cp -r lib/diag build/lib/ cp -r lib/mathjax build/lib/ cp conf/style.css build/conf/ + @scripts/build-frontmatter.sh conf/metadata.yaml templates/frontmatter.html conf/frontmatter.html $(PANDOC) --defaults=$(BASE) --defaults=conf/html.yaml latex: @mkdir -p build - pandoc --defaults=$(BASE) --defaults=conf/latex.yaml + # @scripts/build-frontmatter.sh conf/metadata.yaml templates/frontmatter.tex conf/frontmatter.tex + $(PANDOC) --defaults=$(BASE) --defaults=conf/latex.yaml + +markdown: + @mkdir -p build + # @scripts/build-frontmatter.sh conf/metadata.yaml templates/frontmatter.tex conf/frontmatter.tex + $(PANDOC) --defaults=$(BASE) -t gfm -o build/ClearSkies.md clean: rm -rf build diff --git a/README.md b/README.md index 28d76d0..1bdf046 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# beautiful-book-builder +# basic-book-builder (b3) -This is a basic book builder template based on a Pandoc build process in conjunction with a number of other tools to generate PDF, ODT, HTML, LaTex, and Epub book formats from Markdown source content in an Obsidian vault. +This is a basic book (article) builder template based on a Pandoc build process in conjunction with a number of other tools to generate PDF, ODT, HTML, LaTex, and Epub book formats from Markdown source content in an Obsidian vault. ## Directory Structure ``` -beautiful-book-builder/ +basic-book-builder/ ├── build (Target Destination for Final Outputs) ├── chapters (Input Content for the Book) ├── conf (Configuration for the Pandoc Builds) @@ -76,7 +76,7 @@ Install the Better BibTex Plugin for Zotero - Zotero > File > Export Library > Format: Better BibTeX - [ ] Keep Updated - [ ] Save to: ~/Documents/Lib/Citations.bib -- [ ] Symlink your ~/Documents/Lib/Citations.bib to beautiful-book-builder/lib/citations.bib +- [ ] Symlink your ~/Documents/Lib/Citations.bib to basic-book-builder/lib/citations.bib #### Zotero Connector Browser Plugin @@ -104,6 +104,14 @@ sudo apt install https://github.com/jgm/pandoc/releases/download/3.8.2.1/pandoc- ``` sudo apt install make ``` + +#### jq and yq + +``` +sudo apt install jq yq +``` + + #### texlive ``` @@ -188,7 +196,7 @@ There are 2 Version of the FrontMatter for PDF, and HTML bases formats that set ### Editing Content -To edit the book open the `beautiful-book-builder` directory as an Obsidian Vault. +To edit the book open the `basic-book-builder` directory as an Obsidian Vault. - Edit the Markdown content in the `chapters` directory. diff --git a/build.sh b/build.sh deleted file mode 100755 index b50d0d2..0000000 --- a/build.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -# set -e - -# echo "=== Building PDF ===" -# pandoc --defaults=pandoc.yaml -o build/Paths-to-Perception.pdf - -# echo "=== Building EPUB ===" -# pandoc --defaults=pandoc.yaml \ -# # --mathjax \ -# -t epub \ -# --epub-cover-image=lib/img/Revolving_circles.480x480_white.png \ -# -o build/Paths-to-Perception.epub - -# echo "=== Building HTML ===" -# pandoc --defaults=pandoc.yaml \ -# # --mathjax \ -# -t html5 \ -# -s \ -# -o build/Paths-to-Perception.html - -# echo "=== Done ===" - -# # Open PDF automatically if on macOS -# if command -v open >/dev/null; then -# open build/Paths-to-Perception.pdf -# fi - - -set -e - -echo "=== PDF ===" -pandoc --defaults=conf/pandoc.yaml --defaults=conf/pdf.yaml - -echo "=== EPUB ===" -pandoc --defaults=conf/pandoc.yaml --defaults=conf/epub.yaml \ - --epub-cover-image=lib/img/Revolving_circles.480x480_white.png - -echo "=== HTML ===" -pandoc --defaults=conf/pandoc.yaml --defaults=conf/html.yaml - -echo "✅ All formats built in ./build" diff --git a/build/b3.epub b/build/b3.epub index 14497e1..23f4579 100644 Binary files a/build/b3.epub and b/build/b3.epub differ diff --git a/build/b3.html b/build/b3.html index 58bbb23..2ba0443 100644 --- a/build/b3.html +++ b/build/b3.html @@ -102,58 +102,31 @@
+
© 2025 — CC BY-ND 4.0
Title: Basic Book Builder
+Subtitle: A Pandoc Template for building books and articles
+Affiliation: Alaska Center for Energy and Power
+Institution: University of Alaska Fairbanks
Author: John Haverlack
-Copyright: © 2025 John Haverlack
+Copyright: © 2025 Alaska Center for Energy and Power
License: CC BY-ND 4.0
-Version: 0.0.1
-Date: 2025-11-05
-
-
- “Revolving Circles.” n.d. Accessed October 31, 2025.
- Wikipedia source
-
- The cover image presents a visual illusion of motion. When you focus on the - central point and move the page toward or away from your eyes, the concentric - circles appear to rotate. -
- -- This reflects a central theme of this work: perception shapes what we think of as - “reality.” In this illusion, motion exists only in our minds. We perceive, we do - not directly know; our brains construct experience. -
- +Version: 0.0.2
+Date: 2025-11-11
+State: PRE-RELEASE
+Source: https://github.com/jehaverlack/basic-book-builder
This book builder template was currated by John Haverlack.This book builder template has been curated by John Haverlack.(“John Haverlack ACEP” n.d.)
@@ -243,6 +216,19 @@ disprove. class="math inline">c = 1: E2 = m02 + p2Or Warnings…
+Caution Note
+Beware of this section.
+Warning Note
+Beware of this section.
+Alerts
+Extreme Highlight
+Blah blah blah
Or, with c = 1, this is much simpler to understand. Energy = Mass
-E = m0 -##### Zero mass objects moving at the speed of light And for objects -with no mass, like photos, (E = m0
+And for objects with no mass, like photos, (m0 = 0):
E = pc
diff --git a/build/b3.pdf b/build/b3.pdf index eb56942..9013be4 100644 Binary files a/build/b3.pdf and b/build/b3.pdf differ diff --git a/build/b3.tex b/build/b3.tex index 1741a99..e141fbe 100644 --- a/build/b3.tex +++ b/build/b3.tex @@ -255,6 +255,17 @@ Speculative Concept With the speed of light, \(c = 1\): \[E^2 = m_{0}^2 + p^2 \] \end{speculativebox} +\hypertarget{citation-example}{% +\chapter{Citation Example}\label{citation-example}} + +\begin{itemize} +\tightlist +\item + Numerical Linear + Algebra(\protect\hyperlink{ref-trefethenNumericalLinearAlgebra2022a}{Trefethen + and Bau 2022}) +\end{itemize} + \hypertarget{best-words-ever}{% \chapter{Best Words Ever}\label{best-words-ever}} @@ -827,6 +838,11 @@ Rν lP = (2.77455e-47)*sqrt(m^3/kg) https://www.uaf.edu/acep/about/our-team/john-haverlack.php. Accessed September 30, 2025. +\leavevmode\vadjust pre{\hypertarget{ref-trefethenNumericalLinearAlgebra2022a}{}}% +Trefethen, Lloyd N., and III David Bau. 2022. \emph{Numerical {Linear +Algebra}: {Twenty-Fifth Anniversary Edition}}. Philadelphia, PA: +{SIAM-Society for Industrial and Applied Mathematics}. + \end{CSLReferences} \backmatter diff --git a/build/conf/style.css b/build/conf/style.css index 41b6986..d95c397 100644 --- a/build/conf/style.css +++ b/build/conf/style.css @@ -79,7 +79,10 @@ ul, ol { .callout-established, .callout-proposed, -.callout-speculative { +.callout-speculative, +.callout-caution, +.callout-warning, +.callout-danger { border-radius: 6px; padding: 5px; /* internal padding */ margin-top: 5px; /* external spacing tightened */ @@ -91,7 +94,10 @@ ul, ol { /* Title line */ .callout-established p:first-child strong, .callout-proposed p:first-child strong, -.callout-speculative p:first-child strong { +.callout-speculative p:first-child strong, +.callout-caution p:first-child strong, +.callout-warning p:first-child strong, +.callout-danger p:first-child strong { display: block; font-family: "Libertinus Sans", sans-serif; font-weight: 600; @@ -102,7 +108,10 @@ ul, ol { /* Paragraphs inside callouts */ .callout-established p, .callout-proposed p, -.callout-speculative p { +.callout-speculative p, +.callout-caution p, +.callout-warning p, +.callout-danger p { margin-top: 5px; margin-bottom: 5px; line-height: 1.45; /* slightly condensed text spacing */ @@ -111,19 +120,28 @@ ul, ol { /* Remove top margin on first paragraph, bottom on last */ .callout-established p:first-child, .callout-proposed p:first-child, -.callout-speculative p:first-child { +.callout-speculative p:first-child, +.callout-caution p:first-child, +.callout-warning p:first-, +.callout-danger p:first-child { margin-top: 0; } .callout-established p:last-child, .callout-proposed p:last-child, -.callout-speculative p:last-child { +.callout-speculative p:last-child, +.callout-caution p:last-child, +.callout-warning p:last-child, +.callout-danger p:last-child { margin-bottom: 0; } /* Math inside callouts */ .callout-established .math.display, .callout-proposed .math.display, -.callout-speculative .math.display { +.callout-speculative .math.display, +.callout-caution .math.display, +.callout-warning .math.display, +.callout-danger .math.display { margin: 0.4em 0; } @@ -141,6 +159,20 @@ ul, ol { border-left-color: #8b2be2; } +.callout-caution { + background: #fff0e8; + border-left-color: #f5a22f; +} + +.callout-warning { + background: #fff0e8; + border-left-color: #f5a22f; +} + +.callout-danger { + background: #ffe8e8; + border-left-color: #d83b3a; +} /* ------------------------------ Images (in body content) @@ -183,3 +215,30 @@ code { border-radius: 4px; font-size: 0.95em; } + +/* Force all header cells to left-align their text */ +table thead th { + text-align: left !important; + vertical-align: bottom; /* optional: aligns nicely with text baseline */ + padding: 4px 8px; /* optional: consistent spacing */ +} + +/* Make data cells match if you want consistent left alignment */ +table tbody td { + text-align: left; + padding: 4px 8px; +} + +/* Optional: keep math inline nicely aligned */ +table td .math, +table th .math { + display: inline-block; + vertical-align: baseline; +} + +/* Optional: make math display nicely aligned */ +table td .math.display, +table th .math.display { + display: block; + margin: 0.4em 0; +} diff --git a/build/lib/img/ACEP Logo for Canvas.png b/build/lib/img/ACEP Logo for Canvas.png new file mode 100644 index 0000000..2a8c398 Binary files /dev/null and b/build/lib/img/ACEP Logo for Canvas.png differ diff --git a/build/lib/img/ACEP Logo.png b/build/lib/img/ACEP Logo.png new file mode 100644 index 0000000..220a4a6 Binary files /dev/null and b/build/lib/img/ACEP Logo.png differ diff --git a/build/lib/img/ACEP-50px.png b/build/lib/img/ACEP-50px.png new file mode 100644 index 0000000..2bc5f56 Binary files /dev/null and b/build/lib/img/ACEP-50px.png differ diff --git a/build/lib/img/ACEP.png b/build/lib/img/ACEP.png new file mode 100644 index 0000000..b479164 Binary files /dev/null and b/build/lib/img/ACEP.png differ diff --git a/build/lib/img/ACEPLogo.png b/build/lib/img/ACEPLogo.png new file mode 100644 index 0000000..220a4a6 Binary files /dev/null and b/build/lib/img/ACEPLogo.png differ diff --git a/build/lib/img/UAF.png b/build/lib/img/UAF.png new file mode 100644 index 0000000..c33780a Binary files /dev/null and b/build/lib/img/UAF.png differ diff --git a/build/lib/img/UAFLogo_A_black.png b/build/lib/img/UAFLogo_A_black.png new file mode 100644 index 0000000..c9249f6 Binary files /dev/null and b/build/lib/img/UAFLogo_A_black.png differ diff --git a/build/lib/img/UAFLogo_A_blue.png b/build/lib/img/UAFLogo_A_blue.png new file mode 100644 index 0000000..fa625fa Binary files /dev/null and b/build/lib/img/UAFLogo_A_blue.png differ diff --git a/chapters/00_Introduction.md b/chapters/00_Introduction.md index 8095736..e2718d6 100644 --- a/chapters/00_Introduction.md +++ b/chapters/00_Introduction.md @@ -1,6 +1,8 @@ # Introduction -This book builder template was currated by John Haverlack.[@JohnHaverlackACEP] +This book builder template has been curated by John Haverlack.[@JohnHaverlackACEP] + + > “*If I have seen further it is by standing on the shoulders of Giants.*” @@ -32,3 +34,15 @@ Speculative Idea, that the author wonders about, but does not know how to demons > [!speculative] Speculative Concept With the speed of light, $c = 1$: $$E^2 = m_{0}^2 + p^2 $$ + +Or Warnings... + +> [!caution] Caution Note +> Beware of this section. + +> [!warning] Warning Note +> Beware of this section. + +> [!danger] Alerts +> Extreme Highlight + diff --git a/chapters/02_Chapter2.md b/chapters/02_Chapter2.md index 816c9c8..cca63c2 100644 --- a/chapters/02_Chapter2.md +++ b/chapters/02_Chapter2.md @@ -36,6 +36,7 @@ $c = 299792458 \frac{m}{s} = 299792458 \frac{m}{s} \cdot 1.74542\times10^{34} \f | Unit Cycle | $\Theta$ | $2\pi = 6.28318...\ Radians$ | $1 \tau = 6.28318...\ Radians$ | ## Fine Structure Constant + As a consistency check, we compute the _[Fine Structure Constant](https://en.wikipedia.org/wiki/Fine-structure_constant)_ using Reduced Natural Units which is a unit less ratio that should be independent of our system of units. $\huge{\alpha=\frac{e^2}{4\pi\epsilon_o\hbar c}=\frac{e^2}{2\tau}=0.00729735≈\frac{1}{137}}$ @@ -111,6 +112,7 @@ From this we can see that Energy, Momentum and Mass have equivalent units. > _While we do not really know what energy, mass and momentum are we know that they are fundamentally “made” out of the same stuff because they have the same units._ ##### Objects of mass at rest + For an object at rest with no momentum ($p = 0$) we see Einstein's famous equations: $E = m_{0} \cdot c^2$ @@ -118,7 +120,9 @@ $E = m_{0} \cdot c^2$ Or, with $c=1$, this is much simpler to understand. Energy = Mass $E = m_0$ + ##### Zero mass objects moving at the speed of light + And for objects with no mass, like photos, ($m_{0}= 0$): $E=pc$ diff --git a/conf/frontmatter.html b/conf/frontmatter.html index 8c1c5d2..a35541e 100644 --- a/conf/frontmatter.html +++ b/conf/frontmatter.html @@ -1,58 +1,31 @@
+
© 2025 — CC BY-ND 4.0
Title: Basic Book Builder
+Subtitle: A Pandoc Template for building books and articles
+Affiliation: Alaska Center for Energy and Power
+Institution: University of Alaska Fairbanks
Author: John Haverlack
-Copyright: © 2025 John Haverlack
+Copyright: © 2025 Alaska Center for Energy and Power
License: CC BY-ND 4.0
-Version: 0.0.1
-Date: 2025-11-05
-
-
- “Revolving Circles.” n.d. Accessed October 31, 2025.
- Wikipedia source
-
- The cover image presents a visual illusion of motion. When you focus on the - central point and move the page toward or away from your eyes, the concentric - circles appear to rotate. -
- -- This reflects a central theme of this work: perception shapes what we think of as - “reality.” In this illusion, motion exists only in our minds. We perceive, we do - not directly know; our brains construct experience. -
- +Version: 0.0.2
+Date: 2025-11-11
+State: PRE-RELEASE
+Source: https://github.com/jehaverlack/basic-book-builder
Title: $title$
+Subtitle: $subtitle$
+Affiliation: $affiliation$
+Institution: $institution$
+Author: $author$
+Copyright: $copyright$
+License: $license$
+Version: $version$
+Date: $date$
+State: $state$
+Source: $source$
+