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: Fri, 21 Feb 2003 16:02:19 +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> 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 1045840090 14602 80.91.224.249 (21 Feb 2003 15:08:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Feb 2003 15:08:10 +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 18mEmO-0003lr-00 for ; Fri, 21 Feb 2003 16:08:00 +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 18mEk6-0001gM-00 for gnu-help-gnu-emacs@m.gmane.org; Fri, 21 Feb 2003 10:05:38 -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: 47 Original-NNTP-Posting-Host: puric.inka.de Original-X-Trace: sapa.inka.de 1045839739 21832 193.197.184.17 (21 Feb 2003 15:02:19 GMT) Original-X-Complaints-To: abuse@inka.de Original-NNTP-Posting-Date: 21 Feb 2003 15:02:19 GMT User-Agent: KNode/0.7.1 Original-Xref: shelby.stanford.edu gnu.emacs.help:110478 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:6980 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6980 David Kastrup wrote: >> The algorithm should not format the source of the entities. It should >> only format what is visible to the user after he has applied >> preview-latex. > > Why? The purpose of AUCTeX's formatting is not to make the source > ugly when one does not use preview-latex. One wants to have a > reasonable look of the source also in that case. The problem is that code which is formatted to look pretty in source form doesn't neccessarily look pretty when displayed with preview-latex (e.g. the images created by preview-latex often are much smaller than the corresponding source). What I want is a tool that formats only for on screen viewing. Maybe it could even preserve the original format as e.g. the longlines mode does. >> It would be interesting to try out the algorithm on plain text documents >> that are displayed with a variable width font. Do you know how to get >> the width in pixels of an "entity". > > char-width, Not applicable since it returns the width of a char measured in columns, not in pixels. > string-width, Has the same problem as char-width. > and more complicated commands (like compute-motion) come to mind. Also seems to use columns for measuring distances. > Probably quite different with XEmacs, though. I don't use XEmacs. > Take a look at the respective sections in the Emacs Lisp manual. Unfortunately, I couldn't find a command that returns the width in pixels of a certain character in the default font. But maybe I can get that information via an external tool. Any ideas? Felix PS: Sorry for answering so late. I have overlooked your message.