Added table on font variations
This commit is contained in:
parent
d0f57567d6
commit
95733f0100
66
lbol.tex
66
lbol.tex
@ -41,6 +41,14 @@
|
||||
% 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}}}}
|
||||
|
||||
% Make including standalone items easier
|
||||
\newcommand\kpic[2]{\bigskip%
|
||||
\noindent\includegraphics[scale=#1]{#2}%
|
||||
\medskip}
|
||||
|
||||
% Include sections and subsections in the TOC
|
||||
% \setcounter{tocdepth}{1}
|
||||
|
||||
@ -90,13 +98,8 @@
|
||||
% Keep the footnotes at the bottom of the page
|
||||
\usepackage[bottom]{footmisc}
|
||||
|
||||
% Just for issue #003:
|
||||
\usepackage{mathtools}
|
||||
\usepackage{wasysym}
|
||||
\usepackage{harmony}
|
||||
\usepackage{musixtex}
|
||||
\usepackage[generate,ps2eps]{abc}
|
||||
\usepackage{mathptmx} %Necessary for abc package to work?
|
||||
% Add custom widths to tables
|
||||
\usepackage{array}
|
||||
|
||||
% Include URLs, but hide the big red box it puts around them in the pdf.
|
||||
\usepackage[hidelinks]{hyperref}
|
||||
@ -208,18 +211,15 @@ Part
|
||||
|
||||
\noindent{} To add one, use:
|
||||
|
||||
\begin{verbatim}
|
||||
\chapter[Books]{Books I Have Read}
|
||||
\end{verbatim}
|
||||
\kpic{1}{standalone/build/book[]}
|
||||
|
||||
Notice that we have the option \texttt{[Books]} which describes how this chapter will appear in the table of contents. To prevent a section from being numbered or appearing in the table of contents, replace this entire option with an asterisk:
|
||||
|
||||
\begin{verbatim}
|
||||
\chapter*{Books I Have Read}
|
||||
\end{verbatim}
|
||||
\kpic{1}{standalone/build/book*}
|
||||
|
||||
For best results, stick to the hierarchical structure shown above, as this is also how each section will be numbered. See the table of contents of this zine as an example.
|
||||
|
||||
|
||||
\section{Paragraphs and White Space}
|
||||
|
||||
To start a new paragraph, simply skip a line. \LaTeX{} compresses white space, so if you are importing text from a text document, any lines that are adjacent to each other will be in the same paragraph. Additionally, multiple spaces will appear as a single space. For example, this code:
|
||||
@ -275,6 +275,44 @@ If you didn't use that construction, you would need to put a \% in front of each
|
||||
|
||||
\section{Font Variations}
|
||||
|
||||
\LaTeX{} has various ways of formatting type:
|
||||
|
||||
\bigskip
|
||||
|
||||
% Provide some additional spacing in this table; may move this to preamble later
|
||||
\setlength{\tabcolsep}{14pt}
|
||||
\renewcommand{\arraystretch}{1.8}
|
||||
|
||||
\noindent{}\begin{tabular}{| m{2cm} | m{4cm} | m{2cm} |}
|
||||
\hline
|
||||
\textbf{Effect} & \textbf{Code} & \textbf{Example} \\
|
||||
\hline
|
||||
Bold & \verb+\textbf{Bold}+ & \textbf{Bold} \\
|
||||
\hline
|
||||
Italic & \verb+\textit{Italic}+ & \textit{Italic} \\
|
||||
\hline
|
||||
Slanted & \verb+\textsl{Slanted}+ & \textsl{Slanted} \\
|
||||
\hline
|
||||
Emphasis & \verb+\emph{Emphasis}+ & \emph{Emphasis} \\
|
||||
\hline
|
||||
Typewriter & \verb+\texttt{Typewriter}+ & \texttt{Typewriter} \\
|
||||
\hline
|
||||
Small Caps & \verb+\textsc{Small Caps}+ & \textsc{Small Caps} \\
|
||||
\hline
|
||||
Sans Serif & \verb+textsf{Sans Serif}+ & \textsf{Sans Serif} \\
|
||||
\hline
|
||||
\end{tabular}
|
||||
|
||||
\bigskip
|
||||
|
||||
It is possible to combine these. For example, to write \textit{\textsc{Italic text in Small Caps}}, you would use:
|
||||
|
||||
\bigskip
|
||||
|
||||
\noindent{}\verb+\textit{\textsc{Italic text in Small Caps}}+
|
||||
|
||||
\paragraph{Deprecated Code} — Note that in \LaTeX2e{} code such as \verb+{\it some text}+ and \verb+{\bf some text}+ are deprecated.\footnote{See \kref{https://tex.stackexchange.com/questions/41681/correct-way-to-bold-italicize-text}{https://tex.stackexchange.com/questions/41681/correct-way-to-bold-italicize-text} and \kref{https://tex.stackexchange.com/questions/516/does-it-matter-if-i-use-textit-or-it-bfseries-or-bf-etc}{https://tex.stackexchange.com/questions/516/does-it-matter-if-i-use-textit-or-it-bfseries-or-bf-etc} for more information.}
|
||||
|
||||
\section{Size Variations}
|
||||
|
||||
\section{Displaying Code}
|
||||
@ -464,7 +502,7 @@ The Pythagorean Theorem is \[x^2 + y^2 = z^2\]
|
||||
A few people have noted on Reddit that the images I include are far larger than I need them to be. This is true. I had a lot of things like this in issue \#2:
|
||||
|
||||
\begin{verbatim}
|
||||
\includegraphics[scale=0.5]{paper_cutter}
|
||||
\includegraphics[scale=0.5]{paper_cutter}
|
||||
\end{verbatim}
|
||||
|
||||
\noindent{}And it seems that the worst offender was this line:
|
||||
|
Loading…
Reference in New Issue
Block a user