texlive[50678] Master/texmf-dist: brandeis-problemset (31mar19)

commits+karl at tug.org commits+karl at tug.org
Sun Mar 31 23:54:16 CEST 2019


Revision: 50678
          http://tug.org/svn/texlive?view=revision&revision=50678
Author:   karl
Date:     2019-03-31 23:54:15 +0200 (Sun, 31 Mar 2019)
Log Message:
-----------
brandeis-problemset (31mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.pdf
    trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.tex
    trunk/Master/texmf-dist/doc/latex/brandeis-problemset/example.pdf
    trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.cls
    trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.sty

Modified: trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.tex	2019-03-31 21:42:07 UTC (rev 50677)
+++ trunk/Master/texmf-dist/doc/latex/brandeis-problemset/brandeis-problemset.tex	2019-03-31 21:54:15 UTC (rev 50678)
@@ -63,7 +63,7 @@
 
 \author{Rebecca Turner\thanks{Brandeis University; \email{rebeccaturner at brandeis.edu}}}
 \title{The \bps\ Document Class}
-\date{2019/03/13 0.5.2}
+\date{2019/03/30 0.5.3}
 \begin{document}
 \maketitle
 \begin{abstract}
@@ -739,6 +739,11 @@
 	context-free grammars.
 \end{version}
 
+\shortversion{v=0.5.3, date=2019-03-30, changes={Commands such as |\texttt|
+	won't automatically cause errors when used in the optional arguments
+	of the |problem| and |subproblem| environments. More complex
+	commands may still cause issues, however.}}
+
 \shortversion{v=0.5.2, date=2019-03-13, changes={Scheme code highlighting
 	erroneously highlighted \texttt{c\textbf{b}r},
 	\texttt{ca\textbf{b}r}, etc.\ rather than

Modified: trunk/Master/texmf-dist/doc/latex/brandeis-problemset/example.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.cls	2019-03-31 21:42:07 UTC (rev 50677)
+++ trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.cls	2019-03-31 21:54:15 UTC (rev 50678)
@@ -1,4 +1,4 @@
-\ProvidesClass{brandeis-problemset}[2019/03/13 0.5.2 COSI problem sets at
+\ProvidesClass{brandeis-problemset}[2019/03/30 0.5.3 COSI problem sets at
 	Brandeis University]
 \NeedsTeXFormat{LaTeX2e}
 % Description: A document class for Brandeis University's computer science

Modified: trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.sty	2019-03-31 21:42:07 UTC (rev 50677)
+++ trunk/Master/texmf-dist/tex/latex/brandeis-problemset/brandeis-problemset.sty	2019-03-31 21:54:15 UTC (rev 50678)
@@ -1,4 +1,4 @@
-\ProvidesPackage{brandeis-problemset}[2019/03/13 0.5.2 Commands for COSI
+\ProvidesPackage{brandeis-problemset}[2019/03/30 0.5.3 Commands for COSI
 	problem sets at Brandeis University]
 \NeedsTeXFormat{LaTeX2e}
 
@@ -339,10 +339,11 @@
 \newcommand{\bps at problemkeys}[2]{%
 	\expandafter\newlength\csname bps@#1indent\endcsname
 	\expandafter\setlength\csname bps@#1indent\endcsname{1in}%
-	\expandafter\def\csname bps@#1 at title\endcsname{}%
+	\expandafter\def\csname bps@#1 at title\endcsname{%
+		\@ifundefined{cmdKV@#1 at title}%
+			{}%
+			{: \csname cmdKV@#1 at title\endcsname}}%
 	\expandafter\def\csname bps@#1 at number\endcsname{\arabic{#1number}}%
-	\define at key{#1}{title}{%
-		\expandafter\renewcommand{\csname bps@#1 at title\endcsname}{: #1}}%
 	\expandafter\def\csname bps@#1pagebreak\endcsname{%
 		\csname ifKV@#1 at pagebreak\endcsname
 			\vfill\pagebreak
@@ -354,7 +355,7 @@
 			*%
 		\fi}%
 	\define at boolkey{#1}{toc}[true]{}%
-	\define at cmdkeys{#1}{number, label}%
+	\define at cmdkeys{#1}{number, label, title}%
 	\presetkeys{#1}{pagebreak=#2, toc}{}%
 }
 
@@ -379,13 +380,15 @@
 	\@ifundefined{cmdKV@#1 at number}{%
 		\stepcounter{#1number}%
 	}{%
-		\expandafter\let\csname bps@#1 at number\expandafter\endcsname
-			\csname cmdKV@#1 at number\endcsname
+		\expandafter\def\csname bps@#1 at number\endcsname
+			{\expandafter\noexpand\csname cmdKV@#1 at number\endcsname}%
 	}%
 	% define labels for \ref and the like
-	\edef\@currentlabel{#2}%
-	\edef\bps at problem@title@{Problem \@currentlabel\csname bps@#1 at title\endcsname}
-	\edef\@currentlabelname{\bps at problem@title@}%
+	\def\@currentlabel{#2}%
+	\edef\bps at problem@title@{Problem
+		\@currentlabel% the problem number
+		\expandafter\noexpand\csname bps@#1 at title\endcsname}
+	\def\@currentlabelname{\bps at problem@title@}%
 	% no spaces or numbers before the \section command
 	\renewcommand{\@seccntformat}[1]{}%
 	\typeout{\@currentlabelname}



More information about the tex-live-commits mailing list