2 Jun 2005 05:50

### preserving images, and image contrast

hi,

1. Currently, when I kill emacs, all the preview images (and IIRC, the .efmt
file too), are deleted. I have customized the auto-cache variable to be on, but
I suppose the cache is only on a per-session basis? Is there a way to make
previe-latex not delete all those images at the end of the session? If the
previews are up-to-date (or even reasonably so) at the end of the session, I'd
like a way to reuse them at the next start-up, instead of going through the
whole thing again.

2. Currently, images for inline math are low on contrast, and somewhat blurry. I
compensate for that somewhat by setting preview-scale-function to the number
1.25. Even so, I'd be interested to know a way to address the problem directly.
(The background for my default face in emacs is beige, but the problems persist
even for a white background.)

This is on CVS emacs (precompiled binary from crasseux.com) running on WinXP.
Thanks,

Rajneesh.

Here's the state info, in case it's useful. sorry for any bad indentation, gmane
complains if any lines are longer than 80 characters(?!). I tried filling it
sensibly in emacs before posting, but didn't do a very good job.

Emacs  : GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600)
of 2005-04-16 on LAPTOP
Package: rel-0-9-1



2 Jun 2005 08:56

### Re: preserving images, and image contrast

Rajneesh Hegde wrote:
> 2. Currently, images for inline math are low on contrast, and somewhat blurry. I
> compensate for that somewhat by setting preview-scale-function to the number
> 1.25. Even so, I'd be interested to know a way to address the problem directly.
> (The background for my default face in emacs is beige, but the problems persist
> even for a white background.)

>  preview-dvipng-command "dvipng -picky -noghostscript %d -o
>  \"%m/prev%%03d.png\""

-gamma 1.4

or so (default 1, higher number=more contrast).

/JÅ

2 Jun 2005 09:15

### Re: preserving images, and image contrast

* Rajneesh Hegde (2005-06-02) writes:

> 1. Currently, when I kill emacs, all the preview images (and IIRC,
> the .efmt file too), are deleted. I have customized the auto-cache
> variable to be on, but I suppose the cache is only on a per-session
> basis? Is there a way to make previe-latex not delete all those
> images at the end of the session? If the previews are up-to-date (or
> even reasonably so) at the end of the session, I'd like a way to
> reuse them at the next start-up, instead of going through the whole
> thing again.

desktop.el

--

--
Ralf

2 Jun 2005 10:48

### Re: preserving images, and image contrast

Jan-Ake Larsson <jalar <at> mai.liu.se> writes:

> Rajneesh Hegde wrote:
>> 2. Currently, images for inline math are low on contrast, and
>> somewhat blurry. I compensate for that somewhat by setting
>> preview-scale-function to the number 1.25. Even so, I'd be
>> interested to know a way to address the problem directly.  (The
>> background for my default face in emacs is beige, but the problems
>> persist even for a white background.)
>
>>  preview-dvipng-command "dvipng -picky -noghostscript %d -o
>>  \"%m/prev%%03d.png\""
>
>
>          -gamma 1.4
>
> or so (default 1, higher number=more contrast).

His settings clearly don't make use of dvipng.  If he has dvipng
installed, he could use

M-x customize-variable RET preview-image-type RET

to set the image type to "dvipng", and then your advice might make a
difference.

--

--
David Kastrup, Kriemhildstr. 15, 44793 Bochum


2 Jun 2005 11:20

### Actions in multifile documents.

Hello,

is it -- or will it be -- possible to perform a certain set of
actions for all files of a multifile document?  For instance, I
would like to find all occurrences of a string in my document.  I
know that package edit-utils' supports searching in many buffers
in its buffer and window management section. Thus to use that
facility, I would have to open all files belonging to a document
(which yields another possible application of doing things for
all files in a multifile document).

Another feature I would like to see, is to have a function that
lets one directly jump to the file referred to by an \include'
macro after having placed the cursor into the macro's argument.
So far, I am not aware that any of these features are part of the
multifile handling in AUCTeX.

Franz.

2 Jun 2005 11:32

### Re: preserving images, and image contrast

David Kastrup wrote:
> His settings clearly don't make use of dvipng.  If he has dvipng
> installed, he could use
>
> M-x customize-variable RET preview-image-type RET
>
> to set the image type to "dvipng", and then your advice might make a
> difference.

Ah, sorry. I didn't see "dvipng" in image-types so I mistakenly thought
dvipng was enbled by default when choosing 'png.

/JÅ

2 Jun 2005 11:52

### AUCTeX Folding: Feature Request

Hi there,

regarding the wonderful folding function of AUCTeX, I would like to
suggest two minor improvements.

\documentclass{scrartcl}
\begin{document}
\begin{description}
\item[A label] It has a nice description of a variable
X\textsubscript{foo} and Y\textsuperscript{bar}.
\end{description}
\end{document}

Folding this shows two things: First, the item label is hidden, which
* It has a nice description of a variable
it would be nice to see
*[A Label] It has a nice description of a variable

Second, wouldn't it be nice to process the textsu[b|per]script in the
same way it is the case in math mode for "^" and "_"?

Should one or both features be already existant, I would like to
apologise and ask for a hint how to activate.

Best
Joachim
--

--
Joachim Schlosser
(The e-mail address is fully repliable.)


2 Jun 2005 12:02

### Re: Actions in multifile documents.

Franz Haeuslschmid <haeuslsc <at> fmi.uni-passau.de> writes:

> is it -- or will it be -- possible to perform a certain set of
> actions for all files of a multifile document?  For instance, I
> would like to find all occurrences of a string in my document.  I
> know that package edit-utils' supports searching in many buffers in
> its buffer and window management section. Thus to use that facility,
> I would have to open all files belonging to a document (which yields
> another possible application of doing things for all files in a
> multifile document).

reftex-search-document is an interactive autoloaded Lisp function in reftex-global'.
[Arg list not available until function definition is loaded.]

Regexp search through all files of the current TeX document.

> Another feature I would like to see, is to have a function that lets
> one directly jump to the file referred to by an \include' macro
> after having placed the cursor into the macro's argument.  So far, I
> am not aware that any of these features are part of the multifile
> handling in AUCTeX.

ffap is an alias for find-file-at-point' in ffap.el'.
(ffap &optional FILENAME)

Find FILENAME, guessing a default from text around point.
If ffap-url-regexp' is not nil, the FILENAME may also be an URL.
With a prefix, this command behaves exactly like ffap-file-finder'.
If ffap-require-prefix' is set, the prefix meaning is reversed.
See also the variables ffap-dired-wildcards', ffap-newfile-prompt',


2 Jun 2005 12:10

### Re: Actions in multifile documents.

Franz Haeuslschmid <haeuslsc <at> fmi.uni-passau.de> writes:
> is it -- or will it be -- possible to perform a certain set of
> actions for all files of a multifile document?  For instance, I
> would like to find all occurrences of a string in my document.

reftex-grep-document

> Another feature I would like to see, is to have a function that
> lets one directly jump to the file referred to by an \include'
> macro after having placed the cursor into the macro's argument.

> So far, I am not aware that any of these features are part of the
> multifile handling in AUCTeX.

Take a look at the documentation for RefTeX.

Best wishes,

Peter

2 Jun 2005 12:23

### Re: Too many questions

>
> If you put the following in .emacs then C-f5 will run save the file
> and run LaTeX.
>
> (defun rl-save-and-LaTeX ()
> 	"Save and LaTeX TeX-master-file' (without querying the user).
>
> Any files \\input by TeX-master-file' are also saved without prompting."
> 	(interactive)
> 	(let (TeX-save-query)									   ;the following will save without prompting
> 		(TeX-save-document (TeX-master-file))) ;save master document and its files
>   (TeX-command "LaTeX" 'TeX-master-file))  ;LaTeX master doument
>
`