bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] Re: 2007-05-25; \documentclass options like version=2.97a p


From: Christian Schlauer
Subject: [Bug-AUCTeX] Re: 2007-05-25; \documentclass options like version=2.97a prevent parsing
Date: Sun, 24 Jun 2007 23:13:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Ralf Angeli <address@hidden> writes:

> * Christian Schlauer (2007-06-19) writes:
>
>> Now the problem is that if a `floating point version number' is
>> specified, the file scrlttr2.elc is not loaded, which means that C-c
>> C-e lett TAB does not offer the letter environment.
>
> The regexp for recognizing a \documentclass macro when parsing the file
> looks like this
> "\\\\document\\(style\\|class\\)\
> \\(\\[\\(\\([^#\\.%]\\|%[^\n\r]*[\n\r]\\)*\\)\\]\\)?\
> {\\([^#\\\\\\.\n\r]+?\\)}"
> (See `LaTeX-auto-minimal-regexp-list'.)  So periods in arguments are
> explicitely disallowed.  Does anybody know why this restriction is in
> place?

I don't know. Could it be that the regexp was just made as
conservative as possible?

What about the `binding correction' BCOR, which has existed in
KOMA-Script for as long as I know:

\documentclass[a4paper,BCOR8.25mm]{scrreprt}

This example is taken straight from the KOMA-Script manual
scrguien.pdf, dated 2007-01-09.

I'd say the period has to be allowed in AUCTeX, because it is `valid
LaTeX', as it seems.

--
Christian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]