From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35407 Path: news.gmane.org!not-for-mail From: zs Newsgroups: gmane.comp.tex.context Subject: Re: PNG output Date: Thu, 12 Jul 2007 22:23:16 +0200 Message-ID: <20070712222316.6ee413f6@muj_linux> 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 1184271464 31950 80.91.229.12 (12 Jul 2007 20:17:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 12 Jul 2007 20:17:44 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jul 12 22:17:41 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 1I956a-0004fd-Tf for gctc-ntg-context-518@m.gmane.org; Thu, 12 Jul 2007 22:17:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4396F202E7; Thu, 12 Jul 2007 22:17:38 +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-4; Thu, 12 Jul 2007 22:17:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8CA932028D; Thu, 12 Jul 2007 22:17:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 83AE32028D for ; Thu, 12 Jul 2007 22:17: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 32665-04-3 for ; Thu, 12 Jul 2007 22:17:19 +0200 (CEST) Original-Received: from av1.karneval.cz (mx0.karneval.cz [81.27.192.123]) by ronja.ntg.nl (Postfix) with ESMTP id B740F20254 for ; Thu, 12 Jul 2007 22:17:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by av1.karneval.cz (Postfix) with ESMTP id 8B21256E88A for ; Thu, 12 Jul 2007 22:17:17 +0200 (CEST) Original-Received: from av1.karneval.cz ([127.0.0.1]) by localhost (av1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32621-09 for ; Thu, 12 Jul 2007 22:17:16 +0200 (CEST) Original-Received: from mail.karneval.cz (cz-prg09a-mail01.karneval.cz [81.27.192.53]) by av1.karneval.cz (Postfix) with ESMTP id B58C356E2A3 for ; Thu, 12 Jul 2007 22:16:56 +0200 (CEST) Original-Received: from muj_linux (ip-89-102-74-46.karneval.cz [89.102.74.46]) by mail.karneval.cz (Postfix) with ESMTP id 8A663A38BF9 for ; Thu, 12 Jul 2007 22:16:56 +0200 (CEST) In-Reply-To: <52842.62.251.0.62.1184268512.squirrel@webmail.hccnet.nl> X-Mailer: Claws Mail 2.9.2 (GTK+ 2.10.11; i686-pc-linux-gnu) X-Virus-Scanned: by karneval.cz 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:35407 Archived-At: 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. ZS 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 ___________________________________________________________________________________