Updated to reflect new template structure

This commit is contained in:
Kenneth John Odle 2026-02-11 13:15:23 -05:00
parent 5c07126c05
commit 5d4cdbbfbe
13 changed files with 211 additions and 11 deletions

2
chapters/chap01.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the first chapter}

2
chapters/chap02.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the first chapter}

2
chapters/chap03.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the third chapter}

2
chapters/chap04.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the fourth chapter}

2
chapters/chap05.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the fifth chapter}

2
chapters/chap06.tex Normal file
View File

@ -0,0 +1,2 @@
\chapter{This is the sixth chapter}

21
chapters/coda.tex Normal file
View File

@ -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}

View File

@ -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}

82
parts/commands.tex Normal file
View File

@ -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}}}

31
parts/impressum.tex Normal file
View File

@ -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.

3
parts/inline-code.tex Normal file
View File

@ -0,0 +1,3 @@
\begin{Verbatim}[]
$ sudo mktexlsr
\end{Verbatim}

28
parts/packages.tex Normal file
View File

@ -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

23
parts/titlepage.tex Normal file
View File

@ -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}