Clear Filters
Clear Filters

Publish LaTeX equation color is white/grey

1 view (last 30 days)
Gregory Lanier
Gregory Lanier on 12 Jan 2024
Answered: Hassaan on 12 Jan 2024
Hello,
I have been looking at how to insert equations using the publish feature, and it seems to be working with my code, but the text color is really dull. Is there any way to change this? I checked out the publish options, but I can't see anything that might fix this. I also
Here is the results along with my code:
% Here is the equation: $$ 2 + 2 = 4 $$

Answers (1)

Hassaan
Hassaan on 12 Jan 2024
To change the color of text and equations in LaTeX, you can use the xcolor package and then define the color in which you want the text/equations to appear. Here's an example of how you can do this for equations:
\usepackage{xcolor} % Add this in the preamble
% Then, within the document, use this to color the equation:
\textcolor{red}{%
\[
2 + 2 = 4
\]
}
This would make the equation appear in red color. You can replace red with any other color you wish to use.
For the specific issue mentioned where the text color appears dull or grey, it's also possible that there might be an issue with how the document is being rendered or displayed. If the problem persists, ensure that the document viewer is not in a 'night mode' or similar view that changes the colors, and check that the monitor or display settings are correctly adjusted for color contrast and brightness.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!