16 Nov 2008 22:55

### Re: Math macros and TeX-insert-macro'

Ralf Angeli <angeli <at> caeruleus.net> writes:

> you've likely seen the (slightly obnoxious) message about math macros
> not being available for completion with TeX-insert-macro'.  I've been
> wondering myself why this is the case.  Could somebody think of a
> reason why we would not want them to be available for completion (in
> LaTeX mode)?

To not clutter up the completion display?  No better idea than that, and
I also doubt that this is really the best idea.

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

16 Nov 2008 22:58

### Re: preview of \ref commands in preview-latex

"Tim Toolan" <toolan <at> ele.uri.edu> writes:

> Hello,
>
> It is possible to replace the \ref type commands in preview mode with
> the actual resolved labels as they appear in the preview images in a
> robust way by using the .aux information generated when generating the
> previews.  It also would allow adding new references using the number
> as it appears in the preview images.
>
> I am interested in implementing this, but would like to know if people
> feel that this would be a useful addition, and if there are any
> suggestions about how people would like it to work before I start.

I think that this is a case where one would not want images as previews,
but rather text (similar for footnote markers and such).  preview.sty
needs an interface for passing this sort of info to Emacs, and of course
preview-latex needs to pick it up.

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

16 Nov 2008 23:00

### Re: reftex patch to support resolved labels

Ralf Angeli <angeli <at> caeruleus.net> writes:

> I have no idea about how preview-latex handles .aux files.  Perhaps
> David can comment.

I am not sure.  We used to do \nofiles, but I seem to remember that
there were some conflicts with pst-pdf or similar, and we juggled
things.

Basically, if aux file information is written during preview-latex runs,
it is likely not useful.

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

16 Nov 2008 23:02

### Re: patch for preview-latex to reduce file clutter and not overwrite document

"Tim Toolan" <toolan <at> ele.uri.edu> writes:

> Hello,
>
> First, I must thank the developers of preview-latex for this really
> great package.
>
> Included is a small patch for preview-latex that does three things:
>
> 1) Greatly reduces file clutter.  When generating previews, only two
>    things are added to the main tex directory, a directory called
>    MASTERTEXFILE.prv and a file called file _region_.tex.  All other
>    files generated when creating previews, including previews of
>    regions, are placed in the directory MASTERTEXFILE.prv.
>
> 2) Any typeset version of the document, such as a .pdf or .dvi file is
>    left alone.  Previously they were deleted when generating a preview.
>
> 3) Auxilary files are created for previews since there is no longer
>    any danger of clobbering anything.

How does this play together with \include ?

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum

17 Nov 2008 14:42

### Re: preview of \ref commands in preview-latex

Quoting "David Kastrup" <dak <at> gnu.org>:

> "Tim Toolan" <toolan <at> ele.uri.edu> writes:
>
>> Hello,
>>
>> It is possible to replace the \ref type commands in preview mode with
>> the actual resolved labels as they appear in the preview images in a
>> robust way by using the .aux information generated when generating the
>> previews.  It also would allow adding new references using the number
>> as it appears in the preview images.
>>
>> I am interested in implementing this, but would like to know if people
>> feel that this would be a useful addition, and if there are any
>> suggestions about how people would like it to work before I start.
>
> I think that this is a case where one would not want images as previews,
> but rather text (similar for footnote markers and such).  preview.sty
> needs an interface for passing this sort of info to Emacs, and of course
> preview-latex needs to pick it up.
>
Are you talking about something like the [r] [c] and [f] markers that
are used when using folding mode?  That would probably be the best
place to use the information.  It would be relatively easy to replace
the [r] with the resolved label.

17 Nov 2008 14:50

### Re: reftex patch to support resolved labels

Quoting "David Kastrup" <dak <at> gnu.org>:

> Ralf Angeli <angeli <at> caeruleus.net> writes:
>
>> I have no idea about how preview-latex handles .aux files.  Perhaps
>> David can comment.
>
> I am not sure.  We used to do \nofiles, but I seem to remember that
> there were some conflicts with pst-pdf or similar, and we juggled
> things.
>
> Basically, if aux file information is written during preview-latex runs,
> it is likely not useful.
>
> --
> David Kastrup, Kriemhildstr. 15, 44793 Bochum
>
The aux information should be useful when it generates a preview for
the whole document or when preview-preserve-counters is used when
generating previews for a region.

In the case of generating previews for regions, it can be combined
with any current knowledge of labels to determine if the following
previews will have incorrect resolved numbers.

-Tim

17 Nov 2008 15:12

### Re: patch for preview-latex to reduce file clutter and not overwrite document

Quoting "David Kastrup" <dak <at> gnu.org>:

> "Tim Toolan" <toolan <at> ele.uri.edu> writes:
>
>> Hello,
>>
>> First, I must thank the developers of preview-latex for this really
>> great package.
>>
>> Included is a small patch for preview-latex that does three things:
>>
>> 1) Greatly reduces file clutter.  When generating previews, only two
>>    things are added to the main tex directory, a directory called
>>    MASTERTEXFILE.prv and a file called file _region_.tex.  All other
>>    files generated when creating previews, including previews of
>>    regions, are placed in the directory MASTERTEXFILE.prv.
>>
>> 2) Any typeset version of the document, such as a .pdf or .dvi file is
>>    left alone.  Previously they were deleted when generating a preview.
>>
>> 3) Auxilary files are created for previews since there is no longer
>>    any danger of clobbering anything.
>
> How does this play together with \include ?
>
The \include function is defined as:

\def\include#1{\relax
\ifnum\ <at> auxout=\ <at> partaux
\ <at> latex <at> error{\string\include\space cannot be nested}\ <at> eha


18 Nov 2008 02:01

### TeX-auto-global confusing doc string

Hi there,

The value of TeX-auto-global was not set in any way during the
installation. After installation, I got a value that conflicts with its
documentation, which says that it must end with a directory separator.

(defcustom TeX-auto-global
"/tmp/AUC/var/auctex"
"*Directory containing automatically generated information.
Must end with a directory separator.

For storing automatic extracted information about the TeX macros
shared by all users of a site."
:group 'TeX-file
:type 'directory)

Maybe this is a bug?

Bye,
--

--
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

Use the better alternative -- http://www.openoffice.org/

21 Nov 2008 03:19

### AUCTeX failed to detect SyncTeX

The function TeX-source-correlate-determine-method' does not detect
SyncTeX correctly because (string-match "^-synctex" help) always returns
nil.

An example output of latex --help' with latest MikTeX is attached. 2.7.


Usage: latex [OPTION...] [COMMAND...]
-alias=APP                      Pretend to be APP.  This affects both the
format used and the search path.
-aux-directory=DIR              Use DIR as the directory to write auxiliary
files to.
-buf-size=N                     Set buf_size to N.
-c-style-errors                 Enable file:line:error style messages.
-disable-8bit-chars             Make only 7-bit characters printable by.
-disable-installer              Disable the package installer.  Missing
files will not be installed.
-disable-pipes                  Disable input (output) from (to) processes.
-disable-write18                Disable the \write18{COMMAND} construct.
-dont-parse-first-line          Do not parse the first line of the input
line to look for a dump name and/or extra
command-line options.
-draftmode                      Switch on draft mode (generates no output).
-enable-8bit-chars              Make all characters printable by default.
-enable-enctex                  Enable EncTeX extensions such as \mubyte.
-enable-etex                    Enable e-TeX extensions.
-enable-installer               Enable the package installer.  Missing files
will be installed.
-enable-mltex                   Enable MLTeX extensions such as \charsubdef.


23 Nov 2008 21:15

### Re: AUCTeX failed to detect SyncTeX

* Leo (2008-11-21) writes:

> The function TeX-source-correlate-determine-method' does not detect
> SyncTeX correctly because (string-match "^-synctex" help) always returns
> nil.

Thanks.  Fixed in CVS.

--

--
Ralf
`

Gmane