bug-texinfo
[Top][All Lists]
Advanced

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

Re: small non-example table


From: Werner LEMBERG
Subject: Re: small non-example table
Date: Tue, 21 Oct 2008 16:05:27 +0200 (CEST)

> > Ah, I meant a table typeset with a smaller font size which gets
> > indented as a whole.
> 
> If this is really needed, and using @tex magic is not good enough,
> we should define new Texinfo facilities for such effects.

I fully agree.  I suggest a @smallquotation environment -- actually,
this is common practice in real books anyway.

Below is a patch for texinfo.tex which implements this.  Patching
makeinfo should be easy too, however, I'm not fluent enough with the
XML code generation to do it by myself.


    Werner


======================================================================


--- /home/wl/cvs/texinfo.old/doc/texinfo.tex    2008-10-21 07:51:47.000000000 
+0200
+++ texinfo.tex 2008-10-21 15:42:13.000000000 +0200
@@ -5971,7 +5971,7 @@
 % we're doing normal filling.  So, when using \aboveenvbreak and
 % \afterenvbreak, temporarily make \parskip 0.
 %
-\envdef\quotation{%
+\def\quotationstart{%
   {\parskip=0pt \aboveenvbreak}% because \aboveenvbreak inserts \parskip
   \parindent=0pt
   %
@@ -5986,6 +5986,16 @@
   \parsearg\quotationlabel
 }
 
+\envdef\quotation{
+  \setnormaldispenv
+  \quotationstart
+}
+
+\envdef\smallquotation{
+  \setsmalldispenv
+  \quotationstart
+}
+
 % We have retained a nonzero parskip for the environment, since we're
 % doing normal filling.
 %
@@ -5998,6 +6008,8 @@
   {\parskip=0pt \afterenvbreak}%
 }
 
+\let\Esmallquotation \Equotation
+
 % If we're given an argument, typeset it in bold with a colon after.
 \def\quotationlabel#1{%
   \def\temp{#1}%




reply via email to

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