From 9dfe31fda77cc97dd37bef837ed3bd56c6a7da5c Mon Sep 17 00:00:00 2001 From: kaoru Date: Sat, 30 Dec 2000 03:10:15 +0000 Subject: [PATCH] Update to version 2000-12-11.07. --- doc/texinfo.tex | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/doc/texinfo.tex b/doc/texinfo.tex index 4d67e38..1889b4c 100644 --- a/doc/texinfo.tex +++ b/doc/texinfo.tex @@ -3,7 +3,7 @@ % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % -\def\texinfoversion{2000-11-10.15} +\def\texinfoversion{2000-12-11.07} % % Copyright (C) 1985, 86, 88, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 2000 % Free Software Foundation, Inc. @@ -704,20 +704,35 @@ where each line of input produces a line of output.} % if you have multiple lines of stuff to put here, you'll need to % make the vbox yourself of the appropriate size. \ifx#1l% - \llap{#2\hskip\inmarginspacing}% + \llap{\ignorespaces #2\hskip\inmarginspacing}% \else - \rlap{\hskip\hsize\hskip\inmarginspacing#2}% + \rlap{\hskip\hsize \hskip\inmarginspacing \ignorespaces #2}% \fi \null }% }} \def\inleftmargin{\doinmargin l} \def\inrightmargin{\doinmargin r} -\def\inmargin{% not perfect, but better than nothing. +% +% @inmargin{TEXT [, RIGHT-TEXT]} +% (if RIGHT-TEXT is given, use TEXT for left page, RIGHT-TEXT for right; +% else use TEXT for both). +% +\def\inmargin#1{\parseinmargin #1,,\finish} +\def\parseinmargin#1,#2,#3\finish{% not perfect, but better than nothing. + \setbox0 = \hbox{\ignorespaces #2}% + \ifdim\wd0 > 0pt + \def\lefttext{#1}% have both texts + \def\righttext{#2}% + \else + \def\lefttext{#1}% have only one text + \def\righttext{#1}% + \fi + % \ifodd\pageno - \let\temp=\inleftmargin + \def\temp{\inleftmargin\lefttext}% \else - \let\temp=\inrightmargin + \def\temp{\inrightmargin\righttext}% \fi \temp } -- 1.7.10.4