Re: rel-0-8; generating preamble fails
David Kastrup <dak <at> gnu.org>
2004-04-12 11:08:29 GMT
"Björn Pedersen" <bjoern.pedersen <at> arcor.de> writes:
> Dumping a preview format fails:
> Running `Preview-LaTeX' on `neutronbook' with ``\1latex -ini "&\1latex" prv_neutronbook.ini "\nonstopmode\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}\fi}\input{neutronbook.tex}"''
> /bin/sh: line 1: 1latex: command not found
> preview-dump-replacements '(preview-LaTeX-command-replacements
> ("\\`\\(pdf\\)?\\(e?\\)\\(la\\)?tex\\(\\( -\\([^ \"]\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'"
"\\1\\2\\3tex -ini \"&\\1\\2\\3tex\" " preview-format-name ".ini \\7")
> )
> preview-undump-replacements '(("\\`\\(pdf\\)?\\(e?\\)\\(la\\)?tex\\(\\( -\\([^
\"]\\|\"[^\"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'" "\\1\\2\\3tex\\4 \"&"
preview-format-name "\" \\7")
This would appear to be a bug in the XEmacs regexp routines (probably
also prevalent in older Emacsen). Sigh. I knew I forgot some tests.
Does the following patch help? (if you are using one of the
ready-packaged versions, you'll need to use
byte-compile-file RET
on the preview.el file after applying it, then restart XEmacs).
--
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum