Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

CTAN Update: undolabl

15 views
Skip to first unread message

CTAN Announcements

unread,
Jul 15, 2010, 5:08:31 AM7/15/10
to ctan...@dante.de
On Thu, 15 Jul 2010, Hans-Martin Münch submitted an update to the

undolabl

package.

Summary description: This package allows to override existing labels, especially automatically generated ones.
License type: lppl

Announcement text:
----------------------------------------------------------------------
Updated to the recent code version of Ulrich Diez
WARNING: Since version 1.0d [2010/07/15] the \undonewlabel
command takes
only one argument, \undonewlabel{<label name>}, instead of
two, \undonewlabel{<label
name>}{\on@line}. Packages or documents, which used older
versions of
the undolabl package, must be updated by removing the second
argument of
\undonewlabel, i. e. the {\on@line}.
----------------------------------------------------------------------

This package is located at
http://mirror.ctan.org/macros/latex/contrib/undolabl/
. More information is at
http://tug.ctan.org/info/?id=undolabl
(if the package is new it may take a day for that information to
appear). We are supported by the TeX Users Group http://www.tug.org .
Please join a users group; see http://www.tug.org/usergroups.html .


Thanks for the upload.

For the CTAN Team
Rainer Schöpf

Ulrich D i e z

unread,
Jul 17, 2010, 6:27:10 AM7/17/10
to
(google-groups-users/web-interface-users please make sure to view
this posting in "original format".)

CTAN Announcements:

> On Thu, 15 Jul 2010, Hans-Martin Münch submitted an update to the
>
> undolabl
>
> package.
>
> Summary description: This package allows to override existing labels, especially automatically generated ones.
> License type: lppl
>
> Announcement text:
> ----------------------------------------------------------------------
> Updated to the recent code version of Ulrich Diez
> WARNING: Since version 1.0d [2010/07/15] the \undonewlabel

[...]

I found some nitpicking-issues with the current undolabl-package
--- "current" in this context denotes undolabl [2010/07/15 v1.0d
Overriding labels (HMM)] :


- In the documentation (dtx/pdf/preamble of generated files etc),
an url is provided:
\url{http://groups.google.de/group/comp.text.tex/msg/5ba8d4722e5cd326}
That's a pointer to the code wherefrom the previous release of the package
is derived.

The code wherefrom the current release of the package is derived can
be found at
\url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}
(That url also "presents" the code in "original format".)


- In the definition of \@overriddenmessage (both .sty-file and
.dtx-file) a comment-char is missing---this might yield producing
additional spaces.

You find there:

\newcommand\@overriddenmessage[2]{%
\@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{%
\expandafter\g@addto@macro\csname #1@#2\endcsname{i}%
}%
\PackageWarning{undolabl}{Label `#2' overridden}
}

It should be:

\newcommand\@overriddenmessage[2]{%
\@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{%
\expandafter\g@addto@macro\csname #1@#2\endcsname{i}%
}%
\PackageWarning{undolabl}{Label `#2' overridden}%%%%%%%%%
}

( I think omitting that comment-char occurred when \@latex@warning
was replaced by \PackageWarning as with the code provided in the
usenet-posting
\url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}
---be sure that is shown in "original format"---no spurious
space-token is produced:

\newcommand*\@overriddenmessage[2]{%
\@ifundefined{#1@#2}{\global\@namedef{#1@#2}{i}}{%
\expandafter\g@addto@macro\csname #1@#2\endcsname{i}%
}%
\@latex@warning{Label `#2' overridden}%
}%

)


- In the dtx-file/.sty-file, one line of the definition of
\@und@newl@bel ends with ^^J which is a character-token.
I suggest adding a comment-char behind that ^^J.
Otherwise a spurious space will be produced at the beginning
of the error-message's new line because, when reading/tokenizing
the source-code/input, TeX will insert a character-token whose
character-code equals \endline-char (usually \endlinechar is 32,
thus TeX usually inserts a space-token) when a line of input
ends right after having tokenized a character-token.
(It doesn't matter if that character-token's character-code
equals the value of the integer-parameter \newlinechar as
\newlinechar doesn't affect reading/tokenizing but writing
and space-tokens will be written after newline-characters:

\newlinechar=`\^^J %
\message{^^J}%
\message{message: A^^JB}%
\message{^^J}%
\message{message: A^^J B}%
\message{^^J}%
\message{message: A^^J
B}%
\bye

)

In the dtx/sty-file you find:

\newcommand\@und@newl@bel[2]{%
\@ifundefined{#1@#2}{%
\PackageError{undolabl}{Label `#2' shall be overridden ^^J
although it does not yet exist}{%
A label which does not exist cannot be overridden.}%
}{%
\expandafter\global
\expandafter\let
\csname #1@#2\endcsname\relax
}%
}

It should be:

\newcommand\@und@newl@bel[2]{%
\@ifundefined{#1@#2}{%
\PackageError{undolabl}{Label `#2' shall be overridden ^^J%%%%%
although it does not yet exist}{%
A label which does not exist cannot be overridden.}%
}{%
\expandafter\global
\expandafter\let
\csname #1@#2\endcsname\relax
}%
}

( I think "putting the newline-char" at the end of a code-line
while omitting a trailing comment-char occurred when changing the
line-wrapping of the replacement-text of \@und@newl@bel while
replacing \@latex@error by \PackageError.

With the code provided in the usenet-posting
\url{http://groups.google.de/group/comp.text.tex/msg/af6cfe93917097da?dmode=source}
---be sure that is shown in "original format"--- no spurious
space-token is produced.


\newcommand*\@und@newl@bel[2]{%
\@ifundefined{#1@#2}{%
\@latex@error{Label `#2' shall be overridden although it does
not yet^^Jexist}{A label which does not exist cannot be
overridden.}%
}{%
\expandafter\global
\expandafter\let
\csname #1@#2\endcsname\relax
}%
}%

)

- In the file undolabl-example.tex you find the sequence

\makeatletter
%% Code from tcilatex.tex, Macros for Scientific Word and %%
%% Scientific WorkPlace 5.5 <06 Oct 2005> %%
%% Copyright (C) 2005 Mackichan Software, Inc. %%
%% That macro file is NOT proprietary and may be freely copied %%
%% and distributed. %%
\def\unit#1{\mathord{\thinspace\rm #1}}%
%% End of code from tcilatex.tex %%
\makeatother

I think \makeatletter and \makeatother is not needed there.

Ulrich

Robin Fairbairns

unread,
Jul 17, 2010, 3:03:15 PM7/17/10
to
Ulrich D i e z <eu_an...@web.de> writes:

> (google-groups-users/web-interface-users please make sure to view
> this posting in "original format".)

> [...]

you rely on muench reading your post: i trust you've sent a copy to him ;-)
--
Robin Fairbairns, Cambridge

Martin Muench

unread,
Jul 20, 2010, 4:09:43 AM7/20/10
to Ulrich D i e z, Robin Fairbairns
Dear Ulrich Diez,

thanks for bringing to attention this errors. I'll correct them and
resubmit the package to CTAN.

Yours

Martin
--
Martin.Muench AT Uni-Bonn.de

On 17.07.2010 12:27, Ulrich D i e z wrote:
> (google-groups-users/web-interface-users please make sure to view
> this posting in "original format".)
>

0 new messages