From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35409 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:47:10 -0300 Message-ID: <22af238a0707121347r715bf928m893ed07474c38d04@mail.gmail.com> References: <52842.62.251.0.62.1184268512.squirrel@webmail.hccnet.nl> <20070712222316.6ee413f6@muj_linux> 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 1184273248 5966 80.91.229.12 (12 Jul 2007 20:47:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 20:47:28 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 12 22:47: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 1I95ZO-0007VR-5j for gctc-ntg-context-518@m.gmane.org; Thu, 12 Jul 2007 22:47:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 896BF20304; Thu, 12 Jul 2007 22:47:25 +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 02271-03-9; Thu, 12 Jul 2007 22:47:18 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 07F14200DD; Thu, 12 Jul 2007 22:47:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A4830200DD for ; Thu, 12 Jul 2007 22:47:16 +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 02271-03-8 for ; Thu, 12 Jul 2007 22:47:12 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by ronja.ntg.nl (Postfix) with ESMTP id E9E571FAC5 for ; Thu, 12 Jul 2007 22:47:11 +0200 (CEST) Original-Received: by wa-out-1112.google.com with SMTP id m16so347114waf for ; Thu, 12 Jul 2007 13:47:10 -0700 (PDT) Original-Received: by 10.115.78.1 with SMTP id f1mr973426wal.1184273230474; Thu, 12 Jul 2007 13:47:10 -0700 (PDT) Original-Received: by 10.114.14.16 with HTTP; Thu, 12 Jul 2007 13:47:10 -0700 (PDT) In-Reply-To: <20070712222316.6ee413f6@muj_linux> 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:35409 Archived-At: On 7/12/07, zs wrote: > Try this: > > gs -sDEVICE=png16m -r200 -sOutputFile=formula.png -dBATCH -q -dNOPAUSE > -dGraphicsAlphaBits=4 -dTextAlphaBits=4\ -dMaxBitmap=50000000 > formula.pdf > > You may play with -r parameter. > You can also make a big picture and downsize it with proper > interpolation. These incantations come from ghostscript's "Use.htm" document.. If you don't need color, you can try "-sDEVICE=pnggray". Note that this uses anti-aliasing, which looks better on a screen but may cause problems on typical laserprinters (some may refuse to print, others will try to render the grays by dithering). > On Thu, 12 Jul 2007 21:28:32 +0200 (CEST) > 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. > > > > 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 > > > > TIA > > Wim > > > > > > > > > > > > ___________________________________________________________________________________ > > 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 > > ___________________________________________________________________________________ > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > -- 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 ___________________________________________________________________________________