Angus Leeming <[EMAIL PROTECTED]> writes:

> Lars Gullik Bjønnes wrote:
> 
> > | 3. Would people like a Preview of such Input?
> > 
> > sure.
> 
> Oh my god! It works! See attached!

This is all a secret plot from envious Emacs users that want LyX
development to stall by incurring a lethal eye candy dependency on
core developers.

> The InsetInclude::PreviewImpl and InsetFormula::PreviewImpl are very 
> similar so I'll try and factor the common code into a base class.
> 
> Questions:
> 1. Does it make sense to preview anything other than Input?

Uh, yes.  But this very much depends on the document in question.
See a few examples on the <http://preview-latex.sourceforge.net> homepage.
Other obvious candidates are figures, tables, includegraphics (you'll
tell me that LyX already previews them in its own way, but does that
include psfrag replacements?), picture environments, pspicture,
psmatrix and so on.  Of course, with nested such things, just take
the outer one.

Since this is actually a Pandora's box, preview.sty offers a few
default settings for extractions, and an elaborate LaTeX-based scheme
that lets the user specify the components to be extracted to LaTeX
either in the document preamble or in separate configuration files.

Emacs itself has no clue about what previews the LaTeX run might turn
up and where, but with the "auctex" option set, each of the preview
snippets causes an error message to be generated at the start and end
of it, and those error messages provide the needed correlation between
exact buffer positions of the snippet and the produced image files.

> 2. clearly not everything can or should be previewed, so I'll add a
>         bool preview;
> parameter to InsetInclude::Params that defaults to false. We'll need a 
> button on the Include dialog to set it, so I refer you to q.1 again.
> 
> 3. Things work only if I specify an absolute path name.

Why?

> Any ideas about what I should be doing to tell LaTeX where to find
> the included file?

Probably nothing different from what the normal processing of \input
would be getting?

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: [EMAIL PROTECTED]


Reply via email to