I wish to partly change the color of the $\ge$ symbol. In particular, I want to change the horizontal bar into a red color, similar to this:
How can this be typset?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI wish to partly change the color of the $\ge$ symbol. In particular, I want to change the horizontal bar into a red color, similar to this:
How can this be typset?
Adapting @egreg's (non-tikz) solution given in the link provided by @Sebastiano in the comments:
Fortunately, the bar portion of the glyph seems to be in the depth area, making the trimming for the clipbox viewport simpler.
MWE
\documentclass{article}
\usepackage{trimclip,xcolor}
\newcommand{\skyge}{%
\mbox{%
$\ge$
\textcolor{red}{$\ge$}%
\llap{\textcolor{blue}{\clipbox*{0 0 {\width} {\height}}{$\ge$}}}%
}%
}
\begin{document}
\skyge
\end{document}