Re: make on doc fails

Patrice Dumas <[email protected]> Tue, 11 Jan 2011 10:56:16 +0100
Newsgroups gmane.comp.printing.a2ps.bugs
Message-ID <[email protected]>
On Mon, Jan 10, 2011 at 11:38:49PM +0100, Maks Romih wrote:
> Dear a2ps maintainers!
> 
> I would like to delight (:-) you with a few buglets I discovered in good
> old a2ps.texi.
> 
> So I repair the lines 74 and 78. I simply put another @ before @. I'm not
> sure what should be the correct section title. At least I get the PDF that
> I can read and browse.

The attached patch should fix the error you found out more correctly
(user defined @-macro taking no argument should have empty {}, like @PreTeX{}).
Also I completly removed the @LaTeX macro definition since it is in 
the texinfo language since quite a long time now.  If using a user defined
macro is preferred (for example to cope with very old texinfo), the name of
the macro should be changed.

-- 
Pat
a2ps.texi.diff (text/plain, 2.9 KB)
--- a2ps.texi.macros	2011-01-11 10:46:08.000000000 +0100
+++ a2ps.texi	2011-01-11 10:49:12.000000000 +0100
@@ -44,9 +44,6 @@
 @end ifnottex
 
 @c TeX variants
-@macro LaTeX
-La@TeX{}
-@end macro
 
 @macro PreTeX
 Pre@TeX{}
@@ -285,7 +282,7 @@
 * PreScript Commands::
 * PreScript examples::
 
-@PreTeX
+@PreTeX{}
 
 * Special characters::
 * PreTeX Commands::
@@ -3898,9 +3895,9 @@
 @end smallexample
 
 @node PreTeX
-@subsection @PreTeX
+@subsection @PreTeX{}
 
-The aim of the Pre@TeX{} style sheet is to provide something similar to
+The aim of the @PreTeX{} style sheet is to provide something similar to
 @code{PreScript}, but with a more @LaTeX{} like syntax.
 
 @menu
@@ -3924,7 +3921,7 @@
 outer most level.
 
 @node PreTeX Commands
-@subsubsection @PreTeX Commands
+@subsubsection @PreTeX{} Commands
 These commands required arguments.
 
 @table @samp
@@ -3965,7 +3962,7 @@
 @itemx \end@{enumerate@}
 @itemx \begin@{description@}
 @itemx \end@{description@}
-These commands are legal in @LaTeX but have no sense in @PreTeX{}.
+These commands are legal in @LaTeX{} but have no sense in @PreTeX{}.
 Hence there are simply ignored and not printed (if immediately followed
 by an end-of-line).
 @end table
@@ -3996,22 +3993,22 @@
 @end example
 
 @noindent
-for @LaTeX{}. Since in @PreTeX every @samp{$} is discarded (unless
+for @LaTeX{}. Since in @PreTeX{} every @samp{$} is discarded (unless
 quoted by a @samp{\}), the second form is also admitted.
 
 @node TeXScript
-@subsection @TeXScript
+@subsection @TeXScript{}
 
-@code{@TeX{}Script} is a replacement of the old version of
+@code{@TeXScript{}} is a replacement of the old version of
 @code{PreScript}: it combines both the @pack{}-like and the
 @LaTeX{}-like syntaxes through inheritance of both @code{PreScript} and
-@code{Pre@TeX{}}.
+@code{@PreTeX{}}.
 
 In addition it provides commands meant to ease processing of file for
 @pack{} by @LaTeX{}.
 
 Everything between @samp{%%TeXScript:skip} and @samp{%%TeXScript:piks}
-will be ignored in @code{@TeXScript}, so that there can be inserted
+will be ignored in @code{@TeXScript{}}, so that there can be inserted
 command definitions for @LaTeX{} exclusively.
 
 The commands @samp{\textbi} (for bold-italic) and @samp{\textsy} (for
@@ -4025,7 +4022,7 @@
 %%TeXScript:piks
 @end example
 
-There is no way in @TeXScript to get an automatic numbering.  There is
+There is no way in @TeXScript{} to get an automatic numbering.  There is
 no equivalent to the @LaTeX{} environment @code{enumerate}.  But every
 command beginning by @code{\text} is doubled by a command beginning by
 @samp{\magic}.  @pack{} behaves the same way on both families of commands.
@@ -4040,7 +4037,7 @@
 @end example
 
 @noindent
-will be treated the same way both in @TeXScript and @LaTeX{}.
+will be treated the same way both in @TeXScript{} and @LaTeX{}.
 
 @samp{\header} and @samp{\footer}, are not understood by @LaTeX{}.