Discussion:
working with Automatic Customization and auto filling
Jobst Hoffmann
2005-02-07 10:54:08 UTC
Permalink
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.

1. I'm wondering why there is a dependance of creating .el-files
in ./auto:

Automatic customization of a LaTeX-file auto_tst.tex (shown below)
doesn't work like it's announced in the manual. There is no texpower-
entry in the ./auto/auto_tst.el file and therefore I have to type all
macros from texpower by myself. If I'm changing the usepackage command
to the other (out commented) way, all works like expected. Any hints?

---------------------------------------------8< begin snap ------
documentclass[12pt,a4paper]{article}

\usepackage[a,\b]{texpower} % no entries in ./auto/auto_tst.el
%\usepackage[a,b]{texpower} % correct entries in ./auto/auto_tst.el

\begin{document}

\begin{figure}[htb]
\centering%
\includegraphics{abc}
\ifvop{%
\caption{abc}%
\label{fig:abc}%
}{}%
\end{figure}

\end{document}

%%% Local Variables:
%%% mode: latex
%%% mode: flyspell
%%% TeX-master: true
%%% End:
---------------------------------------------8< end snap ------


2. Just FYI: the result of TeX-auto-generate depends on the loaded
XEmacs packages. In a minimum set up like shown below the results are ok
but in my standard setup the results are missing some entries - I'll
have to investigate it further

3. auto filling the above shown figure environment with point after
[htb] leads to the following result:

\begin{figure}[htb]
\centeri
ng%
\includegraphics{abc}
\ifvop{%
\caption{abc}%
\label{fig:abc}%
}{}%
\end{figure}


XEmacs set up (from Report AUCTeX Bug):

---------------------------------------------8< begin snap ------
Emacs : XEmacs 21.4 (patch 16) "Corporate Culture" [Lucid] (i686-pc-
linux) of Tue Dec 21 2004 on thinktwiceIV.phytech.fh-aachen.de
Package: AUCTeX 11.55

current state:
==============
(setq
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.xemacs/xemacs-packages/lisp/auctex/style/" "auto/"
"/opt/local/share/texmf/support/auctex/" "/opt/local/var/auctex/")
TeX-auto-save t
TeX-parse-self t
TeX-master 'true
)
---------------------------------------------8< end snap ------
Happy AUCTeXing!
--
Prof. Dr. Jobst Hoffmann Tel: (0049)-2461-99-3159
Fachhochschule Aachen Abt. Jülich Fax: (0049)-2461-99-3189
Fachbereich 3 email: ***@fh-aachen.de
Ralf Angeli
2005-02-07 13:48:28 UTC
Permalink
Post by Jobst Hoffmann
Automatic customization of a LaTeX-file auto_tst.tex (shown below)
doesn't work like it's announced in the manual. There is no texpower-
entry in the ./auto/auto_tst.el file and therefore I have to type all
macros from texpower by myself. If I'm changing the usepackage command
to the other (out commented) way, all works like expected. Any hints?
---------------------------------------------8< begin snap ------
documentclass[12pt,a4paper]{article}
\usepackage[a,\b]{texpower} % no entries in ./auto/auto_tst.el
%\usepackage[a,b]{texpower} % correct entries in ./auto/auto_tst.el
The parser does not match the first variant. That's because we
currently use the following regular expression for matching:

"\\\\use\\(package\\)\\(\\[\\([^\]\\\\]*\\)\\]\\)?\
{\\(\\([^#}\\\\\\.%]\\|%[^\n\r]*[\n\r]\\)+?\\)}"

It doesn't allow backslashes inside the square brackets of the
optional usepackage arguments. I think the original intention was to
prevent escaped square brackets from being matched. So my proposal
would be to change this to

"\\\\use\\(package\\)\\(\\[\\(.*[^\\]\\|\\)\\]\\)?\
{\\(\\([^#}\\.%]\\|%[^\n\r]*[\n\r]\\)+?\\)}"

Question for other developers: Does that look right? (Note that I
also removed some excess backslashes in the complemented character
alternatives.)
Post by Jobst Hoffmann
3. auto filling the above shown figure environment with point after
\begin{figure}[htb]
\centeri
ng%
\includegraphics{abc}
\ifvop{%
\caption{abc}%
\label{fig:abc}%
}{}%
\end{figure}
This is fixed in CVS. Thanks for the report.
Post by Jobst Hoffmann
Emacs : XEmacs 21.4 (patch 16) "Corporate Culture" [Lucid] (i686-pc-
linux) of Tue Dec 21 2004 on thinktwiceIV.phytech.fh-aachen.de
Package: AUCTeX 11.55
You are actually using XEmacs 21.4.16 with AUCTeX 11.55? Be sure to
upgrade XEmacs as soon as possible. XEmacs 21.4.16 was withdrawn due
to a bug which may be triggered by AUCTeX and lead to hangs and
crashes. 21.4.17 was released yesterday which contains a fix for this
bug.
--
Ralf
Loading...