From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Change resolution of LaTeX formulas in HTML output? Date: Sat, 7 Aug 2010 08:04:39 +0200 Message-ID: <9712FA8D-4EE4-474D-A676-0EA0382EAB91@gmail.com> References: <303680.8000.qm@web65516.mail.ac4.yahoo.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=42141 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OhcWT-000602-Bq for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:04:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OhcWR-0001og-VU for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:04:45 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:44730) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OhcWR-0001oX-Pu for emacs-orgmode@gnu.org; Sat, 07 Aug 2010 02:04:43 -0400 Received: by eydd26 with SMTP id d26so3302245eyd.0 for ; Fri, 06 Aug 2010 23:04:42 -0700 (PDT) In-Reply-To: <303680.8000.qm@web65516.mail.ac4.yahoo.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: amscopub-mail@yahoo.com Cc: emacs-orgmode@gnu.org On Aug 6, 2010, at 5:17 PM, amscopub-mail@yahoo.com wrote: > Carsten, we are trying to increase the resolution of the images for > *print* (ppi or dpi) while keeping the image the size on the web > page. (As I wrote in the first email, I'm generating an HTML file > with LaTeX pngs and then converting that to a PDF.) Ah, I see now. Obviously I read only part of the discussion. Sorry. The problem is that both html-resolution and html-scale get translated into a pixel size. what we really would need is to make the picture big and the to scale it down in the browser by an html attribute. Maybe :html-scale is an unfortunate naming because it it sounds like it would be an html attribute for the included image. Did you follow the recent discussion about MathJax? I think this might be a better way to get good resolution math into an HTML page. If you want to print the result, why don't you go through LaTeX? - Carsten > > Unfortunately, the html-scale and scale options by themselves do > *not* get the job done. > > Anyhow, this has been done before in Twiki. Check out the "rendering > options" in this page: > > https://twiki.cern.ch/twiki/bin/view/TWiki/LatexModePlugin > > The way this plugin gets LaTeX pngs of 300 ppi (without an increase > in screen size) is by simultaneously increasing the resolution and > *decreasing* the html-scale. > > Just tried that approach with :html-scale .25 and :html-resolution > 300 but with *no* noticeable increase in quality. I think :html- > scale actually changes the size of the file. In the twiki plugin, > html-scale changes the size of the file *in the HTML* only. > > On Fri, 6 Aug 2010 12:46:28 +0200 > Carsten Dominik wrote: > >> >> On Aug 5, 2010, at 12:32 AM, Bastien wrote: >> >>> amscopub-mail@yahoo.com writes: >>> >>>> Is there a way to control the resolution of PNG LaTeX formulas when >>>> you export to HTML? >>> >>> I've implemented this. >> >> I would not think that we need this change, the :scale and :html- >> scale >> parameters do this for in-buffer display and html formatting, >> respectively. >> >> Please revert this change. >> >> - Carsten >> > > > -- > --Thanks! > Uriel > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten