From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Felix E. Klee" Newsgroups: gmane.emacs.help Subject: Re: LaTeX-Fill-Paragraph and inline images Date: Sun, 23 Feb 2003 21:20:25 +0100 Organization: (Posted via) INKA e.V. http://www.inka.de/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <843cmxjvr7.fsf@lucy.is.informatik.uni-duisburg.de> <5lfzqhqjkt.fsf@rum.cs.yale.edu> <5l8yw8qbpi.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1046031635 19891 80.91.224.249 (23 Feb 2003 20:20:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Feb 2003 20:20:35 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18n2bv-0005AS-00 for ; Sun, 23 Feb 2003 21:20:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18n2bv-0007sG-00 for gnu-help-gnu-emacs@m.gmane.org; Sun, 23 Feb 2003 15:20:31 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!feed.news.nacamar.de!news.belwue.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!inka.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: puric.inka.de Original-X-Trace: sapa.inka.de 1046031544 15249 193.197.184.17 (23 Feb 2003 20:19:04 GMT) Original-X-Complaints-To: abuse@inka.de Original-NNTP-Posting-Date: 23 Feb 2003 20:19:04 GMT User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:110545 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7047 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7047 Stefan Monnier wrote: >> Could you please repost your message? > > Here are the messages I still have on my server: > They're not in gmane either, so maybe they never left my newsserver > :-( Has anybody else seen them ? The second one is available on my newsserver, the first one is not. >>>> Therefore, I'm looking for a LaTeX-Fill-Paragraph replacement that >>>> breaks lines correctly when inline images are used. Instead of >>>> specifying a fill column the user would specify the desired width >>>> of paragraphs in pixels or centimeters. This might also be >>>> interesting when using variable width fonts instead of fixed width >>>> fonts. > > That would be neat, but nobody has written the code to do it yet. > I don't think it can be done in elisp right now, so we first need > some C code (exported to elisp) so that you can determine pixel > positioning. Well, getting the width of a character can probably easily be done (on X11 based systems) by accessing the XFontStruct structure with a small C module. More powerful, though, would be something like compute-motion that works with pixels instead of lines and columns. > I know someone has started work on it, but help is still welcome, Maybe I'll try out that XFontStruct thing just for fun, but probably not too soon. Felix -- To contact me in private don't reply but send email to felix DOT klee AT inka DOT de