Added macro to format example labels
This commit is contained in:
parent
3f892de8b2
commit
6a8d3cb0f5
@ -22,6 +22,9 @@
|
||||
margin=0.5in
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
% Adjust the top and bottom margins
|
||||
% http://kb.mit.edu/confluence/pages/viewpage.action?pageId=3907057
|
||||
\addtolength{\topmargin}{0.4in}
|
||||
@ -59,18 +62,12 @@
|
||||
% Use strikethrough
|
||||
\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-
|
||||
\usepackage{microtype}
|
||||
|
||||
% Put a horizontal rule in an align environment
|
||||
% This is just for the page numbers/scanning picture in issue #2
|
||||
% Make a nice border and box for the tops of our examples
|
||||
\newcommand\klab[1]{\noindent{}\hrulefill\fbox{\texttt{~#1~}}\hrulefill}
|
||||
|
||||
% Keep this in case it becomes useful later
|
||||
% \usepackage{booktabs}
|
||||
|
||||
@ -83,6 +80,7 @@
|
||||
% Control spacing in lists
|
||||
\usepackage{enumitem}
|
||||
|
||||
% Don't force text to fill page
|
||||
\raggedbottom
|
||||
|
||||
% Pictures!
|
||||
@ -534,7 +532,6 @@ For example, this code:
|
||||
\begin{enumerate}
|
||||
\item Beginning of Foreign Conquests
|
||||
\item The Origin of Carthage
|
||||
\item Government of Carthage
|
||||
\end{enumerate}
|
||||
\item Operations in the First Punic War
|
||||
\begin{enumerate}
|
||||
@ -547,6 +544,8 @@ For example, this code:
|
||||
|
||||
\noindent{}produces this output:
|
||||
|
||||
\klab{Enumerate Example}
|
||||
|
||||
\paragraph{The First Punic War}
|
||||
\begin{spacing}{0.7}
|
||||
\begin{enumerate}[noitemsep]
|
||||
@ -554,7 +553,6 @@ For example, this code:
|
||||
\begin{enumerate}
|
||||
\item Beginning of Foreign Conquests
|
||||
\item The Origin of Carthage
|
||||
\item Government of Carthage
|
||||
\end{enumerate}
|
||||
\item Operations in the First Punic War
|
||||
\begin{enumerate}
|
||||
@ -579,7 +577,6 @@ As an example, we'll use the above example, but in a bulleted list:
|
||||
\begin{itemize}
|
||||
\item Beginning of Foreign Conquests
|
||||
\item The Origin of Carthage
|
||||
\item Government of Carthage
|
||||
\end{itemize}
|
||||
\item Operations in the First Punic War
|
||||
\begin{itemize}
|
||||
@ -592,6 +589,8 @@ As an example, we'll use the above example, but in a bulleted list:
|
||||
|
||||
\noindent{}produces this output:
|
||||
|
||||
\klab{Itemize Example}
|
||||
|
||||
\paragraph{The First Punic War}
|
||||
\begin{spacing}{0.7}
|
||||
\begin{itemize}[noitemsep]
|
||||
@ -599,7 +598,6 @@ As an example, we'll use the above example, but in a bulleted list:
|
||||
\begin{itemize}
|
||||
\item Beginning of Foreign Conquests
|
||||
\item The Origin of Carthage
|
||||
\item Government of Carthage
|
||||
\end{itemize}
|
||||
\item Operations in the First Punic War
|
||||
\begin{itemize}
|
||||
|
Loading…
Reference in New Issue
Block a user