I’ve installed Latex Syntax 1.0 Extension and I’m currently playing round with it. The only major issue right now is that I don’t seem to be able to change the rendering color of the latex output to be anything other than black. It’s an issue because I’ve set the xwiki theme to black through css. Could someone provide some guidance in changing the properties?
Currently without the colour change, I have something like this,
within the page.
However, once the page is exported to pdf its ok since the document background is white.
Another question that I have since you suggested with LaTeX Exporter is that even though its installed, I can’t seem to make it recognise with the docker image with blang/latex:ubuntu to export PDF(LaTeX).
So, does the CSS background style override your latex color? It looks like the page style is ID attr, whereas LaTex is class. Try to disable the CSS style for the page.
Well, it doesn’t override the default latex color per se. It’s just that because I’m using a dark background, the default black color makes it impossible to read. I’m using a dark background as its a theme for the wiki. You’ve just reminded me to use a ghetto way to make it white; since its an image, using filter:invert css property would make it white. But I think its better if there’s a way to have latex rendered in a different color in the web page.
Sorry, I was not being clear on the problem. It’s a ghetto method that I’ve done where I used the skin extension to make the wiki page dark using CSS. By default, xwiki uses background color that is white, so the latex rendering is not an issue as it is dark text over light background but thats not the case in my situation where its dark text over dark background.
And moreover, yes the use case is not the generated PDF. I’ll try to edit preamble and see if xcolor package works, however, I assume that would affect the pdf export as well?
Regarding with the docker, I’ve installed the default image, blang/latex:ubuntu, using docker engine but its recognised?
Well, for better readability, you can modify the font of the question in LaTeX, here I’ve tried different math fonts. And yes, you can see I change the background color of the Sandbox page.
Sorry, my bad. I just realised I was confused between Formula Macro extension and LaTeX Syntax extension. It only popped to me once I saw your notification on MathJAX and it solved my issue. The export side is alright, the exported LaTeX and PDF(LaTeX) is working alright. Should I close the post and have another post on Formula Macro regarding implementing colour to Formula Macro?