From mboxrd@z Thu Jan 1 00:00:00 1970 From: feng shu Subject: Please Comment: a potential Innovation about proviewing latex fragement with imagemagick Date: Tue, 16 Jul 2013 18:18:12 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d044402685cc4ff04e19e4bae Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz2Kl-0000dC-7y for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 06:18:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz2Kk-000801-1A for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 06:18:15 -0400 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:35884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz2Kj-0007zn-Qq for emacs-orgmode@gnu.org; Tue, 16 Jul 2013 06:18:13 -0400 Received: by mail-wg0-f49.google.com with SMTP id a12so437802wgh.16 for ; Tue, 16 Jul 2013 03:18:12 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "emacs-orgmode@gnu.org" --f46d044402685cc4ff04e19e4bae Content-Type: text/plain; charset=UTF-8 * Approach of previewing latex fragement with imagemagick is like this: ** The original: 1. (emacs buffer font height) -> (evalue a density value) --> (imagemagick destiny option) 2. (latex fragement) --> (tmp latex file) -> (pdf) -> (png) ( convert with above destiny option) ** Advantages 1. It works well at the moment. ** disadvantages 2. we get the formula about (font height -> density value) by test and test and test... ** A pontential approach: 1. (emacs buffer font height) -> (latex macros; \fontsize{font-size}{fontsize*1.2}) -> (insert tmp latex file )-> pdf -> png( convert with fixed density, for example: 96) ** Advantages 1. More intuition 2. This approach may be used the feature "p-with-dvipng", by using this approach, Maybe we can code a common function shared with imagemagick ang dvipng. ** disadvantages 1. depend latex command \fontsize. Any comment? Feng Shu --f46d044402685cc4ff04e19e4bae Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* Approach of prev= iewing latex fragement=C2=A0 with imagemagick is like this:**=C2=A0 The original:
=C2=A0
1. (emacs buffer font height) -> (evalue a = density value) --> (imagemagick destiny option)=C2=A0
=
2. (latex fragement) --> (tmp latex file) -= > (pdf) -> (png) ( convert with above destiny option)

** Advantages
<= /div>
1= . It works well at the moment.
** disadvantages

2. we get the formula about (f= ont height -> density value) by test and test and test...
=

** A pontential approach:
1. (emacs buffer font height) -> (latex macros; \fontsize{font-size= }{fontsize*1.2}) -> (insert tmp latex file )-> pdf -> png( convert= with fixed density, for example: 96)
=C2=A0
** Advantages
1. More intuition
= 2. This approach may be used=C2=A0 the feature "p-wit= h-dvipng", by using this approach,
= =C2=A0=C2=A0=C2=A0 Maybe we can code a common function sha= red with imagemagick ang dvipng.
=
** disadvantages
1. depend latex command \fontsize.


<= span lang=3D"en">Any comment?


Feng Shu
--f46d044402685cc4ff04e19e4bae--