Hi all, I'm new into the list. Please be patient if my questions are not soo deep or have been discussed previously (I'm mainly a "it.wikisourcian").
1. As I see, .png images from <math> tag have a white background. This is disturbing if such images are posted into a coloured background page. Should it be possible to replace the white background with a transparent background? 2. I know that <math> tag manages css style, so that it's easy to redim/align the resulring .png image (a very useful trick for inline, simple formulas). Nevertheless, the default font is ruined by a redim, since its light graphic with subtle tracts. Is there a trick so solve this issue?
Thanks!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
On 2/19/2010 4:42 AM, Alex Brollo wrote:
Hi all, I'm new into the list. Please be patient if my questions are not soo deep or have been discussed previously (I'm mainly a "it.wikisourcian").
- As I see, .png images from <math> tag have a white background. This is
disturbing if such images are posted into a coloured background page. Should it be possible to replace the white background with a transparent background?
See bug 8[1], should make it into 1.16
1 - https://bugzilla.wikimedia.org/show_bug.cgi?id=8
2010/2/19 Q overlordq@gmail.com
On 2/19/2010 4:42 AM, Alex Brollo wrote:
Hi all, I'm new into the list. Please be patient if my questions are not
soo
deep or have been discussed previously (I'm mainly a "it.wikisourcian").
See bug 8[1], should make it into 1.16
Found, thanks. Alex
On Fri, Feb 19, 2010 at 5:42 AM, Alex Brollo alex.brollo@gmail.com wrote:
- As I see, .png images from <math> tag have a white background. This is
disturbing if such images are posted into a coloured background page. Should it be possible to replace the white background with a transparent background?
This is fixed in trunk with $wgTexvcBackgroundColor. It now defaults to 'transparent', i.e., binary transparency. It will still look a little blurry. If you don't care about IE6 users, you can make it 'Transparent' instead to use alpha transparency.
- I know that <math> tag manages css style, so that it's easy to
redim/align the resulring .png image (a very useful trick for inline, simple formulas). Nevertheless, the default font is ruined by a redim, since its light graphic with subtle tracts. Is there a trick so solve this issue?
I don't understand what you're asking.
2010/2/19 Aryeh Gregor <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com
- I know that <math> tag manages css style, so that it's easy to
redim/align the resulring .png image (a very useful trick for inline,
simple
formulas). Nevertheless, the default font is ruined by a redim, since its light graphic with subtle tracts. Is there a trick so solve this issue?
I don't understand what you're asking.
Sorry for my English. I can't post here images, so I can't let you see what I mean. Nevertheless, try <math>\sqrt 2</math> then <math style="height:1em">\sqrt 2</math>. Well... now, testing the code, I see a good image: don't matter, I presume it was only a monitor trouble. Thanks for attention.
On Fri, Feb 19, 2010 at 2:19 PM, Alex Brollo alex.brollo@gmail.com wrote:
I can't post here images, so I can't let you see what I mean. Nevertheless, try <math>\sqrt 2</math> then <math style="height:1em">\sqrt 2</math>.
If you use CSS to resize an image, you're relying on the browser's resizing algorithms. In many cases these trade off quality very heavily against performance, so they look awful. This isn't within MediaWiki's control as long as we're serving images. You can use sizing commands inside LaTeX, of course, like <math>{\scriptstyle \sqrt 2}</math>.
wikitech-l@lists.wikimedia.org