Mosè Giordano | 3 Apr 01:00 2014

Override autodetection of biblatex backend

Hi folks,

I believe we have the best Biber/BibTeX management among all TeX
editor: the user only needs to enable parsing to make AUCTeX selects
for him/her the right backend.  AFAIK, AUCTeX is, for the time being,
the only editor to be able to automatically guess the biblatex

But, you know, parsing isn't bulletproof and currently we haven't a
way to override the autodetection of the backend.  Attached you can
find a patch to accomplish this: the variable
`LaTeX-biblatex-use-Biber' has been restored (actually I'm not sure
it's a good idea to use the same name of an old and slightly different
variable, other suggestions are welcome) and when it's set locally it
overrides the autodetection of the backend.

My only concern is that we still can't manually select the appropriate
backend when parsing isn't enabled.  Should we also set
`LaTeX-using-Biber' inside `LaTeX-mode-hook'?  Maybe something like
--8<---------------cut here---------------start------------->8---
(setq LaTeX-using-Biber
      (if (local-variable-p 'LaTeX-biblatex-use-Biber)
--8<---------------cut here---------------end--------------->8---
without further checks.

What do you think?

(Continue reading)

Nicolas Richard | 18 Mar 23:05 2014

patch to add style/exercise.el


Here's a style/exercise.el, a style file for exercise.sty (it's in
texlive). Would you agree to include it in auctex ?


From c5d9dd52256f619f7309872ad374303b4bc857c2 Mon Sep 17 00:00:00 2001
From: Nicolas Richard <theonewiththeevillook <at>>
Date: Mon, 17 Mar 2014 19:28:14 +0100
Subject: [PATCH] Add style/exercise.el for exercise.sty

 ChangeLog         |  3 +++       |  3 ++-
 style/exercise.el | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 1 deletion(-)
 create mode 100644 style/exercise.el

diff --git a/ChangeLog b/ChangeLog
index 2273fca..31b5104 100644
--- a/ChangeLog
+++ b/ChangeLog
 <at>  <at>  -1,3 +1,6  <at>  <at> 
+2014-03-17  Nicolas Richard  <theonewiththeevillook <at>>
+	* style/exercise.el: New file.
 2014-03-18  Tassilo Horn  <tsdh <at>>

 	* doc/auctex.texi: Mention that `TeX-PDF-mode' is enabled by
(Continue reading)

Florêncio Neves | 16 Mar 18:06 2014

Default settings

There are quite a few settings in AUCTeX that one needs to discover
and customize before getting a reasonable environment.  I think the
following settings should become the default:

  (add-hook 'LaTeX-mode-hook 'turn-on-reftex)
  (setq reftex-plug-into-AUCTeX t)
  (setq-default TeX-PDF-mode t)
  (setq TeX-parse-self t)
  (setq TeX-source-correlate-mode t)
  (add-hook 'TeX-mode-hook '(lambda () (LaTeX-math-mode t))

Also, dollar signs should automatically become electric if
`electric-pair-mode' is active (I think currently one has set
TeX-electric-math manually).

I was also going to add (setq TeX-master 'dwim) to the above list, but
it didn't do what I meant (I am using ELPA's version, 11.87.3).  Was
this setting supposed to discover if the current file requires a
master, and try to find it?

Finally. instead of enabling LaTeX-math-mode by default, it might be
even better to always show the "Math" menu, so that LaTeX-math-mode's
only function is to turn on and off the backtick shourtcuts.

What do you think?
Mosè Giordano | 11 Mar 20:35 2014

Re: GNU AUCTeX branch, master, updated. fa1daf8cf4c624dc17f584d821f774527579cc97

Hi Tassilo,

> - Log -----------------------------------------------------------------
> commit fa1daf8cf4c624dc17f584d821f774527579cc97
> Author: Tassilo Horn <tsdh <at>>
> Date:   Tue Mar 11 15:54:03 2014 +0100
>     Fix bug causing endless package queries.
>     * latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix
>     bug that caused AUCTeX to query for packages infinitely.
> diff --git a/ChangeLog b/ChangeLog
> index 60569e5..145ab10 100644
> --- a/ChangeLog
> +++ b/ChangeLog
>  <at>  <at>  -1,5 +1,8  <at>  <at>
>  2014-03-11  Tassilo Horn  <tsdh <at>>
> +    * latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix
> +    bug that caused AUCTeX to query for packages infinitely.
> +
>      * context.el (ConTeXt-add-environments): Advice instead of
>      renaming and redefining generated function.
> diff --git a/latex.el b/latex.el
> index 2da1b24..69e8760 100644
> --- a/latex.el
> +++ b/latex.el
>  <at>  <at>  -1900,7 +1900,7  <at>  <at>  of the options, nil otherwise."
(Continue reading)

Mosè Giordano | 20 Feb 00:34 2014

Pass options to the TeX processor

Hi list,

in AUCTeX there isn't an easy&flexible way to pass arbitrary options
to the TeX processor.  The most wanted option probably is
`-shell-escape'.  Another useful option can be `-fmt <format file>',
to select a format file, because in AUCTeX first line parsing is de
facto disabled.

Setting `{La,}TeX-command' locally (note that those variables aren't
safe by default as file-local variables) doesn't work with
`TeX-engine's different from `default', so this isn't flexible.

Another possibility is to add the options to `LaTeX-command-style' but
this isn't buffer-local by default, there is no corresponding variable
for plain TeX and it's definitely difficult to be remembered.

One could define a new engine in `TeX-engine-alist' combining an
existent engine with the relevant options, but defining a new engine
for all possible combinations of a TeX engine and options (think about
the `-fmt <format file>' option) isn't easy.

I'm sending a patch to address this problem.  It simply adds a new
safe file-local variable (`TeX-command-extra-options') which is the
string of options to be passed to the TeX-processor through a new
expander in `TeX-expand-list'.  In this way, eg, the shell escape can
be enabled with
    %%% TeX-command-extra-options: "-shell-escape"
in the list of local variables, and a format file can be picked up with
    %%% TeX-command-extra-options: "-fmt <format file>"

(Continue reading)

Carlos | 6 Feb 14:28 2014

a LaTeX-env-usepackage environment

Tassilo and Mosè:

Back in - let's see - April 2013 with the subject line Improve completion in TeX-arg-document e
LaTeX-arg-usepackage, it all boiled down that document as an environment should not be changed to class.
Although the question I have, is slightly unrelated, at one point I was able to accomplish it. But it turns
out, that the packages are not bound to the keys that would insert an environment either. So why can't I have
something like the following? 

(defun LaTeX-env-usepackage (&optional ignore)
  "Insert new LaTeX package."
  (TeX-insert-macro "usepackage")
  (end-of-line 0)
  (setq LaTeX-document-style-hook nil))

And just a    '("usepackage" LaTeX-env-usepackage) in the list of environments? 

The reasoning behind this is in that knowing that `C-c C-e`is bound to
insert an environment, so why not get it over with, while at it?

Tassilo, also, you and Kastrup came across a ghostscript operand error in which the different versions of
ghostscript ( earlier versions) disallowed the document from compiling. I read it and bookmarked it, but
can't find it now. Perhaps it's somewhere in the list. Is this related with the fact that context and not
texexec, fails to bring the viewer as long as pdf mode is not enabled? 

Take care. 

auctex-devel mailing list
(Continue reading)

Tassilo Horn | 21 Jan 09:37 2014

Re: Berend de Boer's GNU AUCTeX contributions

Xplain Hosting Support <support <at>> writes:

>>>>>> "Tassilo" == Tassilo Horn <tsdh <at>> writes:
>     Tassilo> Could you please be that kind and apply these changes to
>     Tassilo> the current AUCTeX git version?  There haven't been any
>     Tassilo> changes to context.el by others for the last months, so
>     Tassilo> it should be pretty easy.
> Apologies, took me way to long, but it's now in.

Great, thanks a lot!

> I thought it was a large commit, but was actually pretty minor :-)

A 350 lines patch isn't *that* minor. ;-)

Anyway, recently there came up some discussion about ConTeXt and support
for Mark IV, where one should basically use the context command to
compile documents rather than texexec.  However, I don't use ConTeXt
myself, so I can't judge.

Maybe you could have a look at this thread:

Thanks again,
Mosè Giordano | 14 Jan 18:32 2014

Update babel.el

Hi list,

last April, a new version of `babel' has been released: (and the new maintainer
seems to be an AUCTeX user:
)  For our parsing purposes, the most relevant news I spotted are:
- the default language may be set with the `main' option;
- [quoting from the manual] the basic behaviour of some languages can
be modified when loading `babel' by means of modifiers.  They are set
after the language name, and are prefixed with a dot (only when the
language is set as package option [...]).  An example is [...]:
- a bunch of new package options has been added.

The attached patch updates `style/babel.el' accordingly.  In particular:
- `LaTeX-babel-language-list' has been expanded to contain all the
languages listed in the last version of the manual;
- `LaTeX-babel-active-languages' has been updated to be able to parse
the `main' option and ignore the modifiers;
- `LaTeX-babel-package-options' has been turned into a function
because now requires `TeX-read-key-val'.

Any comments?  Can I install the patch?

Attachment (babel.el.patch): text/x-diff, 7124 bytes
(Continue reading)

Carlos | 13 Jan 15:02 2014

ConTeXt mkiv tex.el

Hello guys,

I sent this message earlier, to the wrong list. Please, my
apologies. And then the authorization to post the message here, did not
go through, it seems.

In order to have mkiv engine compiling the document, line 132 of tex.el
had to be changed to 

            ("ConTeXt Full" "context %(execopts)%t"

So mkiv compiles the document, everytime the option ConTeXt Full is invoked

I already committed this minor change, but I think important
nonetheless, to
Tassilo Horn | 13 Jan 12:05 2014

Re: context.el

joe nt <linguafalsa <at>> writes:

Hi Carlos & Berend,

> Since you are the one who's overseeing this I thought of asking you
> first
> I don't know exactly what the protocol is.

Since AUCTeX is an official GNU project, you have to file a Copyright
Assignment before your code can be considered for inclusion.  To do
that, please fill out the following form and send it to assign <at>
They'll send you some letter per snail mail which you have to sign and
send back.  (Depending on where you live, that might also be doable with

--8<---------------cut here---------------start------------->8---
Please email the following information to assign <at>, and we
will send you the assignment form for your past and future changes.

Please use your full legal name (in ASCII characters) as the subject
line of the message.

[What is the name of the program or package you're contributing to?]

[Did you copy any files or text written by someone else in these changes?
Even if that material is free software, we need to know about it.]

(Continue reading)

Mosè Giordano | 10 Jan 17:15 2014

[RefTeX] reftex-reference ignores reference format selection

Hi all,

the `reftex-reference' function ignores the selected reference format
(if `reftex-ref-macro-prompt' is non-nil) when one choses an equation

For example, consider the following code
--8<---------------cut here---------------start------------->8---
  a + b = c
Equation on page-!-
--8<---------------cut here---------------end--------------->8---
with point at -!-.  If one issues `C-c )' and selects the `\pageref'
macro, an `\eqref' will be inserted.  This seems to occur only with
equation keys.  I'm running Emacs 24.3.  Of course one can insert the
`\pageref' with `C-c C-m pageref RET', but I expect to be able to
accomplish this also with `reftex-reference'.


auctex-devel mailing list
auctex-devel <at>
(Continue reading)