Hi Lucas,

2015-03-06 17:19 GMT+01:00 Lucas Holland <hollandlu...@gmail.com>:
> Hello all,
>
> according to the manual (section 4.1) AucTeX will recognise statements like 
> \usepackage[ngerman]{babel} and automatically insert the right quotes (i. e. 
> "` and "’ ). This doesn’t work for me with the following setup:
>
> I have a master document that uses a custom package (like so: 
> \usepackage{mypackage}). In that package I include all the packages I use in 
> my document among them \usepackage[ngerman]{babel}. I have
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: t
> %%% End:
>
> at the end of my master file and
>
> %%% Local Variables:
> %%% mode: latex
> %%% TeX-master: "../masterfile"
> %%% End:
>
> in my custom package file (.sty file).
>
> Is there a way I can make AuCTeX recognise that I’m using the babel package 
> with the ngerman option so that it automatically uses the right quotes?

If the `\usepackage[ngerman]{babel}' line is in `mypackage.sty' file,
you need a style file associated to it.  If `mypackage.sty' is in the
same directory of `masterfile.tex', just visit `mypackage.sty' and
issue `C-c C-n'.

Bye,
Mosè

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

Reply via email to