From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Several suggestions for image support Date: 16 Apr 2004 15:49:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87zn9cm4ja.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082123576 4233 80.91.224.253 (16 Apr 2004 13:52:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2004 13:52:56 +0000 (UTC) Cc: emacs-devel@gnu.org, "Kim F. Storm" Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 16 15:52:48 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BETlw-0006xT-00 for ; Fri, 16 Apr 2004 15:52:48 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BETln-0006Kh-00 for ; Fri, 16 Apr 2004 15:52:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BETkM-0004Ch-DW for emacs-devel@quimby.gnus.org; Fri, 16 Apr 2004 09:51:10 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BETkE-00049t-Fy for emacs-devel@gnu.org; Fri, 16 Apr 2004 09:51:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BETjC-0003Ms-7B for emacs-devel@gnu.org; Fri, 16 Apr 2004 09:50:31 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BETia-0002bJ-Qw for emacs-devel@gnu.org; Fri, 16 Apr 2004 09:49:20 -0400 Original-Received: from fencepost.gnu.org ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.24) id 1BEThu-0005la-0v; Fri, 16 Apr 2004 09:48:38 -0400 Original-To: Stefan Monnier In-Reply-To: <87zn9cm4ja.fsf-monnier+emacs@gnu.org> Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21764 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21764 Stefan Monnier 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