5

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.

Charlotte
  • 963

2 Answers2

19
\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.

wermos
  • 5
needle
  • 913
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.

Davislor
  • 44,045