emacs-devel
[Top][All Lists]
Advanced

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

Re: Several suggestions for image support


From: David Kastrup
Subject: Re: Several suggestions for image support
Date: 16 Apr 2004 15:49:18 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Stefan Monnier <address@hidden> writes:

> > If instead just the table cell opened and the cursor would be
> > positioned there, one could use this for serious table editing.
> > Since the whole table is available as one graphic, loading
> > hundreds of separate images would be inconvenient.  It is
> > conceivable to split the image within TeX and load it as separate
> > graphics.  However, the involved complexity is far greater if I
> > want to keep the alignment intact.
> 
> Sounds great for preview-latex, except I'm wondering how you can
> make it work.  I mean, how can you figure out what are the pixel
> positions of the various cells in your image?

preview-latex talks with GhostScript via a bidirectional pipe.  The ==
PostScript operator will output things to stdout.  The \special{ps:
Some PostScript code} sequence will execute the given PostScript code
at the page position corresponding to its source code position.  An
\errmessage will inform preview-latex of the buffer position.
\everyhbox{...} will execute code at the start of every cell in a
table.  \everycr{...} will execute code at the end of each table
line.

The amount of dirty tricks involved here is moderate in comparison to
what is already there.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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