\documentclass[12pt, french]{article}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=3cm]{geometry}
\usepackage[x11names]{xcolor}
\usepackage{framed, etoolbox}
\colorlet{framecolor}{VioletRed4}
\begin{document}
Soit f une application linéaire alors:
\[\forall x,y\in G,\ f(x)=f(y)\iff x=y\]
\end{document}
Asked
Active
Viewed 138 times
0
-
How to color math symbols? might be related. – leandriis Sep 26 '19 at 08:25
-
@leandriss, Yes – mohammed Sep 26 '19 at 08:26
2 Answers
0
\documentclass[12pt, french]{article}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=3cm]{geometry}
\usepackage[x11names]{xcolor}
\usepackage{framed, etoolbox}
\colorlet{framecolor}{VioletRed4}
\begin{document}
\color{blue}%%change the color name what you want
Soit f une application linéaire alors:
\[\forall x,y\in G,\ f(x)=f(y)\iff x=y\]
\end{document}
MadyYuvi
- 13,693
-
Note: As this answer currently stands, the
\color{blue}command will change the color of all the text in the document from that point onwards - probably not what the OP intended. To make it only apply to a small part, it needs to be enclosed in curly braces, like... normal text {\color{blue} ... blue text} ... normal text. – Disenchanted Lurker Sep 26 '19 at 09:20 -
@InquisitiveLurker Thanks for your notification, but the
OPdoesn't mention anything about his requirement, and he just pasted the text, so I thought that he want to change thecolorfor the entire text, hence I gave suggestion based on my assumption...If he want to applycolorforsome particular text,then he should followSango's suggestion... – MadyYuvi Sep 26 '19 at 09:37
0
Took leandriis reference to How to color math symbols?
And made this:
\documentclass[12pt, french]{article}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{amsthm}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage[utf8]{inputenc}
\usepackage[margin=3cm]{geometry}
\usepackage[x11names]{xcolor}
\usepackage{framed, etoolbox}
\colorlet{framecolor}{VioletRed4}
\usepackage{xcolor}
\begin{document}
Soit f une application linéaire alors:
\[\color{red} \forall x,y\in \textcolor{blue}{G},\ f(x)=f(y)\iff x=y\]
\end{document}
Got this:
Sango
- 887
