Added macro to format example labels

This commit is contained in:
Kenneth John Odle 2023-07-07 19:10:23 -04:00
parent 3f892de8b2
commit 6a8d3cb0f5

View File

@ -22,6 +22,9 @@
margin=0.5in margin=0.5in
} }
% Adjust the top and bottom margins % Adjust the top and bottom margins
% http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907057 % http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907057
\addtolength{\topmargin}{0.4in} \addtolength{\topmargin}{0.4in}
@ -59,18 +62,12 @@
% Use strikethrough % Use strikethrough
\usepackage{ulem} \usepackage{ulem}
% Style a blockquote
% 2021.11.22 -- Not really sure I need this anymore.
% See https://tex.stackexchange.com/questions/325695/how-to-style-blockquote
% \usepackage{etoolbox}
% \usepackage{setspace} % for \onehalfspacing and \singlespacing macros
% See also https://www.overleaf.com/learn/latex/Typesetting_quotations
% Make things neater. Thanks /u/-LeopardShark- % Make things neater. Thanks /u/-LeopardShark-
\usepackage{microtype} \usepackage{microtype}
% Put a horizontal rule in an align environment % Make a nice border and box for the tops of our examples
% This is just for the page numbers/scanning picture in issue #2 \newcommand\klab[1]{\noindent{}\hrulefill\fbox{\texttt{~#1~}}\hrulefill}
% Keep this in case it becomes useful later % Keep this in case it becomes useful later
% \usepackage{booktabs} % \usepackage{booktabs}
@ -83,6 +80,7 @@
% Control spacing in lists % Control spacing in lists
\usepackage{enumitem} \usepackage{enumitem}
% Don't force text to fill page
\raggedbottom \raggedbottom
% Pictures! % Pictures!
@ -534,7 +532,6 @@ For example, this code:
\begin{enumerate} \begin{enumerate}
\item Beginning of Foreign Conquests \item Beginning of Foreign Conquests
\item The Origin of Carthage \item The Origin of Carthage
\item Government of Carthage
\end{enumerate} \end{enumerate}
\item Operations in the First Punic War \item Operations in the First Punic War
\begin{enumerate} \begin{enumerate}
@ -547,6 +544,8 @@ For example, this code:
\noindent{}produces this output: \noindent{}produces this output:
\klab{Enumerate Example}
\paragraph{The First Punic War} \paragraph{The First Punic War}
\begin{spacing}{0.7} \begin{spacing}{0.7}
\begin{enumerate}[noitemsep] \begin{enumerate}[noitemsep]
@ -554,7 +553,6 @@ For example, this code:
\begin{enumerate} \begin{enumerate}
\item Beginning of Foreign Conquests \item Beginning of Foreign Conquests
\item The Origin of Carthage \item The Origin of Carthage
\item Government of Carthage
\end{enumerate} \end{enumerate}
\item Operations in the First Punic War \item Operations in the First Punic War
\begin{enumerate} \begin{enumerate}
@ -579,7 +577,6 @@ As an example, we'll use the above example, but in a bulleted list:
\begin{itemize} \begin{itemize}
\item Beginning of Foreign Conquests \item Beginning of Foreign Conquests
\item The Origin of Carthage \item The Origin of Carthage
\item Government of Carthage
\end{itemize} \end{itemize}
\item Operations in the First Punic War \item Operations in the First Punic War
\begin{itemize} \begin{itemize}
@ -592,6 +589,8 @@ As an example, we'll use the above example, but in a bulleted list:
\noindent{}produces this output: \noindent{}produces this output:
\klab{Itemize Example}
\paragraph{The First Punic War} \paragraph{The First Punic War}
\begin{spacing}{0.7} \begin{spacing}{0.7}
\begin{itemize}[noitemsep] \begin{itemize}[noitemsep]
@ -599,7 +598,6 @@ As an example, we'll use the above example, but in a bulleted list:
\begin{itemize} \begin{itemize}
\item Beginning of Foreign Conquests \item Beginning of Foreign Conquests
\item The Origin of Carthage \item The Origin of Carthage
\item Government of Carthage
\end{itemize} \end{itemize}
\item Operations in the First Punic War \item Operations in the First Punic War
\begin{itemize} \begin{itemize}