From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: Mathjax vs. problems with imagemagick Date: Sun, 6 Jul 2014 10:59:04 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf307f30f64249cd04fd829387 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3iIB-00010V-10 for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:59:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3iI9-0001yb-Qc for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:59:26 -0400 Received: from mail-ve0-x229.google.com ([2607:f8b0:400c:c01::229]:33387) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3iI9-0001yX-LH for emacs-orgmode@gnu.org; Sun, 06 Jul 2014 04:59:25 -0400 Received: by mail-ve0-f169.google.com with SMTP id pa12so3024246veb.28 for ; Sun, 06 Jul 2014 01:59:25 -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: "briangpowell ." Cc: "Liste-emacs-orgmode@gnu.org" --20cf307f30f64249cd04fd829387 Content-Type: text/plain; charset=UTF-8 Thanks for your reply. Do you mean that #+OPTIONS: tex:imagemagick must be mentioned first? In my opinion something is wrong in my setup and it is difficult for me to see what's wrong. Even a minima-init.el file is not helpful... Best wishes, Jo. 2014-07-06 10:39 GMT+02:00 briangpowell . : > * 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. >> > > --20cf307f30f64249cd04fd829387 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks for your reply.
Do you mea= n that=C2=A0 #+OPTIONS: tex:imagemagick=C2=A0 must be mentioned first?
=
In my opinion something is wrong in my setup and it is difficult for = me to see what's wrong. Even a minima-init.el=C2=A0 file is not helpful= ...

Best wishes,

Jo.

=
2014-07-06 10:39 GMT+02:00 briangpowell . <briangpowellms@gmail.com>:
* PNG is "lossless&quo= t; format--if you can, make it the first file you create rather than last.<= div>
** If you create a JPG a "lossy" format then you c= ould 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 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 file 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.


--20cf307f30f64249cd04fd829387--