Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

latex output to transparent bitmap graphics

169 views
Skip to first unread message

pretentious_indifference

unread,
Nov 19, 2009, 9:48:23 PM11/19/09
to
I was working on a MS Power Point presentation with a non-white background
and realised that it becomes somewhat problematic to add equations etc made
in Latex. That's because my (probably naive) workflow involves printing to
printscreen and then cropping and pasting things to Power Point. Hence the
resulting non-transparent bitmap graphics.

Now, I found something rather neat and time saving, Iguana Tex, which is
a plug in to MS Powerpoint. You just type in the latex code directly in the
ppt file object and it generates pretty nicely looking graphics right in
the ppt file. No need for cropping etc.

My problem with it is that it's not really portable and I have other people
working on Macs colloborating on the same project.

I would be greatful for any advice regarding production of transparent equations
(etc). What's your personal strategy for this?

Cheers :)


Uwe Ziegenhagen

unread,
Nov 20, 2009, 1:59:08 AM11/20/09
to
pretentious_indifference schrieb:

Why don't you skip the Powerpoint part and do everything with LaTeX?

Uwe

Kjell Magne Fauske

unread,
Nov 20, 2009, 2:54:45 AM11/20/09
to
On Nov 20, 3:48 am, pretentious_indifference <smart.spo...@gmail.com>
wrote:

Take a look at Jan-Åke Larsson's dvipng tool[1] (bundled with MikTeX).
Dvipng can create pngs of your equations with a transparent
background. I recommend using it together with preview.sty[2].

For use with Powerpoint I recommend using the '-bg Transparent' option
[3]. This will give you pngs with full-alpha transparency that will
blend nicely with any background.

- Kjell Magne Fauske

[1] http://savannah.nongnu.org/projects/dvipng/
[2] http://www.ctan.org/tex-archive/help/Catalogue/entries/preview.html
[3] http://www.nongnu.org/dvipng/dvipng_4.html#SEC9

Peter

unread,
Nov 21, 2009, 1:38:58 PM11/21/09
to
On Nov 19, 6:48 pm, pretentious_indifference <smart.spo...@gmail.com>
wrote:

You should also look at TeXPoint. I've used it for years with very
good results. Displayed and inline math can both be saved in the
document so that others who do not have TeXPoint installed can open
the document and see the math (although they can not edit it). I am
using an older, free version for use with Office 2003. The latest
version is not free, though the cost is modest. It also works with
Word.
http://texpoint.necula.org/index.html

--Peter

Victor Ivrii

unread,
Nov 22, 2009, 8:08:42 AM11/22/09
to
On Nov 19, 9:48 pm, pretentious_indifference <smart.spo...@gmail.com>
wrote:

> I was working on a MS Power Point presentation with a non-white background
> and realised that it becomes somewhat problematic to add equations etc made
> in Latex. That's because my (probably naive) workflow involves printing to
> printscreen and then cropping and pasting things to Power Point. Hence the
> resulting non-transparent bitmap graphics.
>

Unless specified LaTeX creates pdf files with transparent background
and if you drag and drop pdf snippets to Apple Keynote their
background is recognized as such. The same would be true if you
included your pdf file as graphics in tex through \includegraphics{}.
To make pdf file with white background one should put in preamble
\usepackage{xcolor}\pagecolor{white}

It is Micro$oft way to interpret transparent as a white! And one can
see a lot of Power(less)point presentations with equations surrounded
by white boxes and if there are plenty of them usually it is an
abomination

I was told that in the latest versions of pp one can click here and
there and in that place too to get an option to paste transparent
background as transparent but it is not a default and the exact
procedure is a sacred knowledge I am not admitted to

pretentious_indifference

unread,
Dec 1, 2009, 7:53:51 PM12/1/09
to
Hello Victor,

> Unless specified LaTeX creates pdf files with transparent background
> and if you drag and drop pdf snippets to Apple Keynote their
> background is recognized as such. The same would be true if you
> included your pdf file as graphics in tex through \includegraphics{}.
> To make pdf file with white background one should put in preamble
> \usepackage{xcolor}\pagecolor{white}

Ok, I appreciate this.

But apart from a pdf is there any way to create a lossless transparent bitmap
from a Latex project using some built in or 3rd party utility?

Perhaps, I'm not really asking the right question as I lack any experience
in this and i'm just brainstorming. Something along the lines of outputting
formulae to eps graphics from a latex program might do as well as PP can
handle transparencies with eps files. but even if this one is possible (???)
one will perhaps still need to crop eps graphics very tightly. How would
you do this?

Any comments re the workflow will be greatly appreciated.

Cheers :)


0 new messages