6

How to write these two symbols in LaTeX

enter image description here

I know the Latex symbols are $\Delta$ but how to shade the Delta in Latex? Please help.

2
20
\documentclass{article}
\usepackage{amssymb}
\usepackage{xcolor}


\begin{document}
    \begin{enumerate}
        \item \(\color{red}\blacktriangle\)
        \item \(\color{red}\blacktriangledown\)
    \end{enumerate}
\end{document}

That would give you

A picture of the output that the given source code produces.

2
  • Thanks a lot, great solution – Math_Freak May 14 at 6:12
  • 6
    This would look great on an elevator. – Giuseppe Negro May 14 at 15:24
6

Here is a solution for LuaLaTeX or XeLaTeX:

\documentclass{article}
\tracinglostchars=3
\usepackage[svgnames]{xcolor}
\usepackage{newcomputermodern}

\newcommand\redtriangleup{\textcolor{Red}{\bigblacktriangleup}}
\newcommand\redtriangledown{\textcolor{Red}{\bigblacktriangledown}}

\begin{document}
\[ \redtriangleup\redtriangledown \]
\end{document}

New Computer Modern sample

In PDFTeX, load \usepackage{stix} or \usepackage{stix2} instead of \usepackage{newcomputermodern}.

ETA: You can replace \bigblacktriangleup with \blacktriangleup and \bigblacktriangledown with \blacktriangledown as in needle’s answer, while using the same approach. Many more packages support these commands.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.