[texhax] RE: adding a command after every single LaTeX output line
?
Dieter Meinert
DMeinert at RosenInspection.net
Mon Sep 22 16:43:53 CEST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Sorry for the misplacement, I wasn't aware of texhax.
Thanks anyway to Robin and Martin, The lineno package did
the trick by redefining the makeLineNumberRight command.
(for the record, I also use pdflatex and hyperref:
\if at draft
\usepackage[mathlines]{lineno}
\renewcommand{\baselinestretch}{2}
\renewcommand{\makeLineNumberRight}{
\parbox[b]{\textwidth}{
\hspace*{-3\linenumbersep}%
\vspace*{-0.55\baselineskip}%
\linenumberfont\rule{0pt}{0.75\baselineskip}
\TextField[charsize=9pt, color={0.5 0.1 0.1},
borderwidth=0, backgroundcolor={0.8
0.8 0.8},
bordercolor={0.7 0.7 0.7}]
{\hfill\thesection-\thelinenumber\quad}
}
}
\fi
cerainly this needs some improvements, but currently its
all right for my purpose.
)
Regards
Dieter Meinert
************************************************************
***********
* Dr. Dieter Meinert
*
* c/o H. Rosen Engineering GmbH Phone +49-591-9136-493
*
* Am Seitenkanal 8 Fax +49-591-9136-121
*
* D-49811 Lingen (Ems) Email
dmeinert at roseninspection.net *
* Germany
*
************************************************************
***********
|=> -----Original Message-----
|=> From: Robin Fairbairns
|[mailto:Robin.Fairbairns at cl.cam.ac.uk] => Sent: Friday,
|September 19, 2003 4:04 PM
|=> To: Dieter Meinert
|=> Cc: tetex at dbs.uni-hannover.de; texhax at tug.org
|=> Subject: Re: adding a command after every single LaTeX
|=> output line ?
|=>
|=>
|=> this is completely inappropriate to the tetex list,
|which is about => specific matters related to a
|distribution. redirected to texhax, => where you're even
|more likely to encounter "radical"
|=> thinkers, i would
|=> guess.
|=>
|=> > I'm trying to create a draft environment, but instead
|of doubling => > \baselinestretch I want to put another
|command before or => after each
|=> > line of output. In pdflatex thsi should be a
|\TextField => in a form,
|=> > in plain paper output it should be a \rule or an
|\fbox. => >
|=> > Obviously this does not work by redefining
|\baselinestretch. => >
|=> > But, which command would I have to redefine to
|achieve my goal ? => > BTW, changing \cr results in
|chaos, and \strut is only added at => > top and bottom of
|page.
|=>
|=> the "line of output" is a concept that doesn't exist at
|the => programming interface. the nearest i can think of,
|that uses that => sort of thing is the lineno package
|(ctan
|=> macros/latex/contrib/lineno)
|=>
|=> robin
|=>
|=>
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>
iQEVAwUBP27uibYBkYAdGmPFAQGEiwf8DFZb9zTWLAQRULaPZ4NUYsi9Ld6FxSm4
gYWJTg3g95xTZacU3qpSiyDwTrmPIHKNnsGWv7ef9CLoYXWE80t2dMuXK8xVQYxX
sqYeaGB3kNC7JXPvFwkkSGDMPHLrtiETogLJxViPjynqo9djUS847KjPB1IURg9J
HtfxJ08PMQW8cGPrNai6ein2j4j7KBXrRQkF+f6CMymkbjOPFlTY32Ht77Gc+8kc
kCSSZpYPn9Oi6hE0MhYs6Hy53Cldc5HIgIgAA3sO9jKL91OUErut1sPykC39XGgD
2KMFh+jBSsrhKC7h8mZMXSNjYvJTw4ArbcagwXETB5/3d0YxCnHUBg==
=x+mo
-----END PGP SIGNATURE-----
More information about the texhax
mailing list