summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/memoir
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-11-22 03:00:38 +0000
committerNorbert Preining <norbert@preining.info>2019-11-22 03:00:38 +0000
commit28453b76f5307a4e4f018d469cdd8eb18e7d048b (patch)
treeef08916d859a7174cb62de39176ad83a030563fb /macros/latex/contrib/memoir
parent6332f770ef657658c6e3068266d960d18d185036 (diff)
CTAN sync 201911220300
Diffstat (limited to 'macros/latex/contrib/memoir')
-rw-r--r--macros/latex/contrib/memoir/README6
-rw-r--r--macros/latex/contrib/memoir/memman.pdfbin2800232 -> 2800333 bytes
-rw-r--r--macros/latex/contrib/memoir/memoir.dtx63
3 files changed, 42 insertions, 27 deletions
diff --git a/macros/latex/contrib/memoir/README b/macros/latex/contrib/memoir/README
index b133416d7b..8f2448200d 100644
--- a/macros/latex/contrib/memoir/README
+++ b/macros/latex/contrib/memoir/README
@@ -27,6 +27,12 @@ o Backmatter:
Command glossary ~ 40 pages
Bibliography, indexes ~ 50 pages
+Changed (2019/11/21)
+
+o memoir v3.7j
+
+-- Typo when textcase.sty is not found. The embedded fallback
+ (textcase v0.07, 2004) nedded # doubling, now fixed.
Changed (2019/11/15)
diff --git a/macros/latex/contrib/memoir/memman.pdf b/macros/latex/contrib/memoir/memman.pdf
index 346b815bd3..01af28adb9 100644
--- a/macros/latex/contrib/memoir/memman.pdf
+++ b/macros/latex/contrib/memoir/memman.pdf
Binary files differ
diff --git a/macros/latex/contrib/memoir/memoir.dtx b/macros/latex/contrib/memoir/memoir.dtx
index aefdd23d05..0139b5c4bd 100644
--- a/macros/latex/contrib/memoir/memoir.dtx
+++ b/macros/latex/contrib/memoir/memoir.dtx
@@ -113,11 +113,13 @@
% \changes{v3.7c}{2015/03/05}{Bugfix}
% \changes{v3.7d}{2015/04/23}{Misc. bugfixes}
% \changes{v3.7e}{2015/07/08}{Per request from LaTeX Team, etex is not
-% autoloaded on newer kernels}
+% autoloaded on newer kernels}
% \changes{v3.7f}{2016/05/16}{Maintenance, luatex85 and booktabs update}
%
% \changes{v3.7h}{2018/12/12}{Maintenance, removing some emulated packages}
% \changes{v3.7i}{2019/11/15}{Maintenance, various edits}
+% \changes{v3.7j}{2019/11/21}{Typo in embeded textcase, now that it is
+% inside \cs{IfFileExists} \# needs to be doubled}
%
% \def\dtxfile{memoir.dtx}
%
@@ -175,6 +177,7 @@
% \def\fileversion{v3.7g} \def\filedate{2018/04/04}
% \def\fileversion{v3.7h} \def\filedate{2018/12/12}
% \def\fileversion{v3.7i} \def\filedate{2019/11/15}
+% \def\fileversion{v3.7j} \def\filedate{2019/11/21}
% \title{The LaTeX \Lpack{memoir} class for configurable book
% typesetting: Source code\thanks{This
% file (\texttt{\dtxfile}) has version number \fileversion, last revised
@@ -405,13 +408,13 @@
% Announce the name, option files and version for LaTeX2e files:
% \begin{macrocode}
%<class>\ProvidesClass{memoir}%
-%<class> [2019/11/15 v3.7i configurable book, report, article document class]
+%<class> [2019/11/21 v3.7j configurable book, report, article document class]
% \end{macrocode}
% In the manual it is useful to know the current version.
% \begin{macrocode}
-%<class>\newcommand\memversion{v3.7i, 2019/11/15}
+%<class>\newcommand\memversion{v3.7j, 2019/11/21}
%<9pt>\ProvidesFile{mem9.clo}%
-%<9pt> [2008/01/30 v0.4 memoir class 9pt size option]
+%<9pt> [2008/01/30 v0.4 memoir class 9pt size option]
%<10pt>\ProvidesFile{mem10.clo}%
%<10pt> [2008/01/30 v0.3 memoir class 10pt size option]
%<11pt>\ProvidesFile{mem11.clo}%
@@ -35761,8 +35764,14 @@
% \end{macrocode}
%
% \MakeShortVerb{\|}
+% \changes{v3.7j}{2019/11/21}{Forgot to double the \# inside
+% \cs{IfFileExists}, also added a warning if textcase if not found on
+% the system}
% \begin{macrocode}
-%%%% Nearly a carbon copy from textcase.dtx by David Carlisle
+ \@memwarn{Haven't found the textcase package,\MessageBreak resorting to embedded
+ copy of v0.07 (2004/10/07),\MessageBreak consider installing the textcase package}
+%%%% Nearly a carbon copy from textcase.dtx by David Carlisle
+%%%% Since we are inside a \IfFileExists we need to double the #/daleif
% \end{macrocode}
% \begin{macro}{\@uclcnotmath}
% This is the main macro from \texttt{textcase}. It is basically
@@ -35781,11 +35790,11 @@
% |#3|: |\uppercase| or |\lowercase|.\\
% |#4|: The text to be upper (or lower) cased.
% \begin{macrocode}
-\def\@uclcnotmath#1#2#3#4{\begingroup
+\def\@uclcnotmath##1##2##3##4{\begingroup
% \end{macrocode}
% Run extra commands (currently just to redefine |\i| and |\j|).
% \begin{macrocode}
- #1%
+ ##1%
% \end{macrocode}
%
% Locally set |\( \)| to be just |$ $|, so that the math skipping
@@ -35796,7 +35805,7 @@
%
% Set up the `non-math' things that also have to be skipped.
% \begin{macrocode}
- \def\NoCaseChange##1{\noexpand\NoCaseChange{\noexpand##1}}%
+ \def\NoCaseChange####1{\noexpand\NoCaseChange{\noexpand####1}}%
\@nonchangecase\label
\@nonchangecase\ref
\@nonchangecase\ensuremath
@@ -35813,8 +35822,8 @@
% \uppercase{ more text}
%\end{verbatim}
% \begin{macrocode}
- \def\cite##1##{\toks@{\noexpand\cite##1}\@citex}%
- \def\@citex##1{\NoCaseChange{\the\toks@{##1}}}%
+ \def\cite####1####{\toks@{\noexpand\cite####1}\@citex}%
+ \def\@citex####1{\NoCaseChange{\the\toks@{####1}}}%
% \end{macrocode}
% (|\@citex| is a scratch macro here, not a redefinition of the existing
% |\@citex|.)
@@ -35829,7 +35838,7 @@
% (a) this code is essentially a copy from the kernel, and
% (b) I'm allowed to break the rules, so there.
% \begin{macrocode}
- \def\reserved@a##1##2{\let#2\reserved@a}%
+ \def\reserved@a####1####2{\let##2\reserved@a}%
\expandafter\reserved@a\@uclclist\reserved@b{\reserved@b\@gobble}%
% \end{macrocode}
%
@@ -35840,7 +35849,7 @@
% the parsing done by |\@skipmath|.
% \begin{macrocode}
\protected@edef\reserved@a{\endgroup
- \noexpand\@skipmath#3#4$\valign$}%
+ \noexpand\@skipmath##3##4$\valign$}%
% \end{macrocode}
%
% \begin{macrocode}
@@ -35850,7 +35859,7 @@
%
% \begin{macro}{\@nonchangecase}
% \begin{macrocode}
-\def\@nonchangecase#1{\def#1##1{\NoCaseChange{#1{##1}}}}
+\def\@nonchangecase##1{\def##1####1{\NoCaseChange{##1{####1}}}}
% \end{macrocode}
% \end{macro}
%
@@ -35872,12 +35881,12 @@
% |#2|: text up to first (next) |$|\\
% |#3|: first math mode material (or |\valign| sentinel)
% \begin{macrocode}
-\def\@skipmath#1#2$#3${%
- \@skip@nonchangecase#1#2\NoCaseChange\valign
- \ifx\valign#3%
+\def\@skipmath##1##2$##3${%
+ \@skip@nonchangecase##1##2\NoCaseChange\valign
+ \ifx\valign##3%
\else
- $#3$%
- \expandafter\@skipmath\expandafter#1%
+ $##3$%
+ \expandafter\@skipmath\expandafter##1%
\fi}
% \end{macrocode}
% \end{macro}
@@ -35887,12 +35896,12 @@
% |#2|: Text up to the first command (such as |\cite|) made `safe'.
% or the first use of |\NoCaseChange|.
% \begin{macrocode}
-\def\@skip@nonchangecase#1#2\NoCaseChange#3{%
- #1{#2}%
- \ifx\valign#3%
+\def\@skip@nonchangecase##1##2\NoCaseChange##3{%
+ ##1{##2}%
+ \ifx\valign##3%
\else
- #3%
- \expandafter\@skip@nonchangecase\expandafter#1%
+ ##3%
+ \expandafter\@skip@nonchangecase\expandafter##1%
\fi}
% \end{macrocode}
% \end{macro}
@@ -35902,11 +35911,11 @@
% to read the pairs in the ucase list `forwards'.
% \begin{macrocode}
\DeclareRobustCommand\MakeTextUppercase{%
- \@uclcnotmath{\def\i{I}\def\j{J}}{##1##2}\uppercase}
+ \@uclcnotmath{\def\i{I}\def\j{J}}{####1####2}\uppercase}
% \end{macrocode}
%
% \begin{macrocode}
-\protected@edef\MakeTextUppercase#1{\MakeTextUppercase{#1}}
+\protected@edef\MakeTextUppercase##1{\MakeTextUppercase{##1}}
% \end{macrocode}
% \end{macro}
%
@@ -35914,11 +35923,11 @@
% Use |\lowercase| and read the pairs in the uppercase list `backwards'.
% \begin{macrocode}
\DeclareRobustCommand\MakeTextLowercase{%
- \@uclcnotmath{}{##2##1}\lowercase}
+ \@uclcnotmath{}{####2####1}\lowercase}
% \end{macrocode}
%
% \begin{macrocode}
-\protected@edef\MakeTextLowercase#1{\MakeTextLowercase{#1}}
+\protected@edef\MakeTextLowercase##1{\MakeTextLowercase{##1}}
% \end{macrocode}
% \end{macro}
% \begin{macrocode}