2 Jun 11:40 2011

### Re: 2011-05-15; TeX-source-correlate-method synctex instead of source-specials

* Rares Vernica (2011-05-19) writes:

>   So, Xdvi needs source-specials, but the file is compiled with
>   synctex.

Yup.  My hope was that Xdvi would eventually gain support for SyncTeX.
It seems this hasn't happened yet.

>   A workaround is to do:
>
>     (setq TeX-source-correlate-method 'source-specials)
>
>   before TeX-source-correlate-mode is enabled.

This is not a workaround but the recommended way to control which
mechanism is used for I/O correlation.  The drawback obviously is that
this will also switch the mechanism for PDF output.

If you want to control the mechanism on a per file basis, you can set
TeX-source-correlate-method-active' as a file variable like this:

%%% TeX-source-correlate-method-active: source-specials

_This_ I would call a workaround.

--

--
Ralf


14 Jun 22:43 2011

### Re: lualatex needs --jobname option

* Manuel Pégourié-Gonnard (2011-05-28) writes:

> Full disclosure: I'm not an AucTeX user (actually I'm an evil
> vimist).

Well, nobody is perfect. (c;

> But I'm also a TeX Live maintainer, and since it seems some
> decisions we made in TeX Live have an impact on AucTeX, I thought it
> we be good to communicate about it.

Thanks for that.

> So, currently (and with the next release of TeX Live), compiling files
> from AucTeX with lualatex doesn't work as expected. It was discussed
> at least two times on TeX Live or LuaTeX-related lists, and at least
> once here:
> http://lists.gnu.org/archive/html/bug-auctex/2011-02/msg00001.html
> with a proper fix found: use the --jobname option. That is, the
> invocation
>
> lualatex --jobname=foo '\input foo.tex'
>
> always works. It also works with latex, pdflatex or xelatex, even if
> the --jobname part is redundant for anything but lualatex. So I'd like
> to suggest adding --jobname to the default TeX invocation in AucTeX so
> that your users stop having this problem with luatex, without having
> to wait for luatex 0.71.

I've tried the --jobname switch with a file that contains a space in its


15 Jun 00:47 2011

### Re: lualatex needs --jobname option

Le 14/06/2011 22:43, Ralf Angeli a écrit :
> I've tried the --jobname switch with a file that contains a space in its
> name.  I guess that the file name has to be quoted in this case.

Normally, no quoting is necessary in this case (other than required by the shell
to make it a single argument).

> The first one is from a local copy of TeX Live 2010 and the second one
> is the version which is available in Debian/sid right now.
>
Ok, got it. The discrepancy comes not from the version of the engine but from
the underlying distribution: Debian (even sid) still ships TeX Live 2009. The
(partially-working) autoquoting mechanism was introduced in the lualatex format
in TeX Live 2010.

> $/home/angeli/texlive/2010/bin/x86_64-linux/lualatex --jobname=\"luatex\ test\" -interaction=nonstopmode "\input" \"luatex\ test.tex\" > This is LuaTeX, Version beta-0.60.2-2010071218 (TeX Live 2010) (rev 3736) > [...] > ! LaTeX Error: Missing \begin{document}. > [...] > Output written on luatex test.pdf (1 page, 12492 bytes). > Transcript written on "luatex test.log". > > This does not work. > This was not the intended use, so the lualatex format adds an extra pair of quotes, which is obviously wrong. I would have expected pdflatex to fail in the same way in this case, but it does  (Continue reading) 17 Jun 13:00 2011 ### bug-auctex <at> gnu.org To whom may concern, First of all thanks for providing RefTeX and AucTeX as great tools for mathematical writing. When I'm trying to let RefTeX work with \newtheorem in latex, I find the following problem. After setting the new environment for reftex in .emacs as follows, when I type "C-c C-) h" the reftex cannot provide the label for theorem in latex file. The same for "C-c C-) a". But When type C-c C-) Space, all theorem and axiom labels are prompt for choosing. Other informations are also attached. Thanks a lot and Best wishes! Xiaojie Operating system Ubuntu 10.04 RefTeX version 4.31 relating code from .emacs (setq reftex-label-alist '( ("axiom" ?a "ax:" "~\\ref{%s}" nil () -2) ("thm" ?h "thm:" "~\\ref{%s}" nil () -3) ;; above for theorem ("definition" ?d "def:" "~\\ref{%s}" t ("definition" "def.") -3)  (Continue reading) 19 Jun 21:20 2011 ### Re: lualatex needs --jobname option * Manuel Pégourié-Gonnard (2011-06-15) writes: > Le 14/06/2011 22:43, Ralf Angeli a écrit : >> >> Do you happen to know a way of quoting which works with both versions? >> > Unfortunately not, and I'm really sorry for that. I tend to recommend the > > --jobname=luatex\ test > > way, since it works for TL 2010 and TL 2011, and this is more > important IMO than supporting 2009 even if it is the Debian version > for the following reasons: > 1. Debian users seem unlikely to use spaces in their tex filenames too > often, I believe this is rather an habit of Windows and OS X users; > 2. LuaTeX users tend to want up-to-date suff anyway. > (I admit this reasons are rather based on clichés.) > > The only good news in this picture is that, however you quote the > argument of --jobname, it will work with any version of TeX Live if > the filename doesn't contain spaces. So it is probably still a good > idea to add --jobname: it would fix the problem with the autoquote fix > in TL 2010/11 for filenames without spaces. Thanks for all the informative explanations. I've now added the --jobname switch for luatex and lualatex with the quoting you recommend above, i.e. --jobname=luatex\ test in the example we discussed. I've added it really only for the two LuaTeX binaries and not for other engines' binaries since I want to keep the impact as small as possible.  (Continue reading) 19 Jun 21:23 2011 ### Re: lualatex needs --jobname option Le 19/06/2011 21:20, Ralf Angeli a écrit : > Thanks for all the informative explanations. I've now added the > --jobname switch for luatex and lualatex with the quoting you recommend > above, i.e. --jobname=luatex\ test in the example we discussed. I've > added it really only for the two LuaTeX binaries and not for other > engines' binaries since I want to keep the impact as small as possible. > Great. By the way, only(dvi)lualatex is impacted, not the luatex command. The rationale is, LaTeX does \input\jobname.aux for every document so jobname quoting is crucial here, but Plain does not, so we thought it would be better to left it untouched. Manuel.  19 Jun 21:37 2011 ### Re: lualatex needs --jobname option * Manuel Pégourié-Gonnard (2011-06-19) writes: > By the way, only(dvi)lualatex is impacted, not the luatex command. The > rationale is, LaTeX does \input\jobname.aux for every document so > jobname quoting is crucial here, but Plain does not, so we thought it > would be better to left it untouched. Oh, okay. I've backed out the change for luatex again, but left it intact for lualatex. -- -- Ralf  21 Jun 11:26 2011 ### 11.86; "TeX-insert-macro usepackage" crashes when cannot access directory Remember to cover the basics, that is, what you expected to happen and what in fact did happen. Be sure to consult the FAQ section in the manual before submitting a bug report. In addition check if the bug is reproducable with an up-to-date version of AUCTeX. So please upgrade to the version available from http://www.gnu.org/software/auctex/ if your installation is older than the one available from the web site. If the bug is triggered by a specific (La)TeX file, you should try to produce a minimal sample file showing the problem and include it in your report. Your bug report will be posted to the AUCTeX bug reporting list. ------------------------------------------------------------------------ Dear All, The command \C-c\C-m usepackage crashes with the message Searching for files... Opening directory: permission denied, /maths/TeX/share/texmf-local/tex/latex/JCM where$ echo \$TEXMFLOCAL
/maths/TeX/share/texmf-local:

I believe that a check should be made whether a directory is
accessible before attempting to search in it in order to avoid the
crash.
`