Browse Source

Added tables to chapter 6

main
Kenneth John Odle 7 months ago
parent
commit
eb1408fb1a
  1. 41
      004/codex-004.tex

41
004/codex-004.tex

@ -7,6 +7,9 @@
\usepackage{kpfonts}
\usepackage{float}
\raggedbottom
\usepackage{array}
\usepackage{multirow}
\usepackage{longtable}
% Where are our images?
\graphicspath{{images/}}
@ -59,6 +62,10 @@
% 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}}}}
% Use line numbers with code samples
% \begin{Verbatim}...\end{Verbatim} <-- Note the capitalization!
\usepackage{fancyvrb}
@ -165,6 +172,40 @@ This also omits Edubuntu which, as a former teacher, I am very interested in.
\chapter{The Right Ways vs The Wrong Ways}
A lot of grew up hearing that ``there's a right way to do things and a wrong way to do things.'' I don't disagree that there is always a \textit{wrong} way to do things, but like house maintenance, working on computers quickly teaches you that there are a lot of wrong ways to do things.
As I get older, however, I tend to think of this as less of a black-and-white issue. That is, ``how to do a thing'' can be answered any number of ways, which are on a spectrum from quite truly wrong to quite truly right with a lot of grey space in between.
% Provide some additional spacing in this table; may move this to preamble later
\setlength{\tabcolsep}{14pt}
\renewcommand{\arraystretch}{1.4}
\begin{table}[h]
\begin{tabular}{ | c | l | p{60mm} | } \hline
\multirow{3}{*}{\parbox[t]{2mm}{\multirow{3}{*}{\rotatebox[origin=c]{90}{Very Wrong}}}} & Very Wrong & It doesn't work and it breaks almost everything. \\ \cline{2-3}
& Very Wrong & It doesn't work and it breaks at least 50\% of things \\ \cline{2-3}
& Wrong & It doesn't work and it only breaks a few things \\ \hline
\multirow{2}{*}{\krot{2mm}{2}{Still Wrong}} & Kind of Wrong & It works, but it breaks a lot of other things. \\ \cline{2-3}
& Wrong & It works, but it breaks a handful of things that shouldn't have to be fixed. \\ \hline
\multirow{2}{*}{\krot{2mm}{2}{Wrong\textit{ish}}} & Not bad & It works in this specific instance, but not in all instances. \\ \cline{2-3}
& Wrong & It works, but it's far more work than it should be. \\ \hline
\end{tabular}
\end{table}
\begin{longtable}{ | c | l | p{60mm} | } \hline
\multirow{3}{*}{\krot{2mm}{3}{Very Wrong}} & Very Wrong & It doesn't work and it breaks almost everything. \\ \cline{2-3}
& Very Wrong & It doesn't work and it breaks at least 50\% of things \\ \cline{2-3}
& Wrong & It doesn't work and it only breaks a few things \\ \hline
\multirow{2}{*}{\krot{2mm}{2}{Still Wrong}} & Kind of Wrong & It works, but it breaks a lot of other things. \\ \cline{2-3}
& Wrong & It works, but it breaks a handful of things that shouldn't have to be fixed. \\ \hline
\multirow{2}{*}{\krot{2mm}{2}{Wrong\textit{ish}}} & Not bad & It works in this specific instance, but not in all instances. \\ \cline{2-3}
& Wrong & It works, but it's far more work than it should be. \\ \hline
\end{longtable}
\chapter{More about those folders in \texttt{root}}
\chapter{Coda}

Loading…
Cancel
Save