From 23084c92f895a6e49a413c7ca9190731156f2789 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Fri, 16 Nov 2007 11:02:05 +0000 Subject: gmutils v0.80 git-svn-id: svn://tug.org/texlive/trunk@5452 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/gmutils/gmutils.sty | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/gmutils') diff --git a/Master/texmf-dist/tex/latex/gmutils/gmutils.sty b/Master/texmf-dist/tex/latex/gmutils/gmutils.sty index 2d2c7a78f3f..4732dc42dfe 100644 --- a/Master/texmf-dist/tex/latex/gmutils/gmutils.sty +++ b/Master/texmf-dist/tex/latex/gmutils/gmutils.sty @@ -40,12 +40,13 @@ % \chschange{v0.74}{06/12/1}{1185} % \chschange{v0.76}{07/4/9}{1538} % \chschange{v0.77}{07/4/14}{1547} -% \chschange{v0.78}{2007/4/26}{1685} +% \chschange{v0.78}{07/4/26}{1685} +% \chschange{v0.80}{2007/4/29}{1689} % \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{gmutils} - [2007/04/24 v0.78 some rather TeXnical macros, some of them tricky (GM)] + [2007/04/28 v0.80 some rather TeXnical macros, some of them tricky (GM)] % % \tableofcontents @@ -892,9 +893,18 @@ % anything. Nowadays, when memory is cheap, the list of only-preamble % commands should be rethought \IMO. -\newcommand\not@onlypreamble[1]{% + +% \CodeDefine\not@onlypreamble +% \changes{v0.79}{2007/04/28}{All the actions are done in a~group and +% therefore \cs{xdef} used instead of \cs{edef} because this command +% has to use \cs{do} (which is contained in the \cs{@preamblecmds} +% list) and \cs{not@onlypreamble} itself should be able to be let to +% \cs{do}} +\newcommand\not@onlypreamble[1]{{% \def\do##1{\ifx#1##1\else\@nx\do\@nx##1\fi}% - \edef\@preamblecmds{\@preamblecmds}} + \xdef\@preamblecmds{\@preamblecmds}}} + + \not@onlypreamble\@preamblecmds \not@onlypreamble\@ifpackageloaded @@ -1459,6 +1469,10 @@ \def\dekmedskip{\vskip\medskipamount} \def\dekbigskip{\vskip\bigskipamount} +% \CodeDefine\hfillneg +% \changes{v0.80}{2007/04/28}{added} +\def\hfillneg{\hskip 0pt plus -1fill\relax} + % In some |\if(cat?)|\ test I~needed to look only at the first token of % a~tokens' string (first letter of a~word usually) and to % drop the rest of it. So I~define a~macro that expands -- cgit v1.2.3