Stuart,

thanks for your answer. Please find the patch below. It should apply against the current trunk.

Bye,
Michel


diff -r 4d7c8779a6b4 filters/latex/latex2png.py
--- a/filters/latex/latex2png.py        Thu Aug 11 11:57:29 2011 +1200
+++ b/filters/latex/latex2png.py        Thu Aug 11 06:54:00 2011 +0200
@@ -142,7 +142,7 @@
         cmd = 'dvipng'
         if dpi:
             cmd += ' -D %s' % dpi
-        cmd += ' -T tight -x 1000 -z 9 -bg Transparent -o "%s" "%s"' \
+ cmd += ' -T tight -x 1000 -z 9 -bg Transparent --truecolor -o "%s" "%s ' \
                % (outfile,dvifile)
         run(cmd)
     finally:



Am 08.08.2011 08:20, schrieb Stuart Rackham:


On 16/07/11 21:26, Michel Krämer wrote:
Hi!

I recently used the LaTeX filter to embed math formulae into my PDF
output. I'm using the DocBook->FOP chain which works quite well.
However, I was wondering why the LaTeX filter does not use the --
truecolor option of dvipng. FOP 1.0 does not support greyscale images
and apart from that true color images include half transparent pixels
which seem to make the output smoother and more eye pleasing.

What do you think about that? Is there any reason for using --
truecolor?

No reason I know of, put it down to my ignorance, if you have a patch
for filters/latex/latex2png.py please submit it.

Cheers, Stuart



Thanks,
Michel



--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to