bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Paragraph indentation suppression


From: Karl Berry
Subject: Re: Paragraph indentation suppression
Date: Mon, 7 Apr 2003 19:11:25 -0400

Well, two minor comments:

    +\let\parorig=\par
    +%
    +\def\yesword{yes}
    +\def\noword{no}
    +\def\firstparagraphindent{\parsearg\dofirstparagraphindent}
    +\def\dofirstparagraphindent#1{%
    +  \def\temp{#1}%
    +  \ifx\temp\yesword
    +    \def\par{\parorig}%

1) I think it would be better to \let\parorig=\par to get the runtime
   definition (so to speak), within \dofirstparagraphindent, instead of
   using the definition when texinfo.tex is read.  A number of things
   redefine \par.

2) Might as well say \let\par=\parorig when restoring, not \def, to save
   a level of expansion.


Anyway, as for the general approach, I am frightened :).  I wonder if it
would be more robust to use \hangindent=-\parindent (\hangindent gets
automatically reset to 0 after each paragraph, so it would by definition
only affect one paragraph) or \everypar={\kern-\parindent\everypar={}}.

Some research is in order, I think, to see what other solutions have
been found.  I know you're just trying to solve an immediate problem for
an upcoming printing, and your solution is fine for that (assuming the
gcc manual prints with it :), but before we put something like this into
the default texinfo.tex, I'd like to take a little more time with it.

Thanks,
karl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]