all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Felix E. Klee" <felix.klee@inka.de>
Subject: Re: LaTeX-Fill-Paragraph and inline images
Date: Fri, 21 Feb 2003 16:02:19 +0100	[thread overview]
Message-ID: <b35f1r$la8$1@sapa.inka.de> (raw)
In-Reply-To: x5n0l327o0.fsf@lola.goethe.zz

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.

  reply	other threads:[~2003-02-21 15:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 15:43 LaTeX-Fill-Paragraph and inline images Felix E. Klee
2003-02-09 15:53 ` Kai Großjohann
2003-02-09 16:23   ` Felix E. Klee
2003-02-09 16:37     ` David Kastrup
2003-02-09 17:44       ` Felix E. Klee
2003-02-10 20:38         ` David Kastrup
2003-02-21 15:02           ` Felix E. Klee [this message]
2003-02-21 15:50             ` David Kastrup
2003-02-21 23:02               ` Felix E. Klee
2003-02-21 23:18                 ` David Kastrup
2003-02-21 23:35                   ` Glenn Morris
2003-02-21 23:50                 ` Stefan Monnier <foo@acm.com>
2003-02-22  9:44                   ` Felix E. Klee
2003-02-22 20:53                     ` Stefan Monnier
2003-02-22 21:07                       ` Kai Großjohann
2003-02-23 20:20                       ` Felix E. Klee
2003-02-27  9:15                         ` Gernot Hassenpflug
2003-02-27 11:58                           ` Felix E. Klee
2003-02-27 13:27                             ` David Kastrup
2003-02-21 16:01             ` Stefan Monnier <foo@acm.com>

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='b35f1r$la8$1@sapa.inka.de' \
    --to=felix.klee@inka.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.