[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25447: 11.90.0; alltt environment should allow being extended in wra
From: |
jfbu |
Subject: |
bug#25447: 11.90.0; alltt environment should allow being extended in wrapper |
Date: |
Sat, 14 Jan 2017 13:55:09 +0100 |
Hi Mosè
Le 14 janv. 2017 à 11:49, Mosè Giordano <address@hidden> a écrit :
> Hi Jean-François,
>
> 2017-01-14 11:41 GMT+01:00 jfbu <address@hidden>:
>> Hi,
>>
>> \newenvironment{myalltt}
>> {\begin{alltt}%
>> \IamAllowedToDefineWrapperOfAllTT
>> \ButFontificationByAucTeXIsProblematic
>> }
>> {\end{alltt}}
>>
>> causes fontification problem. I can use \alltt and \endalltt
>> but this forces me to change TeX code for this issue.
>>
>> (alltt is not implemented like standard verbatim, the latter
>> would indeed not allow the above kind of redefinition)
>
> This is not limited to "alltt" but to any verbatim-like environment.
> Possible workaround
>
> --8<---------------cut here---------------start------------->8---
> \newenvironment{myalltt}
> {%
> \begin{alltt}%
> ...
> }
> {\end{alltt}}
> --8<---------------cut here---------------end--------------->8---
>
> Bye,
> Mosè
Thanks for the workaround. In the meantime
I had used
{\end{alltt}}% \end{alltt}
but yours has even less fontification (only
opening brace)
Bye,
Jean-François