From 5d4cdbbfbe045e6b68560a63f5fc357a9ec8937a Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Wed, 11 Feb 2026 13:15:23 -0500 Subject: [PATCH] Updated to reflect new template structure --- chapters/chap01.tex | 2 ++ chapters/chap02.tex | 2 ++ chapters/chap03.tex | 2 ++ chapters/chap04.tex | 2 ++ chapters/chap05.tex | 2 ++ chapters/chap06.tex | 2 ++ chapters/coda.tex | 21 +++++++++++ codex-007.tex | 22 ++++++------ parts/commands.tex | 82 +++++++++++++++++++++++++++++++++++++++++++ parts/impressum.tex | 31 ++++++++++++++++ parts/inline-code.tex | 3 ++ parts/packages.tex | 28 +++++++++++++++ parts/titlepage.tex | 23 ++++++++++++ 13 files changed, 211 insertions(+), 11 deletions(-) create mode 100644 chapters/chap01.tex create mode 100644 chapters/chap02.tex create mode 100644 chapters/chap03.tex create mode 100644 chapters/chap04.tex create mode 100644 chapters/chap05.tex create mode 100644 chapters/chap06.tex create mode 100644 chapters/coda.tex create mode 100644 parts/commands.tex create mode 100644 parts/impressum.tex create mode 100644 parts/inline-code.tex create mode 100644 parts/packages.tex create mode 100644 parts/titlepage.tex diff --git a/chapters/chap01.tex b/chapters/chap01.tex new file mode 100644 index 0000000..8b325f2 --- /dev/null +++ b/chapters/chap01.tex @@ -0,0 +1,2 @@ +\chapter{This is the first chapter} + diff --git a/chapters/chap02.tex b/chapters/chap02.tex new file mode 100644 index 0000000..8b325f2 --- /dev/null +++ b/chapters/chap02.tex @@ -0,0 +1,2 @@ +\chapter{This is the first chapter} + diff --git a/chapters/chap03.tex b/chapters/chap03.tex new file mode 100644 index 0000000..87e23dd --- /dev/null +++ b/chapters/chap03.tex @@ -0,0 +1,2 @@ +\chapter{This is the third chapter} + diff --git a/chapters/chap04.tex b/chapters/chap04.tex new file mode 100644 index 0000000..8e1d689 --- /dev/null +++ b/chapters/chap04.tex @@ -0,0 +1,2 @@ +\chapter{This is the fourth chapter} + diff --git a/chapters/chap05.tex b/chapters/chap05.tex new file mode 100644 index 0000000..ea0f64f --- /dev/null +++ b/chapters/chap05.tex @@ -0,0 +1,2 @@ +\chapter{This is the fifth chapter} + diff --git a/chapters/chap06.tex b/chapters/chap06.tex new file mode 100644 index 0000000..261c8f8 --- /dev/null +++ b/chapters/chap06.tex @@ -0,0 +1,2 @@ +\chapter{This is the sixth chapter} + diff --git a/chapters/coda.tex b/chapters/coda.tex new file mode 100644 index 0000000..0da97e1 --- /dev/null +++ b/chapters/coda.tex @@ -0,0 +1,21 @@ +\chapter{Coda} + +\section{What I Learned About \LaTeX{} While Creating This Issue} + +\section{What I Learned About Other Things While Creating This Issue} + + +%\newpage % Use only to keep the afterword together if we end up with orphans +\section{Afterword} + +\begin{multicols}{2} +\begin{small} +\noindent{}First paragraph. + +\medskip +\begin{flushright} +\noindent{}Thanks,\\—Ken +\end{flushright} + +\end{small} +\end{multicols} \ No newline at end of file diff --git a/codex-007.tex b/codex-007.tex index d195fb9..6a0a13b 100644 --- a/codex-007.tex +++ b/codex-007.tex @@ -1,7 +1,7 @@ \documentclass[twoside]{report} -\input{include/packages} -\input{include/commands} +\input{parts/packages} +\input{parts/commands} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -30,28 +30,28 @@ \begin{document} -\input{include/titlepage} +\input{parts/titlepage} -\input{include/impressum} +\input{parts/impressum} \tableofcontents -\input{include/chap01} +\input{chapters/chap01} -\input{include/chap02} +\input{chapters/chap02} -\input{include/chap03} +\input{chapters/chap03} -\input{include/chap04} +\input{chapters/chap04} -\input{include/chap05} +\input{chapters/chap05} -\input{include/chap06} +\input{chapters/chap06} -\input{include/coda} +\input{chapters/coda} diff --git a/parts/commands.tex b/parts/commands.tex new file mode 100644 index 0000000..5663585 --- /dev/null +++ b/parts/commands.tex @@ -0,0 +1,82 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Commands %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\graphicspath{{images/}} % Where are our images? +\counterwithout{footnote}{chapter} % Stop resetting the footnote count after each chapter +\NumTabs{18} % Define 18 tab stops (at 1/4" intervals) [tabto package] +\raggedbottom % Don't force text to fill page +\setlength{\belowcaptionskip}{4pt} % Adjust space between caption and figure +\renewcommand*\contentsname{In This Issue…} % Change the name of the TOC +\raggedbottom + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Document Setup%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{geometry} +\geometry{ + paperheight=8.5in, + paperwidth=5.5in, +% heightrounded, + margin=0.5in +} + +\addtolength{\topmargin}{0.4in} % Adjust and bottom margin +\addtolength{\textheight}{-0.75in} % Adjust the bottom margin + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Page Headers%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage{fancyhdr} +\pagestyle{fancy} + \fancyhf{} + \fancyhead[LE,RO]{\textit{the codex}} + \fancyhead[RE,LO]{Issue \#006} + \cfoot{Page \thepage} +\renewcommand{\footrulewidth}{0.5pt} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Chapter Title Spacing %%%%%%%%%%%%%%%%%%%% +\usepackage{titlesec} +\titleformat{\chapter}[display] + {\normalfont\huge\bfseries} + {\chaptertitlename\ \thechapter} + {20pt} + {\Huge} +\titlespacing*{\chapter}{0pt}{0pt}{40pt} + + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Custom Macros %%%%%%%%%%%%%%%%%%%%%%%%%%%% + +% Make a nice border and box for the tops of our examples +\newcommand\klab[3]{\vspace{#1}\noindent{}\hrulefill\fbox{\texttt{~#2~}}\hrulefill\vspace{#3}} + +% Add an \hrule with space above and below +\newcommand\krule[2]{\vspace{#1}\hrule\vspace{#2}} + +% Make hrefs easier (must load package hyperref} +\newcommand\kref[2]{\href{#1}{{\texttt{#2}}}} + +% Rotate text in tables easier +% https://tex.stackexchange.com/questions/89115/how-to-rotate-text-in-multirow-table +\newcommand\krot[3]{\parbox[t]{#1}{\multirow{#2}{*}{\rotatebox[origin=c]{90}{#3}}}} + +% Make diversions easier (and uniform!) +\newcommand\kdivb[2]{ + \medskip + \hrule + \medskip + \noindent{}\textbf{#1} + \vspace{#2mm} + \begin{multicols}{2} +} + +\newcommand\kdive[1]{ + \end{multicols} + \vspace{#1mm} + \hrule + \medskip +} + +% Typesetting keyboard commands +\newcommand{\kkey}[1]{\textsc{\texttt{#1}}} diff --git a/parts/impressum.tex b/parts/impressum.tex new file mode 100644 index 0000000..0a53153 --- /dev/null +++ b/parts/impressum.tex @@ -0,0 +1,31 @@ +\section*{Impressum} + +All contents \copyright\kpubyear{} Kenneth John Odle + +Although this is now in your hands, and it's also on the web, so if you really wanted to steal this, I've made it pretty darn easy. I can't imagine why anyone would want to, though. You don't need to however, because this is licenced under a CC BY-NA-SA 4.0 Creative Commons license. More information is at + +\kref{https://creativecommons.org/licenses/by-nc-sa/4.0/}{https://creativecommons.org/licenses/by-nc-sa/4.0/} \ccbyncnd + +FYI, this is made in \LaTeX \,using the report document class. It then gets exported to a letterhalf (5.5 in x 8.5 in) pdf, which then gets made into a booklet using PDF Booklet, which you can find at + +\kref{https://pdfbooklet.sourceforge.io/wordpress/}{https://pdfbooklet.sourceforge.io/wordpress/} + +The image of Linus Torvalds on the front cover is courtesy JericoDelayah from the WikiMedia Commons and is at \kref{https://commons.wikimedia.org/wiki/File:4_RETAT_04_Linus_Torvalds.jpg}{https://commons.wikimedia.org\\/wiki/File:4\_RETAT\_04\_Linus\_Torvalds.jpg} where you can also find a link to the Creative Commons CC BY-SA 3.0 license there, as well. + +I'm pushing this to my own git server as I write this. You can find it at \kref{https://git.kjodle.net/the-codex-zine}{https://git.kjodle.net/the-codex-zine}. If you would like to collaborate, this is also available on Codeberg at \kref{https://codeberg.org/the-codex-zine}{https://codeberg.org/the-code\\x-zine}. A list of topics I may cover in the future can be found at \kref{https://git.kjodle.net/kjodle/the-codex/wiki/List-of-Future-Topics}{https://gi\\t.kjodle.net/kjodle/the-codex/wiki/List-of-Future-Topics}. + +You can just skip over all the diversions in here if you want. It's just how my mind works. (And yes, there will be politics in this. \textit{You have been warned.}) Also, I use a lot of em-dashes, parentheses, and footnotes because that is also how my mind works. It's just one big long stream of consciousness up in here most days. + +If you want to donate financial support for the creation of this zine (and all the hours of research that go into it), you can do so at + +\kref{https://paypal.me/kjodle}{https://paypal.me/kjodle} (Thanks!) + +\medskip + +\noindent \textbf{Errata:} To err is human, to document those errors is divine. A list of errata can be found at + +\kref{https://git.kjodle.net/kjodle/the-codex/wiki/Errata}{https://git.kjodle.net/kjodle/the-codex/wiki/Errata}. + +\medskip + +\noindent \textbf{Credit where credit is due:} A lot of people have come forth (mostly from Reddit) to help me out in various ways. See the preamble to this document in the source code to see them. One aspect of our society is that nobody \textit{has} to help you. It is wonderful when it happens, and I am grateful for their help. diff --git a/parts/inline-code.tex b/parts/inline-code.tex new file mode 100644 index 0000000..37e7d62 --- /dev/null +++ b/parts/inline-code.tex @@ -0,0 +1,3 @@ +\begin{Verbatim}[] +$ sudo mktexlsr +\end{Verbatim} diff --git a/parts/packages.tex b/parts/packages.tex new file mode 100644 index 0000000..9714c68 --- /dev/null +++ b/parts/packages.tex @@ -0,0 +1,28 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% Packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} +\usepackage{amsmath} +\usepackage{amssymb} +\usepackage{makeidx} +\usepackage{graphicx} +\usepackage[nott]{kpfonts} +\usepackage{float} +\usepackage{array} +\usepackage{multirow} +\usepackage{gensymb} % Just for the degree symbol +\usepackage{ccicons} % Creative Commons icons; now we can delete an image +\usepackage{lettrine} % Drop caps +\usepackage{wrapfig} % Let's wrap some images +\usepackage{hanging} % For hanging indents in a script +\usepackage{fancyvrb} % Use line numbers with code samples +\usepackage{fvextra} % Break lines inside Verbatim environment: +\usepackage{enumitem} % Control spacing in lists +\usepackage{setspace} % Better control over line-spacing +\usepackage{nicefrac} % Use nice fractions +\usepackage[bottom]{footmisc} % Keep the footnotes at the bottom of the page +\usepackage{tabto} % Use tab stops when we need to (especially in footnotes) +\usepackage{microtype} % Make things neater. Thanks /u/-LeopardShark- +\usepackage{tabularray} % Easy tables +\usepackage[defaultsans]{cantarell} % sans-serif font; https://tug.org/FontCatalogue/firasansregular +\usepackage{multicol} % Include two- or three-column sections diff --git a/parts/titlepage.tex b/parts/titlepage.tex new file mode 100644 index 0000000..8a0a9c2 --- /dev/null +++ b/parts/titlepage.tex @@ -0,0 +1,23 @@ +\begin{titlepage} +\vspace*{25mm} +%\fontsize{28}{42}\selectfont +\centering +{\Huge the codex}\\Life with Linux — A Zine +\noindent{}{\color{gray7}\rule{\textwidth}{1pt}} + +\vspace{5mm} +Typeset in \LaTeX{} + +\vspace{5mm} +Issue \#\kissue{} + +\vspace{18mm} +Written and Edited by\\Kenneth John Odle + +\vspace{5mm} +\kpubdate{} + +\vspace{20mm} +\kref{https://just13.click/just13}{just13.click/just13} + +\end{titlepage}