auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] Support for empheq


From: Hong Xu
Subject: Re: [AUCTeX] Support for empheq
Date: Sat, 12 Nov 2016 00:53:18 -0800
User-agent: mu4e 0.9.17; emacs 25.1.50.7

On 2016-08-10 Wed 15:23 GMT-0800, Hong Xu <address@hidden> wrote:

> On 08/10/2016 04:26 AM, Arash Esbati wrote:
>> Hi Hong,
>>
>> Hong Xu <address@hidden> writes:
>>
>>> On 08/07/2016 08:23 AM, Mos?FFC3?FFA8 Giordano wrote:
>>>>
>>>> 2016-08-07 3:48 GMT+02:00 Hong Xu <address@hidden>:
>>>>>
>>>>> Empheq, an environment to typeset math equations, is currently not
>>>>> supported by auctex. Is there any plan to support it? Thanks!
>>>>
>>>> We don't have a style file for empheq.sty in AUCTeX, yet, but you can
>>>> generate one right now from within Emacs with the following command:
>>>>
>>>>   M-x TeX-auto-generate RET /path/to/empheq.sty RET RET
>>>>
>>>> Replace "/path/to/empheq.sty" with the actual path of your
>>>> "empheq.sty" file.  Restart Emacs and you'll enjoy autocompletion for
>>>> macros and environments (including "empheq", with its optional and
>>>> mandatory arguments) provided by empheq package.
>>>>
>>>
>>> Thanks for your reply. I've run the auto generation command, but one
>>> important feature is missing: the contents within the environment is not
>>> highlighted as math. How can we solve it? Thanks!
>>
>> Writing a style file for empheq.sty was on my list for a long time.  I
>> had a skeleton, but now I finished it.  Could you test the attached file
>> and report back?  I will install the file then for the next release.
>>
>> And while we're at it: Are you also using features from mathtools.sty?
>> I think AUCTeX's style file has a bug in \shoveleft and \shoveright.
>>
>
> Thanks for the empheq style file -- it works well for me! Unfortunately
> I've never used mathtools.sty, and I don't really know what kind of bug
> ACUTeX has on them.

Hi Arash and Mos?FFC3?FFA8,

It looks like in the latest version, the math highlighting is gone, with
a minimal non-working example as follows:


\documentclass{article}
\usepackage{empheq}

\begin{document}
\begin{empheq}{align}
  x = y
\end{empheq}
\end{document}


Can you help me with it, please? Thanks! My AUCTeX-version is
"2016-11-04".

Hong

Attachment: signature.asc
Description: PGP signature


reply via email to

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