- Technical Services and Consulting
- Embedded Systems | Firmware Developement | Simulations
- Electrical and Electronics Engineering
Publish LaTeX equation color is white/grey
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1589596/image.png)
% Here is the equation: $$ 2 + 2 = 4 $$
0 Kommentare
Antworten (1)
Hassaan
am 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
Feel free to contact me.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!