auctex-devel
[Top][All Lists]
Advanced

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

Re: [AUCTeX-devel] Fontification in verb-env's with argument


From: Mosè Giordano
Subject: Re: [AUCTeX-devel] Fontification in verb-env's with argument
Date: Mon, 4 May 2015 23:33:12 +0200

Hi Arash,

2015-05-04 23:26 GMT+02:00 Arash Esbati <address@hidden>:
> Hi all,
>
> consider the following example:
>
> --8<---------------cut here---------------start------------->8---
> \documentclass[a4paper,12pt]{article}
> \usepackage{listings}
> \lstnewenvironment{pascal}[2]
>   {\lstset{language=pascal,%
>       basicstyle=\ttfamily#1,%
>       keywordstyle=#2}}{}
>
> \begin{document}
>
> \begin{pascal}{\small}{\underbar}
> for i:=maxint to 0 do
> begin
> { do nothing }
> end;
> \end{pascal}
>
> Some text to see the fontification.
>
> \end{document}
> --8<---------------cut here---------------end--------------->8---
>
> With the two arguments, fontification starts with `\end{pascal}'.  Any idea
> how to fix this?

Could you please show what you see?  I'm attaching a screenshot of my
Emacs: `pascal' environment is not fontified at all.  I don't think
it's strange since it seems listings style file does nothing special
for new listing environments.

Bye,
Mosè

Attachment: pascal.png
Description: PNG image


reply via email to

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