TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I may be able to use this Unicode character for gas pumps with XeLaTeX, but I am looking for a package that provides such a symbol. Or any other native LaTeX approach?

share|improve this question
    
After seeing ALL sorts of symbols here at pp. 118-205, and not spotting this one, I am afraid that no, that symbol is not offered by a font package. – MickG Feb 11 at 21:06
up vote 6 down vote accepted

I went to the place you pointed and downloaded the image as fuel_pump.png. Then I create a macro that scales it to the current \strut size.

\documentclass{article}
\usepackage{scalerel,graphicx}
\newcommand\fuelpump{\scalerel*{\includegraphics{fuel_pump}}{\strut}}
\begin{document}
normalsize pump: \fuelpump

\LARGE or LARGE: \fuelpump
\end{document}

enter image description here

share|improve this answer
    
Thanks! Instead of .png, I saved the .svg file as .pdf and used it. Works great! – Chang Feb 12 at 3:30

The only font I have that provides the glyph is Symbola that you can download from http://users.teilar.gr/~g1951d/

\documentclass{article}
\usepackage{fontspec}

\newfontface{\symbolafont}{Symbola}

\newcommand{\gaspump}{{\symbolafont\symbol{"26FD}}}

\begin{document}

This is the symbol for a gas pump: \gaspump

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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