Colours in LaTeX

  • Author
  • #341716

    I’m testing out using LaTeX code, and want my LaTeX code to uniformly be a different colour than the default.

    I’ve read the FAQ, in which it claims that the script “tries to figure out” the foreground/background colours to use — and after examining the HTML which is produced, it seems that the default is to use the same colours which happen to be used for the “entry-1” and “sticky” HTML classes. (The colours being used currently are bg=fcfaf4 and fg=77756b, which correspond uniquely to the settings in the CSS for those classes, and are a little too specific to be a likely coincidence.) However, customizing the CSS to change those colours doesn’t seem to have an effect.

    Experimenting further, changing the font colours of the “entry” and “post” classes, the “content” identifier, and the “body” tag also seems to have no effect on LaTeX equations.

    Is there any way that I can change the foreground colour of my LaTeX code, through an appropriate change of my CSS, or similar methods (i.e. without manually specifying the colour in every usage of LaTeX)?

    The blog I need help with is



    We can’t answer questions without a link to your blog, starting with http. We basically always need to see it.


    Sorry about that — I thought that the answer would be independent of my particular blog (although it is true that I’m gathering hints from the style sheet for my particular theme.) Here’s my blog URL:





    We need a link primarily to ensure you’re actually hosted at; fully a third of our questions come from people running independent installs of software, and thus our answers won’t apply.

    As for this, I don’t know the answer. I just know that we needed to confirm you were at before proceeding.


    Thanks raincoaster… anyone else have an answer to this?

The topic ‘Colours in LaTeX’ is closed to new replies.