texlive[70199] Master/texmf-dist/doc/latex/latex-for-undergraduates:
commits+karl at tug.org
commits+karl at tug.org
Tue Feb 27 21:46:55 CET 2024
Revision: 70199
https://tug.org/svn/texlive?view=revision&revision=70199
Author: karl
Date: 2024-02-27 21:46:55 +0100 (Tue, 27 Feb 2024)
Log Message:
-----------
latex-for-undergraduates (27feb24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.pdf
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.tex
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/README.md
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.pdf
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.tex
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.tex 2024-02-27 20:46:43 UTC (rev 70198)
+++ trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/LaTeX_for_Undergraduates.tex 2024-02-27 20:46:55 UTC (rev 70199)
@@ -33,13 +33,18 @@
}
}
\author{Andrew Lounsbury}
- \date{October 6, 2022}
+ \date{February 27, 2024}
\maketitle
\vspace{1.5in}
+
To put a title on a simple homework assignment, you only need lines \texttt{31}-\texttt{37} in the code (\texttt{LaTeX\_for\_Undergraduates.tex}) instead of an entire \texttt{titlepage}, but you don't necessarily have to use this method. You can put the title, your name, and the date on the paper however you'd like. \\
As you read this, use the keyboard shortcut Ctrl + F to search for specific things in the code so that you can compare the code precisely to what's being printed.
+ \vspace{1.5in}
+ \begin{center}
+ \includegraphics[width=0.15\textwidth]{TechSignatureSeal_Purple_RGB.jpg}
+ \end{center}
\end{titlepage}
\tableofcontents
@@ -476,7 +481,7 @@
When nesting block delimiters inside of each other, it is often beneficial to use an abbreviation of \verb$\boldsymbol$ to bold the outer delimiters. For instance, $g^{-1}\bs((c,d)\bs)$ is a little better than $g^{-1}((c,d))$.
\end{notation}
-\subsection{Displaying Multiple Lines of Math} \label{subsec:multiple-lines}
+\subsection{Displaying Multiple Lines of Math and Trees} \label{subsec:multiple-lines}
There are several ways to display multiple lines of math. Some environments have predefined numbering. Add a \texttt{*} when you \texttt{begin} and \texttt{end} the environment to remove numbering. Note that \verb$\\$ creates a new row.
\subsubsection{\texttt{gather}} \label{subsubsec:gather}
@@ -549,19 +554,40 @@
\begin{array}{|c||c|c|}
\hline
G_1 & A & B \\ \hline\hline
- A & \mathbf{8},\mathbf{8} & \mathbf{6},6 \\ \hline
- B & 6,\mathbf{6} & 2,2 \\ \hline
+ A & (8),(8) & (6),6 \\ \hline
+ B & 6,(6) & 2,2 \\ \hline
\end{array}
&
\begin{array}{|c||c|c|}
\hline
G_2 & A & B \\ \hline\hline
- A & 3,3 & 1, \mathbf{5} \\ \hline
- B & \mathbf{5},1 & \mathbf{2},\mathbf{2} \\ \hline
+ A & (-3), (-3) & (0), -5 \\ \hline
+ B & -5,(0) & -1, -1 \\ \hline
\end{array}
\end{array}
\]
+\subsubsection{Trees}
+While we're talking about games, we ought to make note of many tree-drawing packages out there, such as \href{https://ctan.org/pkg/istgame}{\texttt{istgame}}, which allows the user to draw game trees:
+\begin{center}
+ \begin{istgame}
+ \xtdistance{15mm}{40mm} % {vertical length}{horizontal length}
+ \istroot(0)(0,0){$w_{i-1}$}
+ \istb[very thick, blue]{Challenge}[above left]
+ \istb{Stay}[above right]
+ \endist
+ \xtdistance{10mm}{15mm}
+ \istroot(1)(0-1)<120>{$w_i$}
+ \istb[very thick, blue]{Relegate}[al]{2, 2}
+ \istb{Stay}[ar]{$-2, -1$}
+ \endist
+ \istroot(2)(0-2)<30>{$w_i$}
+ \istb[very thick, blue]{Relegate}[al]{1, 2}
+ \istb{Stay}[ar]{$-1, -1$}
+ \endist
+ \end{istgame}
+\end{center}
+
\subsubsection{Matrices} \label{subsubsec:matrices}
Math mode must be specified for matrices.
\begin{gather*}
@@ -657,7 +683,6 @@
\subsection{Escape Sequences and White-space in Math Mode} \label{subsec:escape}
Use \verb$\$ to insert characters that would otherwise be used in \LaTeX\ syntax. Some examples are \_, \%, \#, \$, \{, \}, and similarly, \verb$\lbrack$ and \verb$\rbrack$. \par
Additionally, there are various ways to insert a space in math mode (but some of these may also be used in paragraph mode.)
-\newpage
\[
\begin{array}{||l||c||c||}
\hline \text{\texttt{\textbackslash !} (negative thin)} & \phi(x) \!\forall x & \rightarrow\!\leftarrow \\ \hline\hline
@@ -691,7 +716,6 @@
}
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
\[
\begin{array}{c|c|c|c|c}
\fivevec{1}{2}{333}{44500}{5} &
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/README.md 2024-02-27 20:46:43 UTC (rev 70198)
+++ trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/README.md 2024-02-27 20:46:55 UTC (rev 70199)
@@ -1,7 +1,7 @@
# LaTeX for Undergraduates
## Author: Andrew Lounsbury, alounsbury8 at gmail.com
-## Version 1.0.2
-## 2022/10/06
+## Version 1.0.3
+## 2024/2/27
## License: Public Domain
## Author's Note
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.tex 2024-02-27 20:46:43 UTC (rev 70198)
+++ trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros-doc.tex 2024-02-27 20:46:55 UTC (rev 70199)
@@ -11,7 +11,7 @@
\begin{document}
\title{The \texttt{alounsburymacros} package}
- \author{1.0.2 \ 2022/10/06}
+ \author{1.0.3 \ 2024/2/27}
\date{Andrew Lounsbury}
\maketitle
@@ -54,7 +54,10 @@
\href{https://ctan.org/pkg/calligra}{\texttt{calligra}},
\href{https://ctan.org/pkg/enumitem}{\texttt{enumitem}},
\href{https://ctan.org/pkg/fancyvrb}{\texttt{fancyvrb}},
+ \href{https://ctan.org/pkg/fontenc}{\texttt{fontenc}},
\href{https://ctan.org/pkg/graphicx}{\texttt{graphicx}},
+ \href{https://ctan.org/pkg/istgame}{\texttt{istgame}},
+ \href{https://ctan.org/pkg/multicol}{\texttt{multicol}},
\href{https://ctan.org/pkg/pagecolor}{\texttt{pagecolor}},
\href{https://ctan.org/pkg/pifont}{\texttt{pifont}},
\href{https://ctan.org/pkg/suppose}{\texttt{suppose}},
Modified: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros.sty 2024-02-27 20:46:43 UTC (rev 70198)
+++ trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/alounsburymacros.sty 2024-02-27 20:46:55 UTC (rev 70199)
@@ -1,4 +1,4 @@
-% alounsburymacros.sty 1.0.2 2022/10/06
+% alounsburymacros.sty 1.03 2024/2/27
% Andrew Lounsbury
% This file was not generated from source code.
@@ -6,7 +6,7 @@
% Marking this file as a package
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{alounsburymacros}[2022/10/06 1.0.2 miscellaneous commands]
+\ProvidesPackage{mymacros}[2024/2/27 1.0.3 miscellaneous commands]
% This allows commands that use things from these packages to work even if we
% haven't put them in \usepackage{} in the preamble.
@@ -13,14 +13,13 @@
\RequirePackage{forloop, mathrsfs, mathtools, nicefrac, xcolor}
% Otherwise, we could list packages we often use to avoid having to include them
% in the preamble of our tex files.
-%===================================================================================%
-% In other words, the use of \usepackage{} for packages other than alounsburymacros %
-% at the beginning of LaTeX_for_Undergraduates.tex is merely there for the sake of %
-% example. %
-%===================================================================================%
-\RequirePackage{amsmath, amsfonts, amssymb, amsthm, cancel, calligra, enumitem, fancyvrb, graphicx, pagecolor, pifont, suppose, totcount, upgreek, verbatim, verse}
-\RequirePackage{fontenc}
+% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+% In other words, the use of \usepackage{} for packages other than mymacros at the *
+% beginning of LaTeX_for_Undergraduates.tex is merely there for the sake of example.*
+% * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
+\RequirePackage{amsmath, amsfonts, amssymb, amsthm, cancel, calligra, enumitem, fancyvrb, fontenc, graphicx, istgame, multicol, pagecolor, pifont, soul, totcount, upgreek, ulem, verbatim, verse}
\PassOptionsToPackage{T1}{fontenc}
+\PassOptionsToPackage{normalem}{ulem}
% GENERAL COMMANDS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% From enumitem package
@@ -30,8 +29,9 @@
parsep=0pt,
}
-% For <...> arguments in LaTeX_for_Undergraduates.tex
+% For <...> options in LaTeX_for_Undergraduates.tex
\newcommand*{\opt}[1]{$\langle$\textit{#1}$\rangle$}
+\newcommand*{\mopt}[1]{\text{$\langle$\textit{#1}$\rangle$}}
% Troubleshooting
\newcommand{\ee}{\end{enumerate}}
@@ -40,14 +40,6 @@
% LaTeX Workshop autocompletes \par to \paragraph{}, which gets annoying.
\newcommand{\p}{\par}
-% Horizontal separator with option to add label
-\newcommand*{\hl}[1][\unskip]{%
- \noindent\textbf{#1} \\%
- \makebox{%
- \rule[1.5ex]{0.75\paperwidth}{0.8pt}%
- }%
-}
-
% \renewcommand overrides a command that has already been defined.
% In the proof environment, \qedsymbol defaults to a white square.
% I prefer a black square, so I change it here.
@@ -64,6 +56,7 @@
% The second {} contains what will be displayed.
\newtheorem{claim}{Claim} % numbered
\newtheorem*{claim*}{Claim} % not numbered
+\newtheorem{conjecture}{Conjecture}
\newtheorem*{conjecture*}{Conjecture}
\newtheorem{corollary}{Corollary}
\newtheorem*{corollary*}{Corollary}
@@ -77,15 +70,22 @@
\newtheorem*{theorem*}{Theorem}
\theoremstyle{definition} % removes italics from the following
+\newtheorem{axiom}{Axiom}
+\newtheorem*{axiom*}{Axiom}
\newtheorem{case}{Case}
\newtheorem{counterexample}{Counterexample}
\newtheorem*{counterexample*}{Counterexample}
\newtheorem{definition}{Definition}
\newtheorem*{definition*}{Definition}
+\newtheorem{definitions}{Definitions}
+\newtheorem*{definitions*}{Definitions}
\newtheorem{example}{Example}
\newtheorem*{example*}{Example}
+\newtheorem{examples}{Examples}
+\newtheorem*{examples*}{Examples}
\newtheorem{nonexample}{Non-Example}
\newtheorem*{nonexample*}{Non-Example}
+\newtheorem{fact}{Fact}
\newtheorem*{fact*}{Fact}
\newtheorem{notation}{Notation}
\newtheorem*{notation*}{Notation}
@@ -147,6 +147,9 @@
\newtheorem*{cremark*}{\colorbox{cyan}{Remark}}
%-----------------------------------------------------------------
+% For double row separators in arrays
+\newcommand{\hhline}{\hline\hline}
+
% For inductive proofs and recursive definitions
\newcommand{\bc}{\textbf{\underline{Base case}: }}
\newcommand{\ind}{\textbf{\underline{Induction step}: }}
@@ -167,11 +170,11 @@
\newcommand{\on}{\text{ on}\ }
\newcommand{\ona}{\text{ on a}\ }
\newcommand{\ow}{\text{o/w}\ } % otherwise
-\newcommand{\st}{\text{s.t.}\ } % such that
+\newcommand{\suchthat}{\text{s.t.}\ } % such that
\newcommand{\mst}{\text{ s.t.}\ } % math such that
\newcommand{\ou}{\text{ or}\ }
\renewcommand{\over}{\text{ over}\ }
-\newcommand{\so}{\text{ so}\ }
+\newcommand{\alors}{\text{ so}\ }
\newcommand{\tms}{\text{ times}\ } % for \underbrace{...}_{n times}
\newcommand{\undef}{\text{undef.}\ }
\newcommand{\with}{\text{ with}\ }
@@ -204,11 +207,12 @@
\newcommand{\mbf}{\mathbf} % math bold face
\newcommand*{\ol}[1]{\overline{#1}}
\newcommand*{\ttt}[1]{\texttt{#1}}
-\newcommand*{\ul}[1]{\underline{#1}}
+\newcommand*{\unl}[1]{\underline{#1}}
\newcommand{\vn}{\varnothing}
\newcommand{\wt}{\widetilde}
% My notations
+\newcommand*{\ine}[1]{{\in_{#1}}}
\newcommand*{\msum}[3]{\sum\limits_{#1=#2}^{#3}} % my sum
\newcommand*{\mprod}[3]{\prod\limits_{#1=#2}^{#3}} % my prod
\newcommand*{\mcap}[3]{\cap_{#1=#2}^{#3}} % etc.
@@ -236,6 +240,7 @@
\newcommand{\cmark}{\ding{51}\ } % pifont
\newcommand{\xmark}{\ding{55}\ }
\newcommand*{\cb}[2]{\colorbox{#1}{#2}} % xcolor
+\newcommand*{\cbb}[1]{\colorbox{blue}{#1}}
\newcommand*{\cbr}[1]{\colorbox{red}{#1}}
\newcommand{\cbg}{\cb{darkpastelgreen}}
\newcommand*{\cby}[1]{\colorbox{yellow}{#1}}
@@ -255,7 +260,7 @@
\pagecolor{black}
\color{white}
}
-\DeclareOption*{\PackageWarning{alounsburymacros}{Unknown '\CurrentOption'}}
+\DeclareOption*{\PackageWarning{mymacros}{Unknown '\CurrentOption'}}
\ProcessOptions\relax
%--------------------------------------------------------------------------
@@ -288,10 +293,10 @@
%-------------------------------------------------------------------------
% ALGEBRA
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\renewcommand{\O}{\mathcal{O}}
-% ALGEBRAIC GEOMETRY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% ALGEBRAIC GEOMETRY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\V}{\mathbf{V}}
\newcommand{\I}{\mathbf{I}}
\newcommand{\Va}{\V_a}
@@ -388,6 +393,11 @@
\newcommand{\Max}{\max\limits}
\newcommand{\Min}{\min\limits}
+\newcommand{\Bigwedge}{\bigwedge\limits}
+\newcommand{\Bigvee}{\bigvee\limits}
+\newcommand{\Land}{\Bigwedge}
+\newcommand{\Lor}{\Bigvee}
+
\newcommand{\Inf}{\inf\limits}
\newcommand{\Sup}{\sup\limits}
\newcommand*{\minf}[1]{\Inf_{#1}}
@@ -530,8 +540,9 @@
% contradiction
\newcommand{\contra}{\ensuremath{\rightarrow\mspace{-2.5mu}\leftarrow}}
\newcommand{\ex}{\exists}
-\newcommand{\fall}{\forall}
-\newcommand{\fa}{\,\forall}
+\newcommand{\nex}{\nexists}
+\newcommand{\fa}{\forall}
+\newcommand{\fall}{\,\forall}
% forward implication
\newcommand{\fim}{%
\mbox{
@@ -552,7 +563,9 @@
\newcommand{\slor}{\,\lor\, } % space logical or
\newcommand{\tf}{\therefore\,} % I sometimes prefer a little space after this.
-\newcommand{\bij}{\longleftrightarrow} % bijection
+\newcommand{\bic}{\longleftrightarrow} % biconditional
+\newcommand{\notbic}{%
+ \mathrel{{\ooalign{\hidewidth$\not\phantom{"}$\hidewidth\cr$\bic$}}}}
\newcommand{\varbij}{\hookrightarrow\hspace{-8pt}\rightarrow}
\newcommand{\inj}{\rightarrowtail} % one-to-one
\newcommand{\varinj}{\hookrightarrow}
@@ -575,9 +588,11 @@
\newcommand{\proves}{\vd}
\newcommand{\vdd}{\vDash} % satisfies
\newcommand{\satisfies}{\vdd}
+\newcommand{\yields}{\vd}
+\newcommand{\entails}{\vdd}
-\newcommand{\nec}{\scalebox{0.75}{$\square$}} % necessarily
-\newcommand{\poss}{\scalebox{1.25}{$\diamond$}} % possibly
+\DeclareMathOperator{\nec}{\scalebox{0.75}{$\square$}} % necessarily
+\DeclareMathOperator{\poss}{\scalebox{1.25}{$\diamond$}} % possibly
\newcommand{\fA}{\mathfrak{A}}
\newcommand{\fB}{\mathfrak{B}}
@@ -587,6 +602,39 @@
\newcommand{\IFF}{\text{ iff\ }}
\newcommand{\sbar}{\ol{s}}
+\newcommand{\xor}{\veebar}
+\DeclareMathOperator*{\Xor}{\underline{\bigvee\limits}}
+\newcommand{\symdif}{\ominus}
+
+\newcommand{\this}[1]{\ul{this}_{#1}}
+\newcommand{\spec}[1]{\ul{is}_{#1}}
+
+\newcommand{\en}{\mathcal{N}}
+
+\newcommand{\cod}{\mathrm{cod}}
+\newcommand{\dom}{\mathrm{dom}}
+
+\newcommand{\com}{\mathrm{com}}
+\newcommand{\inc}{\mathrm{inc}}
+\newcommand{\eni}{\mathrm{eni}}
+\newcommand{\exc}{\mathrm{exc}}
+\newcommand{\fut}{\mathrm{fut}}
+\newcommand{\im}{\mathrm{im}}
+\newcommand{\past}{\mathrm{past}}
+\newcommand{\pos}{\mathrm{poss}}
+\newcommand{\pot}{\mathrm{pot}}
+\newcommand{\pres}{\mathrm{pres}}
+\newcommand{\rel}{\mathrm{rel}}
+\newcommand{\sh}{\mathrm{sh}}
+
+\newcommand{\wasin}{\blacktriangleleft}
+\newcommand{\wasnotin}{\not\blacktriangleleft}
+\newcommand{\willin}{\lessdot}
+\newcommand{\willnotin}{
+ \mathrel{\not\mkern-5mu\lessdot}}
+
+% \newcommand{\spec}[1]{\mathfrak{S}_{#1}}
+
% PDE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\dtau}{\,d\tau}
@@ -647,4 +695,31 @@
\begin{center}
\textbf{***}\vspace{-0.25cm}
\end{center}
-}
\ No newline at end of file
+}
+
+\newtotcounter{numSS}
+\newtotcounter{numM}
+\newcommand{\adds}{
+ \addtocounter{numSS}{1}
+ \addtocounter{total}{1}
+}
+\newcommand{\addm}{
+ \addtocounter{numM}{1}
+ \addtocounter{total}{1}
+}
+\newcounter{piecewise}
+\newcommand{\addp}{%
+ (\thepiecewise)
+ \addtocounter{piecewise}{1}
+}
+\newcounter{reading}
+\newcommand{\addr}{%
+ (\thereading)
+ \addtocounter{reading}{1}
+}
+\newcounter{stem}
+\newcommand{\addstem}{%
+ (\thestem)
+ \addtocounter{stem}{1}
+}
+\newcommand{\push}{\vfill\null\columnbreak}
\ No newline at end of file
Added: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg
===================================================================
--- trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg 2024-02-27 20:46:43 UTC (rev 70198)
+++ trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg 2024-02-27 20:46:55 UTC (rev 70199)
Property changes on: trunk/Master/texmf-dist/doc/latex/latex-for-undergraduates/images/TechSignatureSeal_Purple_RGB.jpg
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
More information about the tex-live-commits
mailing list.