2
\bigtriangledown

creates enter image description here

How to fill color and remove the black boundary so that I can create a customed symbol similar to this:

enter image description here

2 Answers 2

6

If you can find the appropriate black symbol, then it can be colored easily:

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

\begin{document}
\[
  \triangledown
  \blacktriangledown
  \begingroup
    \color{blue}
    \blacktriangledown
  \endgroup
\]
\end{document}

Result

If the symbol is a math symbol, then the color should be set via:

\begingroup\color{<color>}<symbol>\endgroup

Curly braces and \textcolor would change the meaning of the math atom, which can affect the horizontal spacing.


The symbol in the example above seems to have the same height and width. That means, the length of the slanted edge is sqrt(a2 + (a/2)2) with a as height or width of the triangle. Then the horizontal scaling factor (a = 1) is sqrt(5)/2 ≈ 1.118034:

\documentclass{article}
\usepackage{amssymb}
\usepackage{xcolor}
\usepackage{graphicx}

\newcommand*{\isotri}[1]{%
  \scalebox{1.118034}[1]{$#1$}%
}

\begin{document}
\[
  \isotri\triangledown
  \isotri\blacktriangledown
  \begingroup
    \color{blue}
    \isotri\blacktriangledown
  \endgroup
\]
\end{document}

Result scaled


Also the symbol could be easily created by tikz or similar packages. However it is not possible in TeX to get the exact information about the shape of a glyph, thus the dimensions must be measured, estimated or guessed.

2
  • shape isn't quite the same. darn triangles! like standards, there are so many to choose from! May 22, 2015 at 19:37
  • @barbarabeeton The width could be stretched via \resizebox or \scalebox. The vertical position can be adjusted with \raisebox. Side bearings can be modified via \kern. At least there is no line thickness. May 22, 2015 at 19:42
4

A possible way:

\documentclass[12pt]{article}
\usepackage{amsmath,amssymb}
\usepackage[dvipsnames]{xcolor}
\usepackage[geometry]{ifsym}

\begin{document}

Example: {\color{SeaGreen}\FilledBigTriangleDown}
\end{document} 

enter image description here

1
  • 1
    You can also use \textcolor{color}{thing} in this case. May 22, 2015 at 19:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .