blahtexml icon indicating copy to clipboard operation
blahtexml copied to clipboard

Add More Colors

Open cortner opened this issue 6 years ago • 4 comments

I learned on Stack Exchange that Keynote is using Blahtex to render Latex. I try to match colors in my latex equations with keynote colors, but this is proving impossible at the moment. Would it be possible to add more colors therefore - in particular some darker blues?

Maybe more ambitiously, could the keynote standard colors be matched exactly?

cortner avatar Apr 30 '19 19:04 cortner

Sorry for the (very) late answer, but yes, why not. The named colors are defined in the gColourArray array at the beginning of ParseTree3.cpp. Can you add the colors you want there and make a pull request?

gvanas avatar May 18 '20 16:05 gvanas

thanks - happy to do so if/when I find the time.

Do you know how often Keynote pulls in updates to Blahtex?

cortner avatar May 25 '20 20:05 cortner

thanks - happy to do so if/when I find the time.

Cool! Matching colors with Keynote sounds like a useful idea.

Do you know how often Keynote pulls in updates to Blahtex?

No, sorry, I do not know. I would suggest to inform the Keynote developers somehow, as they otherwise probably do not expect frequent updates to blahtex…

gvanas avatar May 25 '20 21:05 gvanas

Apple has added an extension to blahTeX, so you could specify a color with his hexadecimal code. On bottom of https://support.apple.com/en-us/HT202501, at the "Sample equations" section, you could see the exemple \sum_{\color{0A7C10}n=0}^{\color{red}\infty} a_n x^n, in which the bottom text "n=0" of the sum symbol is displayed with a custom green.

quark67 avatar Nov 14 '21 00:11 quark67