From b1f3f2681b2bf35570ad11f65270777f38c55f7e Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 8 Mar 2022 03:00:44 +0000
Subject: CTAN sync 202203080300

---
 .../LaTeX_for_Undergraduates.tex                    | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'info/latex-for-undergraduates/LaTeX_for_Undergraduates.tex')

diff --git a/info/latex-for-undergraduates/LaTeX_for_Undergraduates.tex b/info/latex-for-undergraduates/LaTeX_for_Undergraduates.tex
index 898d85c1ad..eaad3e62b2 100644
--- a/info/latex-for-undergraduates/LaTeX_for_Undergraduates.tex
+++ b/info/latex-for-undergraduates/LaTeX_for_Undergraduates.tex
@@ -33,7 +33,7 @@
 		}
 	}
 	\author{Andrew Lounsbury}
-	\date{February 5, 2022}
+	\date{March 6, 2022}
 	\maketitle
 	
 	\vspace{1.5in}
@@ -110,7 +110,7 @@ View error messages by clicking the icons in the bottom-left corner.
 The font size \texttt{[12pt]} is optional and may be set to sizes other than \texttt{12}. The \href{https://ctan.org/pkg/article}{\texttt{article}} class is for regular documents.\footnote{
 	The \href{https://ctan.org/pkg/beamer}{\texttt{beamer}} class allows us to make presentation slides and posters in \LaTeX. 
 }
-The preamble is everything between \texttt{\textbackslash documentclass\{article\}} and \texttt{\textbackslash begin\{document\}}, in other words, your margins and text dimensions,\footnote{
+The preamble is everything between \verb$\documentclass{article}$ and \verb$\begin{document}$, in other words, your margins and text dimensions,\footnote{
 	An alternative method of setting these values is \texttt{\textbackslash setlength\{\textbackslash lengthname\}\{}\opt{dimension}\texttt{\}}. 
 } 
 which are optional, and your packages. \p
@@ -254,7 +254,7 @@ like this.
 	\item
 	This is \texttt{itemize}. 
 	\item% dot
-	Good labeling for \texttt{itemize} might be ``dot'', ``dash'', ``star'', ``point,'' but the utility of this depends on whether you put \texttt{\textbackslash item} on its own line or the same line as your text. 
+	Good labeling for \texttt{itemize} might be ``dot'', ``dash'', ``star'', ``point,'' but the utility of this depends on whether you put \verb$\item$ on its own line or the same line as your text. 
 	
 	\item% dot
 	\begin{itemize}
@@ -446,7 +446,7 @@ makes it much easier to see where everything is.
 	$\sup_n (b_n)$, 
 	$\int_a^b$, 
 	$\max_n\{\delta_n\}$, etc. \par
-	We can often override this by putting \texttt{\textbackslash limits}
+	We can often override this by putting \verb$\limits$
 	after each command.
 	So, we can write 
 	$\sum\limits_{i=1}^n$, 
@@ -666,29 +666,30 @@ Additionally, there are various ways to insert a space in math mode (but some of
 	\text{\textbackslash :} & \phi(x)\:\forall x & \rightarrow\:\leftarrow \\ \hline
 	\texttt{\textbackslash ;} & \phi(x)\;\forall x & \rightarrow\;\leftarrow \\ \hline
 	\text{\texttt{\textbackslash} (slash space)} & \phi(x)\ \forall x & \rightarrow \ \leftarrow\\ \hline
+	\texttt{\textbackslash nobreakspace} & \phi(x)\nobreakspace\forall x & \rightarrow\nobreakspace\leftarrow \\ \hline
 	\sim \text{ (tilde)} & \phi(x)~\forall x & \rightarrow~\leftarrow \\ \hline
 	\texttt{\textbackslash quad} & \phi(x) \quad \forall x & \rightarrow \quad \leftarrow \\ \hline
 	\texttt{\textbackslash qquad} & \phi(x) \qquad \forall x & \rightarrow \qquad \leftarrow \\ \hline
 	\end{array}
 \]
-Tildes are an example of unbreakable space, meaning the adjacent strings won't be separated over line breaks.\footnote{
-	Note that, for unknown reasons, the two tildes above didn't produce the same space, so tildes are perhaps unreliable. 
-} 
+The command \verb$\nobreakspace$ and tildes are examples of unbreakable space, meaning the adjacent strings won't be separated over line breaks.\footnote{
+	In particular, a tilde is equivalent to \texttt{\textbackslash nobreakspace \{\}}. The extra \texttt{\{\}} may cause inconsistent spacing when used with certain math symbols, as it did in the above chart. 
+}
 E.g.,\\
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - string1~string2 \par
 Rather than printing \hspace*{\fill} string1 \\
 string2, \\
 it keeps the two strings on the same line. If we remove the space between the last dash and string1, both strings will move to the previous line. This could be useful for keeping inline mathematical statements together; it may sometimes be difficult to read a formula broken up over two lines. \par
-Tildes are unbreakable in math mode and in paragraph mode. Some other options here are only unbreakable in paragraph mode; e.g., (\verb$\,$), (\verb$\:$), and (\verb$\;$). 
+The command \verb$\nobreakspace$ and tildes are unbreakable in math mode and in paragraph mode. Some other options here are only unbreakable in paragraph mode; e.g., (\verb$\,$), (\verb$\:$), and (\verb$\;$). 
 
 \section{Macros} \label{sec:macros}
 The command \verb$\newcommand{\macroname}{$\opt{definition}\verb$}$ creates a macro instruction invoked with \verb$\macroname$ that inserts the \opt{definition} wherever \verb$\macroname$ appears.\footnote{
 	The \opt{definition} can either be written on one line for potentially faster compile times or left in a readable format, but compile times won't be much faster in the former case since \LaTeX\ Workshop keeps auxiliary files. The first compilation is long, but subsequent compilations are quick because most of the compilation is already done. Hence, saving memory by reducing the number of tokens isn't very important since most of those tokens aren't recompiled. In the latter case, it's good practice to put a \texttt{\%} at the end of most lines to prevent whitespace created by \texttt{EOL} (end of line) characters. BTW: 2 \texttt{EOL} = empty line in code = \texttt{\textbackslash par}. 
 } 
-The command \verb$\newcommand*{\macroname}[n]{$\opt{definition}\verb$}$\footnote{
+The command \verb$\newcommand*{\macroname}[$\opt{n}\verb$]{$\opt{definition}\verb$}$\footnote{
 	The \texttt{*} creates a ``short'' command that invokes error messages if the \opt{definition} is broken up over paragraphs (\texttt{\textbackslash par} or an empty line). The utility here is that this will also make your compiler tell you the line number if you leave an opening brace unclosed. 
 }
-is invoked with \texttt{n} arguments $\mathit{\langle a_1 \rangle,\dots,\langle a_n \rangle}$ as $\mathtt{\texttt{\textbackslash} macroname\{\langle\mathit{a_1}\rangle\} \cdots \{\langle\mathit{a_n}\rangle\}}$. 
+is invoked with \opt{n} arguments $\mathit{\langle a_1 \rangle,\dots,\langle a_n \rangle}$ as \verb%\macroname{%$\langle\mathit{a_1}\rangle$\verb%}%$\cdots$\verb%{%$\langle\mathit{a_n}\rangle$\verb%}%. 
 In the \opt{definition}, \texttt{\#i} indicates where the \texttt{i}-th argument \opt{$a_i$} will be placed, and \verb$\hfill$ inserts white-space until a space---the space in a matrix entry, for instance---is filled. 
 \pagebreak
 \[
-- 
cgit v1.2.3

