Hi Anton,

2016-07-30 14:12 GMT+02:00 Anton S. <em...@alshu.de>:
> The macros defined by the commath package are not accessible with
> TeX-insert-macro.
> The package is included via \usepackgage and compilation of a file with
> commath works. The commath macros are not in TeX-symbol-list. Even
> though debug mode is enabled, no error is thrown.
>
> Expected behavior:
> C-c <RET> od
> should produce \od{}{}
>
> Actual behavior:
> C-C <RET> od
> produces: \od
>
> Reproducible: always
>
> Minimal sample:
>
> \documentclass{article}
>
> \usepackage{commath}
>
> \begin{document}
> \begin{equation}
> \od{f}{x}
> \end{equation}
>
> \end{document}

AUCTeX doesn't have a style file for `commath' just because no one
ever wrote it.  The fact that you can compile your document doesn't
depend on the style files shipped with AUCTeX, so it's no surprise
that compilation works.

However, until someone writes a style file for `commath', you can
exploit AUCTeX's ability to automatically create a basic style file:
issue the command

    M-x TeX-auto-generate RET <path-to-commath.sty> RET RET

(replace <path-to-commath.sty> with the path to your commath.sty file)
and after you restart Emacs you can get autocompletion.

Bye,
Mosè



_______________________________________________
bug-auctex mailing list
bug-auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to