Goooood I'm still feeling dead tired after our mini-expo and Didier's farewell party on Thursday...
I don't think I can write anything about it yet, too physically/emotionally draining, so hop along to Hussein's take on it, or take a look at the photo slideshow:
研究生们总在某个阶段脑筋就会有点不正常。Because all research students are insane at one time or another.
Sunday, July 29, 2007
Wednesday, July 4, 2007
Generating JPGs and PNGs from Tikz/PGF
Gem of a post found at Nabble.com:
Re: Generating PNG or JPG ?
by Kjell Magne Fauske Mar 23, 2007; 02:47am
On 3/22/07, Hari Sundarwrote:
> Hi,
>
> Is it possible to generate images from tikz code ? I would like to put these
> images on a webpage and was wondering if there is an automatic way of
> generating the images rather than taking screenshots.
>
Sure, I do it every time I update the gallery I maintain at
http://www.fauskes.net/pgftikzexamples/
My approach is to use Ghostscript. Lets say I have a tex file named
figure.tex The work flow is approximately like this:
> pdflatex figure.tex
I then run ghostscript on the generated file figure.pdf to generate a PNG:
> gs -dNOPAUSE -r400 -dGraphicsAlphaBits=4 -dTextAlphaBits=4 -sDEVICE=png16m -sOutputFile=figure.png -dBATCH figure.pdf
(On Windows the command is gswin32c. )
>From the resulting PNG file I generate a jpg thumbnail.
To crop the figures I use a package called preview[1]. The package
provides several ways of previewing parts of your document. For
example, adding this to your document preamble:
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
will extract every tikzpicture environment. If you use pdflatex, every
tikzpicture will be put on a separate page in the resulting pdf
document. To add a margin around the figure add:
\setlength\PreviewBorder{10pt}%
[1] http://www.ctan.org/tex-archive/help/Catalogue/entries/preview.html
Regards,
Kjell Magne Fauske
Monday, July 2, 2007
People are downloading my stuff!
OMIGOSH, people are actually starting to download my LaTeX scribblings! *tears of joy*
That people wanted the workshop slides are expected; anyway the colloquium committee put up a copy at their website too. Surprisingly the LaTeX installation walkthrough for Windows is the most sought-after file now! And the Absolute Beginner short guide! And the USMthesis style files!!
w00t!!
That people wanted the workshop slides are expected; anyway the colloquium committee put up a copy at their website too. Surprisingly the LaTeX installation walkthrough for Windows is the most sought-after file now! And the Absolute Beginner short guide! And the USMthesis style files!!
w00t!!
Subscribe to:
Posts (Atom)