From: "George N. White III" <gnwiii@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: PNG output
Date: Thu, 12 Jul 2007 17:47:10 -0300 [thread overview]
Message-ID: <22af238a0707121347r715bf928m893ed07474c38d04@mail.gmail.com> (raw)
In-Reply-To: <20070712222316.6ee413f6@muj_linux>
On 7/12/07, zs <stryhal@sci.ujep.cz> 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 <aa056@chebucto.ns.ca>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2007-07-12 20:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-12 19:28 w.neimeijer
2007-07-12 20:19 ` George N. White III
2007-07-12 20:23 ` zs
2007-07-12 20:47 ` George N. White III [this message]
2007-07-12 20:23 ` luigi scarso
2007-07-13 3:12 ` Aditya Mahajan
2007-07-12 21:57 w.neimeijer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22af238a0707121347r715bf928m893ed07474c38d04@mail.gmail.com \
--to=gnwiii@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).