Sunday, July 29, 2007

UTMK Open Day + Didier's Farewell Party

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:



All pics were taken by either Hussein or Kak Azimah, which are also on my Picasa Web Album:
UTMK Open Day + Didier's Farewell Party




Come back again soon and often if you can, Didier!

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 Sundar wrote:
> 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!!