4

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?

1
  • 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, 2016 at 21:06

4 Answers 4

11

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

1
  • Thanks! Instead of .png, I saved the .svg file as .pdf and used it. Works great!
    – Chang
    Feb 12, 2016 at 3:30
8

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

2
  • I do not understand what do you mean by "The only font I have that...". Did you create that package?
    – manooooh
    Jul 27, 2019 at 3:51
  • 1
    @manooooh The font is available to my OS because I installed it. i checked with a utility that shows Unicode characters and tells what available fonts have it.
    – egreg
    Jul 27, 2019 at 8:20
3

The symbol that I'm attaching is the pump of a gas station using fontawesome5 package without to use Unicode characters.

enter image description here

\documentclass[12pt]{article}
\usepackage{fontawesome5}
\begin{document}
This is a symbol of gas-pump using fontawesome5: 
\faGasPump
\end{document}
3

You may also use the coloremoji package to get a full-color version.

\documentclass{article}
\usepackage{coloremoji}

\newcommand\fuelpump{⛽}

\begin{document}
⛽{\fuelpump}^^^^26fd
\end{document}
2
  • Spectacular is the use of unicode with coloremoji package. But exists a pdf documentation? I have not find it.
    – Sebastiano
    Jul 27, 2019 at 20:34
  • 1
    @Sebastiano Just the readme.md, so far as I know.
    – Davislor
    Jul 28, 2019 at 3:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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