2. Define new color name with
\definecolor{''name''}{''model''}{''color-spec''}
e.g
\definecolor{light-gray}{gray}{0.95}
\definecolor{orange}{HTML}{FF7F00}
2. New Commands for text color
\usepackage{color}
%%%%%%%%%%%%%%%%%%%%
% New Command for text color
%%%%%%%%%%%%%%%%%%%%
\newcommand{\tr}[1]{\textcolor{red}{#1}}
\newcommand{\tw}[1]{\textcolor{white}{#1}}
\newcommand{\tbk}[1]{\textcolor{black}{#1}}
\newcommand{\tg}[1]{\textcolor{green}{#1}}
\newcommand{\tbl}[1]{\textcolor{blue}{#1}}
\newcommand{\tc}[1]{\textcolor{cyan}{#1}}
\newcommand{\tm}[1]{\textcolor{magenta}{#1}}
\newcommand{\ty}[1]{\textcolor{yellow}{#1}}
3. Examples
\tr{$a:\{S @ \theta S\}$}
\tw{$a:\{S @ \theta S\}$}\\
\tbk{$a:\{S @ \theta S\}$}\\
\tbl{$a:\{S @ \theta S\}$}\\
\tg{$a:\{S @ \theta S\}$}\\
\tc{$a:\{S @ \theta S\}$}\\
\tm{$a:\{S @ \theta S\}$}\\
\ty{$a:\{S @ \theta S\}$}\\
Latex Text Color |
No comments :
Post a Comment