[Tex/LaTex] Customising the Person symbol

symbols

This is a bit of strange one, and not one I expect there will be an answer to. But you gotta try right?

I am trying to dress the little person symbol. I want to put a t-shirt on him – and preferable by able to change the colour of said t-shirt. I am using the
\Gentsroom symbol from MarVoSym package which looks like this:

enter image description here

I want to put a yellow shirt on him, so that he looks like this:

enter image description here

Can anyone helps? Thanks.

Best Answer

10pt version

\documentclass{article}
\usepackage{stackengine,marvosym,xcolor,trimclip}
\begin{document}
\stackinset{c}{}{c}{0.9pt}{%
  \color{yellow!80!orange}\clipbox{0pt 4.0pt 0pt 2.2pt}{\Gentsroom}}{%
\stackinset{c}{}{c}{}{%
  \color{yellow!80!orange}\clipbox{1.1pt 2.2pt 1.1pt 2.2pt}{\Gentsroom}}{%
\Gentsroom}}
\end{document}

enter image description here

12pt version

Since clips are performed in pts, different font sizes require different \clipbox values.

\documentclass[12pt]{article}
\usepackage{stackengine,marvosym,xcolor,trimclip}
\begin{document}
\stackinset{c}{}{c}{1pt}{%
  \color{yellow!80!orange}\clipbox{0pt 4.6pt 0pt 2.6pt}{\Gentsroom}}{%
\stackinset{c}{}{c}{}{%
  \color{yellow!80!orange}\clipbox{1.3pt 2.6pt 1.3pt 2.6pt}{\Gentsroom}}{%
\Gentsroom}}
\end{document}

enter image description here


Of course, I see where you are going with this...

Just grab your favorite team logo in png form and, voila!

\documentclass[12pt]{article}
\usepackage{stackengine,marvosym,xcolor,trimclip,graphicx}
\begin{document}
\stackinset{c}{}{c}{}{\includegraphics[width=2pt]{Ravens}}{%
\stackinset{c}{}{c}{1pt}{%
  \color{purple!55!blue}\clipbox{0pt 4.6pt 0pt 2.6pt}{\Gentsroom}}{%
\stackinset{c}{}{c}{}{%
  \color{purple!55!blue}\clipbox{1.3pt 2.6pt 1.3pt 2.6pt}{\Gentsroom}}{%
\Gentsroom}}}
\end{document}

enter image description here

To automate the process, for color and scalablity, Here is \Tshirt[<size>]{<color>}

\documentclass[12pt]{article}
\usepackage{stackengine,marvosym,xcolor,trimclip,scalerel}
\newcommand\Tshirt[2][8.8pt]{\savestack\theTshirt{%
 \stackinset{c}{}{c}{1pt}{%
  \color{#2}\clipbox{0pt 4.6pt 0pt 2.6pt}{\Gentsroom}}{%
 \stackinset{c}{}{c}{}{%
  \color{#2}\clipbox{1.3pt 2.6pt 1.3pt 2.6pt}{\Gentsroom}}{%
 \Gentsroom}}}%
\scaleto{\theTshirt}{#1}}
\begin{document}
\Gentsroom \Tshirt{yellow!80!orange}%
  \Tshirt[18pt]{red}\Tshirt[30pt]{purple!55!blue}
\end{document}

enter image description here