From mboxrd@z Thu Jan 1 00:00:00 1970 From: "briangpowell ." Subject: Re: Mathjax vs. problems with imagemagick Date: Sun, 6 Jul 2014 04:39:28 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11348774f1587304fd824be8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3hys-0006EM-U9 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:39:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3hyr-0003uS-K9 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:39:30 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:47987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3hyr-0003uJ-D8 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:39:29 -0400 Received: by mail-ob0-f172.google.com with SMTP id uy5so3325600obc.31 for ; Sun, 06 Jul 2014 01:39:28 -0700 (PDT) In-Reply-To: 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: Joseph Vidal-Rosset Cc: "Liste-emacs-orgmode@gnu.org" --001a11348774f1587304fd824be8 Content-Type: text/plain; charset=UTF-8 * PNG is "lossless" format--if you can, make it the first file you create rather than last. ** If you create a JPG a "lossy" format then you could lose some of the beauty (like your example). * ImageMagick has many switches you can throw--suggest you look deeper into it in the freely available manual--though its very thick. * Often there are blah2blah programs (and many methods in ImageMagick for example) available which may help that you may be able to string together. General example: dvips -o blah.dvi ps2pdf blah.ps pdf2png blah.pdf ** Maybe you can convert your file to an intermediary format and then convert it to .png *** But again, if possible, create a PNG (.png) type file firstly since it is a "lossless" file type. On Sun, Jul 6, 2014 at 4:03 AM, Joseph Vidal-Rosset < joseph.vidal.rosset@gmail.com> wrote: > Hello everybody, > > To convert equations from *.org into *.html, Mathjax is certainly the > best solution but unfortunately, this solution does not work as soons as > one need to use some texlive package convenient to produce easily proofs in > specific format > (for example if one uses bussproofs.sty of fitch.sty ). > > That is why imagemagick is useful. Unfortunately, the produced png images > in my ltxpng/ have a very bad quality and if the browser load them, the > result is terrible. > I met already this problem and I do not remind what was the solution... > > I you have suggestions... > > Best wishes, > > Jo. > > PS: in attachment, an example of this terrible png images. > --001a11348774f1587304fd824be8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
* PNG is "lossless" format--if you can, make it = the first file you create rather than last.

** If you cr= eate a JPG a "lossy" format then you could lose some of the beaut= y (like your example).

* ImageMagick has many switches you can throw--suggest = you look deeper into it in the freely available manual--though its very thi= ck.

* Often there are blah2blah programs (and many= methods in ImageMagick for example) available which may help that you may = be able to string together. =C2=A0General example:

dvips -o=C2=A0blah.dvi

ps2= pdf=C2=A0blah.ps

pdf2png blah.pdf

** Maybe you can convert your f= ile to an intermediary format and then convert it to .png

*** But again, if possible, create a PNG (.png) type fi= le firstly since it is a "lossless" file type.





On Sun, Jul 6, 2014 at 4:03 AM, Joseph Vidal= -Rosset <joseph.vidal.rosset@gmail.com> wrote:
Hello everybody,
To convert equations from *.org=C2=A0 into *.html, Mathjax is certai= nly the best solution but unfortunately, this solution does not work as soo= ns as one need to use some texlive package convenient to produce easily pro= ofs in specific format
(for example if one uses bussproofs.sty of fitch.sty ).

That is why imagemagick is useful. Unfortunately, the produced png images = in my ltxpng/ have a very bad quality and if the browser load them, the res= ult is terrible.
I met already this problem and I do not remind what was the solution.= ..

I you have suggestions...

Best wishes,
Jo.

PS: in attachment, an example of this terrible png image= s.

--001a11348774f1587304fd824be8--