Hi Mosè,

thanks for your reply. The "my package.sty“ file is not in the same directory 
as my master file (I simplified the code when I posted it). I visited the "my 
package.sty“ and ran C-c C-n. It seems to work now (even when I quit and 
restart emacs). When I hit Shift-2 (quote on my system) twice I get the correct 
opening and closing quotes. Is the style file now permanently associated with 
my package file?

Thanks again!

Lucas


> Am 06.03.2015 um 17:30 schrieb Mosè Giordano <m...@gnu.org>:
> 
> Hi Lucas,
> 
> 2015-03-06 17:19 GMT+01:00 Lucas Holland <hollandlu...@gmail.com 
> <mailto: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