2011-03-20 18:01, Ralf Angeli skrev:
* Anders Johansson (2011-03-14) writes:
I use the package csquotes and tried to use the options:
LaTeX-csquotes-open-quote, LaTeX-csquotes-close-quote.
I followed the instructions here:
http://lists.gnu.org/archive/html/auctex/2006-12/msg00009.html
Nothing changed as I changed the values of LaTeX-csquotes-open-quote and
LaTeX-csquotes-close-quote, but than I realized that it worked if I
didn't use babel (I was writing in Swedish).
Hence it looks like the language-specific quote characters take
precedence over the csquotes ones. Not what's expected and not what is
stated in the manual:
This is working fine here with development versions of Emacs and AUCTeX
and the following sample file:
\documentclass{article}
\usepackage{csquotes}
\usepackage[swedish]{babel}
\begin{document}
»foo«
\end{document}
%%% Local Variables:
%%% mode: latex
%%% TeX-master: t
%%% End:
The variables are set through Customize, hence the following settings
are found in the init file:
(custom-set-variables
[...]
'(LaTeX-csquotes-close-quote "«")
'(LaTeX-csquotes-open-quote "»")
[...]
After opening the above file, `C-h v TeX-quote-language<RET>' results
in the following:
TeX-quote-language is a variable defined in `tex.el'.
Its value is (override "»" "«" nil)
[...]
What's the result in your case if you do this with the sample file
opened? You might have to type `C-c C-n' before in order to force the
file to be parsed.
Emacs : GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
of 2010-11-26 on vernadsky, modified by Debian
Package: 11.86
Is this the package provided by Debian?
It all worked with the sample file. I stripped down the file that I had
a problem with and found out that it would only work if I loaded babel
after csquotes (as is the case in the sample file). I don't know if this
is the expected behaviour but it sort of goes against the recommendation
in wikibooks "You should place it soon after the \documentclass command,
so that all the other packages you load afterwards will know the
language you are using."
(http://en.wikibooks.org/wiki/LaTeX/Internationalization ; about babel).
Well I guess the problem is solved then.
Emacs package from Ubuntu repositories, auctex downloaded from website.
_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex