필터 지우기
필터 지우기

Publish LaTeX equation color is white/grey

조회 수: 1 (최근 30일)
Gregory Lanier
Gregory Lanier 2024년 1월 12일
답변: Hassaan 2024년 1월 12일
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 $$

답변 (1개)

Hassaan
Hassaan 2024년 1월 12일
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.

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by