Article View: comp.text.tex
Article #2166Problem with SHOWLABELS.STY (labels in margin)
From: i6finn
Date: Thu, 13 Aug 1992 14:53
Date: Thu, 13 Aug 1992 14:53
59 lines
2329 bytes
2329 bytes
When writing documents I always use SHOWLABELS.STY from
FILESERV@SHSU.BITNET. However, it prints the labels in
the text which means that they influence the formatting.
It is possible to show the labels so that the text will
appear the same with and without SHOWLABELS.STY ?
This would make the final editing a lot easier.
I tried to put the labels in the margin, but I could not
get \marginpar to work inside equations !
Any suggestions ?
(Note: I use PC/EmTeX.)
Please E-mail, since News-feed here is bad and approx. 8
days delayed ! E-mail: i6finn@aud2.aud.auc.dk
Thanks in advance ....
Finn Jensen
Department of Building Technology and Structural Engineering
Sohngaardsholmsvej 57
University of Aalborg
DK-9000 Aalborg
Denmark, Europe
% Save file as: SHOWLABELS.STY Source: FILESERV@SHSU.BITNET
% showlabels.sty
% gil@svax.cs.cornell.edu (Gil Neiger)
%
% Change \label, \ref, and \pageref to show labels in line
%
\def\ref#1{\@ifundefined{r@#1}{\mbox{\tt#1?}\@warning
{Reference `#1' on page \thepage \space
undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter
\@car\@tempa \@nil\null}}
\def\pageref#1{\@ifundefined{r@#1}{\mbox{\tt#1?}\@warning
{Reference `#1' on page \thepage \space
undefined}}{\edef\@tempa{\@nameuse{r@#1}}\expandafter
\@cdr\@tempa\@nil\null}}
---> I would like to put this one in the margin:
\def\label#1{\@bsphack\if@filesw {\let\thepage\relax
\xdef\@gtempa{\write\@auxout{\string
\newlabel{#1}{{\@currentlabel}{\thepage}}}}}\@gtempa
\if@nobreak \ifvmode\nobreak\fi\fi\fi\@esphack
\mbox{\tt[#1]} }
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
\def\@citea{}\@cite{\@for\@citeb:=#2\do
{\@citea\def\@citea{,}\@ifundefined
{b@\@citeb}{\mbox{\tt\@citeb?}\@warning
{Citation `\@citeb' on page \thepage \space undefined}}%
\hbox{\csname b@\@citeb\endcsname}}}{#1}}
Technical Details
Message-ID:
<1992Aug13.145341.1@aud2.aud.auc.dk>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!aud.dk!aud2.aud.auc.dk!i6finnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!dkuug!aud.dk!aud2.aud.auc.dk!i6finn From: i6finn@aud2.aud.auc.dk Newsgroups: comp.text.tex Subject: Problem with SHOWLABELS.STY (labels in margin) Message-ID: <1992Aug13.145341.1@aud2.aud.auc.dk> Date: 13 Aug 92 14:53:41 GMT Sender: news@vaxc.aud.auc.dk (USENET News System) Organization: Aalborg University Center, Denmark Lines: 59