bug-texinfo
[Top][All Lists]
Advanced

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

@exampleindent vs. tables


From: Jesper Harder
Subject: @exampleindent vs. tables
Date: Thu, 19 Feb 2004 05:20:49 +0100
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

I'd like to decrease the indentation of examples, but @exampleindent
also affects the indentation of tables (which I don't want).  E.g.

,----
| @exampleindent 0
| 
| @table @asis
| @item foo
| Foo is good.
| @end table
`----

is formatted as:

,----
| foo
| Foo is good.
`----

rather than

,----
| foo
|      Foo is good.
`----

As a workaround I tried something like:

,----
| For example, in
| 
| @exampleindent 0
| @lisp
|  (defun foo (x) (+ x 1))
| @end lisp
| @exampleindent 5
| 
| the use of the name ``foo'' is just a shorthand way of saying 
`----

This does in fact work, but the second @exampleindent leaves an extra
blank line (strangely enough the first one doesn't).  It turns out
that I can fix this with a @*, i.e.

,----
| @exampleindent 0
| @lisp
|  (defun foo (x) (+ x 1))
| @end lisp
| @exampleindent 5
| @*
| 
| the use of the name ``foo'' is just a shorthand way of saying 
`----

But I think this a rather ugly kludge.

-- 
Cheers,
Jesper Harder




reply via email to

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