[Top][All Lists]

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

Re: Spurious diagnostics from texi2dvi -E

From: Karl Berry
Subject: Re: Spurious diagnostics from texi2dvi -E
Date: Mon, 6 Apr 2015 23:12:31 GMT

    Date: Wed, 04 Mar 2015 17:31:00 +0200
    From: Sergey Poznyakoff <address@hidden>

    ... Please find attached an improved patch.

I installed it (quoted below for clarity).  Playing with the sed
expressions does not seem disruptive.

Another reply coming separately.


--- util/texi2dvi       (revision 6162)
+++ util/texi2dvi       (working copy)
@@ -1574,6 +1574,10 @@ done
 # (with address@hidden _texi2dvi') TeX sections so that makeinfo does not try 
 # parse them.  Nevertheless, while commenting TeX sections, don't
 # comment @macro/@end macro so that makeinfo does propagate them.
+# Similarly, preserve the @top node to avoid makeinfo complaining about
+# it being missed.  Comment it out after preprocessing, so that it does
+# not appear in the generated document.
 # Unfortunately makeinfo --iftex --no-ifinfo doesn't work well enough
 # (yet), makeinfo can't parse the TeX commands, so work around with sed.
@@ -1592,6 +1596,10 @@ comment_iftex=\
 /address@hidden/,/address@hidden ifnottex/{
   s/^/@c (_texi2dvi)/
+  /address@hidden (_texi2dvi)@node Top/,/address@hidden (_texi2dvi)@end 
ifnottex/ {
+    /address@hidden (_texi2dvi)@end ifnottex/b
+    s/address@hidden (_texi2dvi)//
+  }
 /address@hidden/,/address@hidden ifinfo/{
@@ -1604,8 +1612,11 @@ s/address@hidden ifnotinfo/@c address@hidden ifnot

 # Uncommenting is simpler: remove any leading address@hidden texi2dvi'; 
 # copies can sneak in via macro invocations.
-uncomment_iftex='s/address@hidden _texi2dvi\(@c _texi2dvi\)*//'
+'s/address@hidden _texi2dvi\(@c _texi2dvi\)*//
+/address@hidden (_texi2dvi)@ifnottex/,/address@hidden (_texi2dvi)@end 
+  s/^/@c (_texi2dvi)/

 #  Main program continues - command line parsing.

reply via email to

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