On 08/10/2016 04:26 AM, Arash Esbati wrote: > Hi Hong, > > Hong Xu <[email protected]> writes: > >> On 08/07/2016 08:23 AM, Mosè Giordano wrote: >>> >>> 2016-08-07 3:48 GMT+02:00 Hong Xu <[email protected]>: >>>> >>>> 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. >
Hi Arash, 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. Hong _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
