Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!shelby!agate!ucbvax!ESOC1.BITNET!ASOKOLOV From: ASOKOLOV@ESOC1.BITNET (Alex Sokolov IKI) Newsgroups: comp.text.tex Subject: How to place note? Message-ID: <1DCD977380000F16@post-office.uh.edu> Date: 16 Feb 91 19:48:16 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 27 Dear Subscribers I tried to change macro \TeXref used in Gentle Introduction to TeX to place some text in the margin just to the left of the line where \TeXref occurs so that now it will place the text to the left on even page and to the right on odd page. So I redefined this macro \newdimen\theight \def \TeXref#1{% \vadjust{\setbox0=\hbox{\sevenrm\TeX book: #1}% \theight=\ht0 \advance\theight by \dp0 \advance\theight by \lineskip \kern -\theight \vbox to \theight{% \ifodd\pageno \leftline{\llap{\box0\qquad}}% \else \rightline{\rlap{\qquad\box0}}% \fi \vss}}} But this does not serve. Let see what happens if macro is invoked near page break. TeX reads more than will fit on one page so TeX can process macro while constructing "recent" page thought text to be placed in the margin will go on the next one. Any suggestion? Vladimir Rozov. VOICE : (7-095)-333-41-12 TELEX : 4 11 498 star su FAX : (7-095)-310-70-23 E-MAIL : ASOKOLOV@ESOC1.BITNET ADDRESS : Space Research Institute (IKI) USSR Academy of Science ! : Profsoyuznaya 84/32, 117810 Moscow GSP-7, USSR