diff options
author | Karl Berry <karl@freefriends.org> | 2009-10-03 15:12:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-10-03 15:12:47 +0000 |
commit | a515a2a457da97ce2499484ca570c60cb25fd091 (patch) | |
tree | 32d0fd8ea2e2e3a42f50bb3fcf8c7c99b873deac /Master/texmf-dist/source | |
parent | 2a8ca7fa0023e5f7eef054101f1a5ce6dfbd7ea2 (diff) |
stringstrings update (2oct09)
git-svn-id: svn://tug.org/texlive/trunk@15609 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/stringstrings/stringstrings.dtx | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/Master/texmf-dist/source/latex/stringstrings/stringstrings.dtx b/Master/texmf-dist/source/latex/stringstrings/stringstrings.dtx index dac7b247664..33a8379c000 100644 --- a/Master/texmf-dist/source/latex/stringstrings/stringstrings.dtx +++ b/Master/texmf-dist/source/latex/stringstrings/stringstrings.dtx @@ -1,6 +1,6 @@ % \iffalse %<package>\ProvidesPackage{stringstrings} -%<package>[2009/02/13 v1.03 +%<package>[2009/10/01 v1.04 %<package> Extensive array of string manipulation routines for %<package> cosmetic and programming application] %<package>\NeedsTeXFormat{LaTeX2e} @@ -9,6 +9,9 @@ % v1.01 -Included support for & character, though it loses catcode 4 % status % v1.02 -Bug fix. Needed some % chars in \convertchar to avoid extra spaces +% v1.03 -Documentation fix; notably removed 's' from \narg in \getargs +% v1.04 -Removed \rotate command, as it conflicts with environment in +% \usepackage{rotating} \documentclass{ltxdoc} \usepackage{stringstrings} \DisableCrossrefs @@ -1444,7 +1447,7 @@ % for example, to be treated like an alphabetic character rather than % a symbol. % \begin{macrocode} -% QUICK WAY TO SET UP TREATMENTS BY WHICH \rotate HANDLES VARIOUS +% QUICK WAY TO SET UP TREATMENTS BY WHICH \@rotate HANDLES VARIOUS % CHARACTERS \newcommand\Treatments[6]{% \def\AlphaCapsTreatment{#1}% <--Set=0 to remove uppercase @@ -1693,11 +1696,11 @@ \if T\theresult% % ROTATE THE ESCAPE CHARACTER, WHICH WILL LEAVE THE SYMBOL ENCODED % FOR PROPER GOBBLING (ESCAPE CHARACTER DOESN'T COUNT AS A LETTER) - \edef\rotatingword{\rotate{\rotatingword}}% + \edef\rotatingword{\@rotate{\rotatingword}}% \addtocounter{@letterindex}{-1}% \else % NORMAL CHARACTER OR SYMBOL CODE... ROTATE IT - \edef\rotatingword{\rotate{\rotatingword}}% + \edef\rotatingword{\@rotate{\rotatingword}}% \fi }% {% @@ -1707,7 +1710,7 @@ \edef\rotatingword{\ESCrotate{\expandafter\@gobble\rotatingword}}% \else % NORMAL CHARACTER... ROTATE IT - \edef\rotatingword{\rotate{\rotatingword}}% + \edef\rotatingword{\@rotate{\rotatingword}}% \fi }% % \end{macrocode} @@ -1949,7 +1952,6 @@ {\expandafter\@gobble\encodedfromarg}{\encodedtoarg}% \fi } - % \end{macrocode} % \end{macro} @@ -2674,13 +2676,13 @@ % of the string, lowering its case. Store as |\@stringA|. % \begin{macrocode} \def\AlphaCapsTreatment{2}% - \edef\@stringA{\rotate{#1}}% + \edef\@stringA{\@rotate{#1}}% % \end{macrocode} % Rotate the first [normal] character of the string to the end % of the string, retaining its case. Store as |\@stringB|. % \begin{macrocode} \def\AlphaCapsTreatment{1}% - \edef\@stringB{\rotate{#1}}% + \edef\@stringB{\@rotate{#1}}% \fi % \end{macrocode} % Compare strings A and B, to see if changing the case of first letter @@ -2712,9 +2714,9 @@ \edef\@stringB{\ESCrotate{\expandafter\@gobble\rotatingword}}% \else \def\AlphaTreatment{2}% - \edef\@stringA{\rotate{#1}}% + \edef\@stringA{\@rotate{#1}}% \def\AlphaTreatment{1}% - \edef\@stringB{\rotate{#1}}% + \edef\@stringB{\@rotate{#1}}% \fi \ifthenelse{\equal{\@stringA}{\@stringB}}% {\uncapitalizedfalse}{\uncapitalizedtrue}\?% @@ -2890,19 +2892,11 @@ % \end{macrocode} % The following routines support the execution of the \stringstrings % package. -% \begin{macro}{\rotate} -% This user-callable routine is purely a placeholder for the -% underlying service routine. -% \begin{macrocode} -% CALLS ON THE GUTS OF THIS PACKAGE. -\newcommand\rotate[1]{\@rotate{#1}} -% \end{macrocode} -% \end{macro} % \begin{macro}{\ESCrotate} % After the escape character has been ascertained as the next character, % this routine operates on the subsequent escape code to rotate the -% symbol to end of string, in the fashion of macro |\rotate|. +% symbol to end of string, in the fashion of macro |\@rotate|. % \begin{macrocode} \newcommand\ESCrotate[1]{% \if\@fromcode#1\@tostring\else @@ -3479,7 +3473,7 @@ \isnextbyte[q]{#3}{x}% \if F\theresult% % NORMAL OR ENCODED BLANK... ROTATE IT - \edef\thestring{\rotate{\thestring}}% + \edef\thestring{\@rotate{\thestring}}% \else % NORMAL OR ENCODED BLANK... DELETE IT (IF 3rd ARG=X) \@gobblearg{\thestring}{1}% |