[Top][All Lists]

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

Re: [lilypond-book] @format environments

From: Michael Käppler
Subject: Re: [lilypond-book] @format environments
Date: Wed, 1 Jul 2020 15:21:54 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

Am 30.06.2020 um 09:23 schrieb Werner LEMBERG:
@exampleindent 0
\relative {
a4 b c d
@end verbatim
@end format


What I do not understand here: The @verbatim environment is not
indented by default, as far as I can see.  What is the reason to set
'@exampleindent 0', here?

(And the enclosing @format environment to scope the effect of
@exampleindent 0)
I think this was implemented to work around bugs in older texinfo
distributions.  In particular, the `makeinfo` binary and the
`texinfo.tex` file often did different things; IIRC, the code above
ensured identical behaviour for HTML, info, and PDF output.

This has improved a lot meanwhile and could be simplified.
Hi Werner,
please see the attached files for a test case, the renderings were done
PDF:  (texinfo.tex from current texinfo master)
texi2pdf verbatim.texi
makeinfo verbatim.texi
texi2any --set-customization-variable TEXI2HTML=1 verbatim.texi

All utils from texinfo 6.5.

AFAICS, they behave similarly w.r.t. @verbatim without
@exampleindent 0
@end format

What I did not test, however, was texi2html-1.82.

So I would vote to make

[Version string if needed]
@end verbatim

the default setting for verbatim snippets in texinfo.

I already made some tests with a patched version of lilypond-book and
could not
spot differences, at least in the PDF manuals.

What do you think?


Attachment: verbatim.html
Description: Text document

Description: Binary data

Attachment: verbatim.pdf
Description: Adobe PDF document

Attachment: verbatim.texi
Description: Text document

reply via email to

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