[AUCTeX-devel] Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-02-03 Thread Lukasz Stafiniak

Could someone knowledgeable of dependecies make it possible to have
the default preamble file in a customizable location? (See my note
cited at the end of this message. Moreover, the behavior described
there could be specific to my local settings.) Then previewing no
file's buffers would become a feature.

On 1/31/07, Lukasz Stafiniak [EMAIL PROTECTED] wrote:

(I've switched to auctex-devel.)

On 1/31/07, David Kastrup [EMAIL PROTECTED] wrote:

 Hey, I never got this to run properly (but I didn't try very hard).
 So if you get all the details you remember together, maybe we can make
 it easier for the next person to try something like that.

 In particular, it would be interesting to know all the dead ends you
 explored.  While it is fine if there is a way that makes it work, it
 might even be nicer if some obvious ways (those that you tried
 first) can be made to work, too.

It is simple in the end, as you said. After the buffer is created, set
`TeX-master' to a file in home directory, set `TeX-header-end' and
`TeX-trailer-start' to their default values.

With a `TeX-master' out of place, `preview-parse-messages' doesn't
recognise that some file is none, because it is like
../../none, that is, it's path is home relative to the path of the
preamble, and `preview-parse-messages' has hard-coded check against
none.




___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


[AUCTeX-devel] Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-01-31 Thread Lukasz Stafiniak

(I've switched to auctex-devel.)

On 1/31/07, David Kastrup [EMAIL PROTECTED] wrote:


Hey, I never got this to run properly (but I didn't try very hard).
So if you get all the details you remember together, maybe we can make
it easier for the next person to try something like that.

In particular, it would be interesting to know all the dead ends you
explored.  While it is fine if there is a way that makes it work, it
might even be nicer if some obvious ways (those that you tried
first) can be made to work, too.


It is simple in the end, as you said. After the buffer is created, set
`TeX-master' to a file in home directory, set `TeX-header-end' and
`TeX-trailer-start' to their default values.

With a `TeX-master' out of place, `preview-parse-messages' doesn't
recognise that some file is none, because it is like
../../none, that is, it's path is home relative to the path of the
preamble, and `preview-parse-messages' has hard-coded check against
none.


___
auctex-devel mailing list
auctex-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex-devel


Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-01-31 Thread Lukasz Stafiniak

On 1/29/07, David Kastrup [EMAIL PROTECTED] wrote:

Lukasz Stafiniak [EMAIL PROTECTED] writes:

Well, have you tried setting TeX-master to a LaTeX file containing
your desired preamble and an empty document?  That should be close to
what is required for your task.  mmm-mode will probably add its own
complications.


Thanks! Now I have the _region_.dvi generated, but I still get error.
When I debug I have: Preview-LaTeX: done, but nothing is displayed
(without debugging I it says that LaTeX couldn't find preview images).


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-01-31 Thread Lukasz Stafiniak

It works! It took me too long to find out that the default preamble
must be in home directory. (There are some none files involved.)

On 1/31/07, Lukasz Stafiniak [EMAIL PROTECTED] wrote:


Thanks! Now I have the _region_.dvi generated, but I still get error.
When I debug I have: Preview-LaTeX: done, but nothing is displayed
(without debugging I it says that LaTeX couldn't find preview images).




___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-01-31 Thread David Kastrup
Lukasz Stafiniak [EMAIL PROTECTED] writes:

 It works! It took me too long to find out that the default preamble
 must be in home directory. (There are some none files involved.)

 On 1/31/07, Lukasz Stafiniak [EMAIL PROTECTED] wrote:
 
 Thanks! Now I have the _region_.dvi generated, but I still get
 error.  When I debug I have: Preview-LaTeX: done, but nothing is
 displayed (without debugging I it says that LaTeX couldn't find
 preview images).

Hey, I never got this to run properly (but I didn't try very hard).
So if you get all the details you remember together, maybe we can make
it easier for the next person to try something like that.

In particular, it would be interesting to know all the dead ends you
explored.  While it is fine if there is a way that makes it work, it
might even be nicer if some obvious ways (those that you tried
first) can be made to work, too.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] feature request (preview-latex): previewing without master file, with a default preamble

2007-01-29 Thread David Kastrup
Lukasz Stafiniak [EMAIL PROTECTED] writes:

 Hi,

 AUCTeX together with `mmm-mode' helps me edit equations in my web
 pages, rendered by jsMath. But I _very very_ miss the preview
 functionality (latex source doesn't tell much to my eye).

 Many people would benefit from the ability to preview jsMath
 insertions, especially as wiki pages are a convenient multi user
 editing and publishing system.

 So I ask for the possibility to preview region from any buffer
 (probably not visiting a file), with a default preamble (and default,
 automatically generated auxiliary files).

Well, have you tried setting TeX-master to a LaTeX file containing
your desired preamble and an empty document?  That should be close to
what is required for your task.  mmm-mode will probably add its own
complications.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


___
auctex mailing list
auctex@gnu.org
http://lists.gnu.org/mailman/listinfo/auctex