I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Products » LaTeX Equation Editor »

Custom background

adrifiz\′s Photo
17 Jun 09, 3:05PM
(2 replies)
Custom background
I'm trying to use a custom color for background. I have seen there are only 5 colors, everyone too much strong.

I guess a code like this: gif.latex?\bg_ffcc00 to make possible using custom colors.

I integrated it in my fckeditor, but my website background is a light grey so the image rendered with transparent background have white pixels at equation 'borders'. It would be a fine tuning but very beautiful.

Thanks for all your work!
CodeCogs\′s Photo
18 Jun 09, 8:08AM
Thank you for the good suggestion.

For the time being, we won't change this because we're planning a major upgrade to the equation rendering engine that will speed up the service. At that point it would be logical to include this feature.

In the mean time if you let me know the exact background color your want, we can add a new color default, perhaps a 'lightgrey'

Will
will\′s Photo
25 Jun 09, 9:04AM
Done.

Through the url, since you can't do this by default through the editor yet, just add to the following to the start of the equation: " \bg_######"

where each # is hex value from 0 to F.

This follows RGB standard, so first two ## are Red, next two ## are Green, following by ## for Blue.

Example:
  • gif.latex?\bg_ff0000 \sin(x) - a red background
  • gif.latex?\bg_0000ff \sin(x) - a green background

Basically the implementation is as you suggested. Will in time do something similar for the foreground.
Currently you need to be logged in to leave a message.