diff --git a/lbol.tex b/lbol.tex index 1cb7145..4df9819 100644 --- a/lbol.tex +++ b/lbol.tex @@ -34,6 +34,7 @@ \usepackage{nameref} % Use chapter names in references \usepackage[hidelinks]{hyperref} % Include URLs, but hide the big red box in the pdf. \usepackage{ninecolors} +\usepackage{ragged2e} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -48,12 +49,14 @@ \usepackage[ paperheight=11in, paperwidth=210mm, - bindingoffset=13mm, + bindingoffset=10mm, margin=20mm, heightrounded, ]{geometry} \addtolength{\topmargin}{0.4in} % Adjust the top margin \addtolength{\textheight}{-0.5in} % Adjust the bottom margin +\addtolength{\skip\footins}{2pc} % Adjust spacing above footnotes + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Headers %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -91,9 +94,9 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Newspaper Columns %%%%%%%%%%%%%%%%%%%%%% \usepackage{multicol} -\setlength{\columnsep}{13mm} -\setlength{\columnseprule}{1pt} -\def\columnseprulecolor{\color{gray5}} +\setlength{\columnsep}{6mm} +\setlength{\columnseprule}{0.5pt} +\def\columnseprulecolor{\color{azure9}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -204,8 +207,9 @@ Also, if you have access to the source code so you can see how other people have These are listed roughly in the order of how often I consult them. \begin{itemize}[noitemsep] +\RaggedRight % left-align list items \item \textbf{TeX - LaTeX Stack Exchange} — \kref{https://tex.stackexchange.com/}{https://tex.stackexchange.com/} - \item \textbf{Overleaf} — Overleaf is an online \LaTeX{} editor. They have both free and paid options. They have excellent documentation at \kref{https://www.overleaf.com/learn}{https://www.overleaf.com/\\learn} and free templates at \kref{https://www.overleaf.com/latex/templates}{https://www.overleaf.com/latex/templates} + \item \textbf{Overleaf} — Overleaf is an online \LaTeX{} editor. They have both free and paid options. They have excellent documentation at \kref{https://www.overleaf.com/learn}{https://www.overleaf.com/learn} and free templates at \kref{https://www.overleaf.com/latex/templates}{https://www.overleaf.com/lat\\ex/templates} \item The \textbf{\LaTeX{} Community} has a helpful forum at \kref{https://latex.org/forum/}{https://latex.org/forum/} \item \textbf{texblog — because \LaTeX{} matters} has a number of useful articles but hasn't been updated in a while. You can read it at \kref{https://texblog.org/}{https://texblog.org/} \item \textbf{CTAN — Comprehensive \TeX{} Archive Network} — \kref{https://ctan.org/}{https://ctan.org/} has lots of good information. This is where I go to find information about packages. @@ -217,6 +221,7 @@ These are listed roughly in the order of how often I consult them. \item \textbf{\textsc{TUGboat}} — The communications of the \TeX{} Users Group. Again, there is less useful information to a \LaTeX{} novice, but lots of \textit{interesting} information. \kref{https://www.tug.org/TUGboat/}{https://www.tug.org/TUGboat/} \end{itemize} + \end{multicols} @@ -296,7 +301,7 @@ The different types of document classes help you build a specific type of docume caption = {Document Classes in \LaTeX{} }, label = {tbl:docclasses} ]{ -% width = {10cm}, + width = {\columnwidth}, colspec = { X[1,l] X[4,l] }, hlines = {0.75pt,solid}, vlines = {0.75pt,solid}, @@ -387,7 +392,7 @@ Many packages introduce additional environments. For other useful environments t caption = {Font Variations in \LaTeX{} }, label = {tbl:fontvar} ]{ - width = {114.3mm}, + width = {\columnwidth}, colspec = { X[1,l] X[2,l] X[1,l] }, hlines = {0.75pt,solid}, vline{1,4} = {0.75pt,solid}, @@ -446,7 +451,7 @@ You can also change the size of a portion of text locally. These are the default caption = {Local Size Commands}, label = {tb:localsizecommands} ]{ - width = {10cm}, + width = {\columnwidth}, colspec = { X[1,c] X[1,c] }, hlines = {0.75pt,solid}, vlines = {0.75pt,solid}, @@ -556,7 +561,7 @@ There are other ways to insert a vertical small space, using a single command. label = {tb:vertspacom}, theme = {custom1}, ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[3,l] }, hlines = {0.75pt,solid}, vline{1,3} = {0.75pt,solid}, @@ -595,7 +600,7 @@ Spacing commands can be found in math mode, but most of the ones in the table be label = {tb:horspacchar}, theme = {custom1}, ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[2.5,l] X[1,c] X[1,c] }, hlines = {0.5pt,solid}, vline{1,4} = {0.5pt,solid}, @@ -641,7 +646,7 @@ Sometimes you need to insert a blank space that is the width of a particular cha label = {tb:breaks}, theme = {custom1} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[4.5,l] }, hlines = {0.5pt,solid}, vline{1,3} = {0.5pt,solid}, @@ -736,7 +741,7 @@ The usual way to define a page size is to pass it as an option to the document c caption = {Default Paper Sizes in \LaTeX{} }, label = {tbl:defpapersizes} ]{ - width = {114.3mm}, + width = {\columnwidth}, colspec = { X[1.4,l] X[1,c] X[1,c] X[0.6,c] }, hlines = {0.75pt,solid}, vline{1,5} = {0.75pt,solid}, @@ -1195,7 +1200,7 @@ This is the basic format of a \texttt{longtblr} table that I use on a regular ba caption = {Sample \texttt{longtblr} Table}, label = {tbl:longtblr} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[1,l] }, hlines = {0.75pt,solid}, vline{1,3} = {0.75pt,solid}, @@ -1213,7 +1218,7 @@ Oranges & Grapefruit caption = {Sample \texttt{longtblr} Table}, label = {tbl:longtblr} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[1,l] }, hlines = {0.75pt,solid}, vline{1,3} = {0.75pt,solid}, @@ -1253,7 +1258,7 @@ rowspec = {Q[t], Q[b]} caption = {\texttt{tabularray} Table with \texttt{rowspec}}, label = {tb:rowspec} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[2,r] }, rowspec = { Q[t,azure9] Q[b,yellow9] }, hlines, vlines @@ -1268,7 +1273,7 @@ This is at the bottom & This is some more incredibly long text that is going to caption = {\texttt{tabularray} Table with \texttt{rowspec}}, label = {tb:rowspec} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[2,r] }, rowspec = { Q[t] Q[b] }, hlines, vlines @@ -1293,7 +1298,7 @@ If you want to break text in a cell, you can surround the cell contents with cur caption = {\texttt{tabularray} Table with Multiline Cells}, label = {tb:multiline} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,c] X[2,c] }, rows = {5mm, m, rowsep=1.5pt}, hlines, vlines @@ -1308,7 +1313,7 @@ If you want to break text in a cell, you can surround the cell contents with cur caption = {\texttt{tabularray} Table with Multiline Cells}, label = {tb:multiline} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,c] X[2,c] }, rows = {5mm, m, rowsep=1.5pt}, hlines, vlines @@ -1327,7 +1332,7 @@ It is also possible to have cells span multiple rows or columns by using the \Ve caption = {\texttt{tabularray} Table with Multi Rows and Columns}, label = {tb:multirow} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,c] X[2,c] X[1,c] }, rows = {5mm, m, rowsep=1.5pt}, hlines, vlines @@ -1341,7 +1346,7 @@ Fish & Chips & Mushy Peas \\ caption = {\texttt{tabularray} Table with Multi Rows and Columns}, label = {tb:multirow} ]{ - width = {0.6\textwidth}, + width = {\columnwidth}, colspec = { X[1,c] X[2,c] X[1,c] }, rows = {5mm, m, rowsep=1.5pt}, hlines, vlines @@ -1394,7 +1399,7 @@ Brackets and parentheses are common in mathematical formulas, so it is natural t caption = {Brackets and Parentheses in Math Mode}, label = {tb:brackpar} ]{ - width = {114.3mm}, + width = {\columnwidth}, colspec = { X[2,l] X[2,l] X[1,l] }, hlines = {0.75pt,solid}, vline{1,4} = {0.75pt,solid}, @@ -1447,6 +1452,7 @@ You can also control the size of brackets and parentheses explicitly: caption = {Explicit Size Commands}, label = {tb:expsizcom} ]{ + width = {\columnwidth}, colspec = { X[7,l] X[2,c] }, hlines = {0.75pt,solid}, vlines = {0.75pt,solid}, @@ -1681,7 +1687,7 @@ A couple of things to note here: First, while the actual image is not very large caption = {\texttt{figure} Positioning Parameters}, label = {tb:figpospar} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[6,l] }, hlines = {0.75pt,solid}, vline{1,3} = {0.75pt,solid}, @@ -1756,7 +1762,7 @@ If the \texttt{wrapfigure} package is not working for you, there is also the muc caption = {\texttt{wrapfig} Position Parameters}, label = {tb:wrapfigpospar} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1,c] X[1,c] X[7,l] }, hlines = {0.75pt,solid}, vline{1,3,4} = {0.75pt,solid}, @@ -1987,7 +1993,7 @@ You can also dip in and out of math mode to get these characters, but the font w caption = {\LaTeX{} Units and Lengths}, label = {tb:units} ]{ - width = {0.8\textwidth}, + width = {\columnwidth}, colspec = { X[1,l] X[3,l] }, hlines = {0.75pt,solid}, vline{1,3} = {0.75pt,solid}, @@ -2021,7 +2027,7 @@ For additional information, consult the \textit{very} extensive ``Comprehensive label = {tb:miscsym}, theme = {custom1} ]{ - width = {\textwidth}, + width = {\columnwidth}, colspec = { X[1.6,l] X[0.7,c]