From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35408 Path: news.gmane.org!not-for-mail From: "George N. White III" Newsgroups: gmane.comp.tex.context Subject: Re: PNG output Date: Thu, 12 Jul 2007 17:19:00 -0300 Message-ID: <22af238a0707121319o50013cc6i550fd4de3e301890@mail.gmail.com> References: <52842.62.251.0.62.1184268512.squirrel@webmail.hccnet.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184271569 32270 80.91.229.12 (12 Jul 2007 20:19:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 20:19:29 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 12 22:19:27 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1I958I-0005Ka-Hp for gctc-ntg-context-518@m.gmane.org; Thu, 12 Jul 2007 22:19:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 984DC2030D; Thu, 12 Jul 2007 22:19:24 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32665-04-8; Thu, 12 Jul 2007 22:19:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EED7202F1; Thu, 12 Jul 2007 22:19:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D3797202F1 for ; Thu, 12 Jul 2007 22:19:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32665-04-7 for ; Thu, 12 Jul 2007 22:19:03 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.176]) by ronja.ntg.nl (Postfix) with ESMTP id 8FA6C202A8 for ; Thu, 12 Jul 2007 22:19:02 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id m16so335211waf for ; Thu, 12 Jul 2007 13:19:00 -0700 (PDT) Original-Received: by 10.115.93.16 with SMTP id v16mr921241wal.1184271540427; Thu, 12 Jul 2007 13:19:00 -0700 (PDT) Original-Received: by 10.114.14.16 with HTTP; Thu, 12 Jul 2007 13:19:00 -0700 (PDT) In-Reply-To: <52842.62.251.0.62.1184268512.squirrel@webmail.hccnet.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:35408 Archived-At: On 7/12/07, w.neimeijer@hccnet.nl wrote: > I want to convert my standalone formulas to PNG to display these formulas > on my website. > > What I am doing is the following > > \starttext > \startTEXpage > \startformula > e^{i x} = \cos x + i \sin x > \stopformula > \stopTEXpage > \stoptext > > and process this via texexec --pdf to get a PDF file. > I tried to convert the resulting PDF file via gswin32c to png > but the resulting PNG output is not so good. Are you using the current version of gs? There have been changes to the font rendering over the years, so you want to try a current version. A quick way to get a second opinion is to install the emacs+auctex bundle for Win32 to see how you like the preview images. What does "not so good" mean -- there are lots of parameters to adjust anti-aliasing, color models, and resolution with gs, but I'm not sure about things like gamma. ImageMagick's convert may provide an easier interface. If you are using pk fonts you may encounter problems if the fonts resolution isn't "compatible" with the output resolution. > Then I read dvipng could do the job, which means I have to produce dvi > output via texexec --dvi but than I get complaints from dvips that it > cannot find the file tex.pro for the specials. However a png file is > produced. > > Help appreciated In the long run, using pdf has the advantage that the tools are supported by a much wider community than the small set of people who have heard of .dvi format. The number of people who would be affected by a problem in gs rendering is orders of magnitude larger than the number who would notice a problem with dvipng. The latter group can always switch to pdf and gs, while the former group doesn't have viable alternatives. As a result, assuming the problem is not related to TeX-specific font formats, it is very likely that gs can do what you need today and that future version on future platforms will also "work". If you are still having problems, provide a minimal example (.tex source and .png image) along with the software versions so others can try to reproduce the problem. -- George N. White III Head of St. Margarets Bay, Nova Scotia ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________