2

I found a good answer here about how to insert characters into circles, but how could one place a triangular order around a character? Would it involve $\triangle$?

1 Answers1

4

Modified Stefan Kottwitz answer on question:

\documentclass{article}
\usepackage{tikz}
\usepgflibrary{shapes}
\newcommand*\triangled[1]{\tikz[baseline=(char.base)]{
            \node[regular polygon, regular polygon sides=3,draw,inner sep=1pt] (char) {#1};}}
\begin{document}
Numbers aligned with the text:  \triangled{1} \triangled{2} \triangled{3} etc.
\end{document}

enter image description here

Zarko
  • 296,517
  • So @zarko I'm trying to use this on the Mathematics site and it's not working; all that happens is a black box appears around the text… – gen-ℤ ready to perish Dec 20 '16 at 21:11
  • @user56478, in your question is not given any context how you will use this "triangled" numbers/characters. I'm sorry, I don't know Mathematics site nor how is there published images. – Zarko Dec 20 '16 at 21:19
  • Ah, okay… I'll search for an answer online. It can't be too complicated to convert over from normal LaTeX. – gen-ℤ ready to perish Dec 20 '16 at 21:21