Hi Mosè

Le 14 janv. 2017 à 11:49, Mosè Giordano <[email protected]> a écrit :

> Hi Jean-François,
> 
> 2017-01-14 11:41 GMT+01:00 jfbu <[email protected]>:
>> 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




_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to