A zine about Linux. That's all.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

170 lines
6.3 KiB

10 months ago
10 months ago
  1. \documentclass[twoside]{report}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{amsmath}
  4. \usepackage{amssymb}
  5. \usepackage{makeidx}
  6. \usepackage{graphicx}
  7. \usepackage{kpfonts}
  8. \usepackage{float}
  9. \raggedbottom
  10. % Where are our images?
  11. \graphicspath{{images/}}
  12. % Let's set this as a half-letter sized sheet
  13. \usepackage{geometry}
  14. \geometry{
  15. paperheight=8.5in,
  16. paperwidth=5.5in,
  17. % heightrounded,
  18. margin=0.5in
  19. }
  20. % Adjust the top and bottom margins
  21. \addtolength{\topmargin}{0.4in}
  22. \addtolength{\textheight}{-0.75in}
  23. % Set the header style
  24. \usepackage{fancyhdr}
  25. \pagestyle{fancy}
  26. \fancyhf{}
  27. \fancyhead[LE,RO]{\textit{the codex}}
  28. \fancyhead[RE,LO]{Issue \#003}
  29. \cfoot{Page \thepage}
  30. \renewcommand{\footrulewidth}{0.5pt}
  31. % Includ two- or three-column sections
  32. \usepackage{multicol}
  33. % Stop resetting the footnote count after each chapter
  34. \counterwithout{footnote}{chapter}
  35. % Let's wrap some images
  36. \usepackage{wrapfig}
  37. % Use tab stops when we need to (especially in footnotes)
  38. \usepackage{tabto}
  39. % Define 18 tab stops (at 1/4" intervals)
  40. \NumTabs{18}
  41. % Make things neater. Thanks /u/-LeopardShark-
  42. \usepackage{microtype}
  43. % Make a nice border and box for the tops of our examples
  44. \newcommand\klab[3]{\vspace{#1}\noindent{}\hrulefill\fbox{\texttt{~#2~}}\hrulefill\vspace{#3}}
  45. % Add an \hrule with space above and below
  46. \newcommand\krule[2]{\vspace{#1}\hrule\vspace{#2}}
  47. % Make hrefs easier (must load package hyperref}
  48. \newcommand\kref[2]{\href{#1}{{\texttt{#2}}}}
  49. % Use line numbers with code samples
  50. % \begin{Verbatim}...\end{Verbatim} <-- Note the capitalization!
  51. \usepackage{fancyvrb}
  52. % Break lines inside this environment:
  53. \usepackage{fvextra}
  54. % Control spacing in lists
  55. \usepackage{enumitem}
  56. % Don't force text to fill page
  57. \raggedbottom
  58. % Better control over line-spacing
  59. \usepackage{setspace}
  60. % Use nice fractions
  61. \usepackage{nicefrac}
  62. % Keep the footnotes at the bottom of the page
  63. \usepackage[bottom]{footmisc}
  64. % Do we want to include URLs?
  65. % Yes, but we also want to hide the big red box it puts around them in the pdf. Thanks /u/0b0101011001001011
  66. \usepackage[hidelinks]{hyperref}
  67. %%%% Document Information %%%%%
  68. \author{Kenneth John Odle}
  69. \title{
  70. {\Huge the codex} \\
  71. {\footnotesize Life with Linux — A Zine \\
  72. \bigskip
  73. Typeset in \LaTeX{} \\
  74. Issue \#004}
  75. }
  76. \date{\begin{small}\today{}\end{small}}
  77. % Change the name of the TOC
  78. \renewcommand*\contentsname{In This Issue…}
  79. \begin{document}
  80. \maketitle
  81. \section*{Impressum}
  82. All contents \copyright2023 Kenneth John Odle
  83. 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. However, you don't need to, because this is licenced under a CC BY-NA-SA 4.0 Creative Commons license. More information is at \href{https://creativecommons.org/licenses/by-nc-sa/4.0/}{\texttt{https://creativecommons.org/licenses/by-nc-sa/4.0/}} \includegraphics[scale=0.30]{ncsa4-0}
  84. 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 (\kref{https://pdfbooklet.sourceforge.io/wordpress/}{https://pdfbooklet.sourceforge.io/word\\press/}).
  85. The image of Linus Torvalds on the front cover is courtesy JericoDelayah from the WikiMedia Commons. The image is from \kref{https://commons.wikimedia.org/wiki/File:4_RETAT_04_Linus_Torvalds.jpg}{https://commons.wiki\\media.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.
  86. I'm pushing this to my own git server as I write this. You can find it \href{https://git.kjodle.net/kjodle/the-codex}{here}: \texttt{https://git.kjodle.net/kjodle/the-codex}. New issues will be pushed after they are complete.
  87. 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.
  88. \medskip
  89. \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/Err\\ata}.
  90. \medskip
  91. \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.
  92. \tableofcontents
  93. \chapter{The Final Salad Days}
  94. \section{College, 2008}
  95. Bush II decided to tank the economy for ordinary people so that rich people could get richer.\footnote{This is the second of three "once in a lifetime" recessions I have lived through. Yay, capitalism!} I decided to go back into teaching (which, thanks to current conservative political policies\footnote{Along with the asshole behavior of parents who approve of those policies.} there will always be a demand for), which meant I needed to go back to college to renew my teaching license. But this is a whole other story for which I have run out of space, so it will have to go in a future issue.
  96. \section{Today}
  97. \chapter{Math in \LaTeX{} with \texttt{align} and \texttt{array}}
  98. \chapter{Searching your Bash History}
  99. https://www.cyberciti.biz/faq/linux-unix-shell-history-search-command/
  100. https://www.digitalocean.com/community/tutorials/how-to-use-bash-history-commands-and-expansions-on-a-linux-vps
  101. https://superuser.com/questions/7414/how-can-i-search-the-bash-history-and-rerun-a-command
  102. https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html\#Bindable-Readline-Commands
  103. https://stackoverflow.com/questions/7131670/make-a-bash-alias-that-takes-a-parameter
  104. https://tecadmin.net/how-to-create-bash-aliases-with-parameters/
  105. \chapter{What's to Like About Linux}
  106. \section{bash Aliases for \texttt{git}}
  107. \chapter{The Right Ways vs The Wrong Ways}
  108. \chapter{More about those folders in \texttt{root}}
  109. \chapter{Coda}
  110. \section{What I Learned About \LaTeX{} While Creating This Issue}
  111. \subsection{Page Count using \texttt{detex}}
  112. \subsection{How to Create Macros}
  113. \section{What I learned About \LaTeX{} While Creating Something Else}
  114. \end{document}