[Top][All Lists]

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

Re: Deprecate Texinfo commands

From: Werner LEMBERG
Subject: Re: Deprecate Texinfo commands
Date: Sun, 08 Nov 2020 10:39:02 +0100 (CET)

>> So what is the right way to make an environment display at a
>> smaller size in HTML output?  Sometimes examples have really long
>> lines, making horizontal screen scrolling uncomfortable...
> I don't have an answer to this.

Ouch :-)

> It seems to me that the problem of too long lines is dealt with by
> making the lines shorter, rather than making the font smaller.  Is
> there no way to split lines in your examples?

Well, this is what I normally do, but sometimes long lines are really

> One idea is to change Texinfo to allow @example to have an argument
> which would be output as a 'class' in HTML.  [...]

Basically, your suggestions are sound – they kind-of resemble the
markdown extensions introduced by pandoc...

I could imagine the following, which is quite simple:

  @example       →  <pre class="example">
  @smallexample  →  <pre class="smallexample">

etc., etc., with a corresponding setup in texi2any's default CSS code.


reply via email to

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