From c2b4c2feff84ef1a0f261485ca2ddf4bb67abf4f Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Sat, 22 Feb 2025 11:11:30 -0500 Subject: [PATCH] Updates to ch. 3 (again) --- 006/006 time.csv | 1 + 006/include/chap03.tex | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/006/006 time.csv b/006/006 time.csv index 27e9956..78c48a3 100644 --- a/006/006 time.csv +++ b/006/006 time.csv @@ -46,3 +46,4 @@ Date,Topic,Minutes ,,45 2025.02.19,ch. 4 writing & bugfixing,60 2025.02.21,ch. 3 edits,75 +2025.02.22,ch. 3 updates,10 diff --git a/006/include/chap03.tex b/006/include/chap03.tex index 0da591f..7bcb296 100644 --- a/006/include/chap03.tex +++ b/006/include/chap03.tex @@ -87,7 +87,13 @@ Size is easy to figure out: it just refers to how large a bit of text appears, e ``Semantic'' formatting means that your code should \textit{mean} something. It other words, you need to distinguish between when you are emphasizing something (i.e., ``This is \textit{very} good cake.'') or merely when you are marking something as italic or bold as a convention, such as book and movie titles or vocabulary words (i.e., \textit{The Grapes of Wrath}, \textit{Star Wars}, ``\textbf{mitosis} is the process of cell division'', etc.). -In \LaTeX{}, the command for emphasizing text is \verb|\emph{}|. This generally gets rendered as italic text, although not always. For example, the \textsf{beamer} document class renders it as red text, rather than italic text, as this work better in most presentations. (check this) +In \LaTeX{}, the command for emphasizing text is \verb|\emph{}|. This generally gets rendered as italic text, although not always. If you are working in a document class that formats \verb|\emph{}| in some way other than italic, you can always change it to italic by adding this to your preamble: + +\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{Redefining emph}] +\let\emph\relax +\DeclareTextFontCommand{\emph}{\itseries} +\end{Verbatim} + \section{Commands and Environments}