I have a need to insert a candle symbol in "elite" in the place of "i". I browsed through the comprehensive LaTeX symbols pdf and could not find any one matching up. Is there any easy way to achieve this? An image processing tool is always a way but I wanted to see if LaTeX has any solutions for it.
5 Answers
Here is a custom-designed Bezier-curve flame in TikZ combined with a dotless letter ‘i’:

Here is the source:
\documentclass{minimal}
\usepackage{tikz}
\newcommand{\iflame}[2]{%
\begin{tikzpicture}[scale=#1]
\fill[color=#2]
(0,0) .. controls (-1.5,1.25) and (.5,2) .. (-.2,4)
.. controls (1,2.5) and (1,.5) .. (0,0);
\end{tikzpicture}
}
\newcommand{\icandle}[1]{%
\rlap{\kern-.0275em\raisebox{1.2ex}{\iflame{.035}{#1}}}$\i$%
}
\begin{document}
\noindent
el\icandle{red}te\\
el\icandle{orange}te\\
el\icandle{yellow!80!red}te\\
el\icandle{gray}te\\
elite\\
\par
\end{document}
If you find the serifs on the ‘i’ to be undesirable, you can substitute instead a vertical rule of height 1ex, depth 0ex, and width .7pt, with about .09em kerning on each side, and then lower the flame by .1ex. I tried it both ways and I personally like it better with the serifs on the ‘i’.
Addendum
I just noticed today that the middle three letters of “elite” are “lit” and that the last four letters are “lite”. There is also the visual pun “e-lite”, e.g., “electronic light.”
- 757,742
- 13,912
-
14
-
2
-
Just brilliant. Is it better to say
cycleinstead of..(0,0)in the end of the curve? – hpekristiansen Feb 08 '12 at 11:35 -
-
-
2@Hans-PeterE.Kristiansen
cycleonly works with lines, so you can say-- cyclebut it doesn't work with curves. As the path is filled, it is closed anyway so it doesn't make a difference to the final rendering. – Andrew Stacey Feb 08 '12 at 19:51 -
1Excellent!! One suggestion: if you change the definition of
iflameto usefill[#2]instead, then the options passed toicandlewould be standardtikzoptions so other parameters could be passed in if so desired. For example:\icandle[color=red, opacity=0.5]etc. One could even specify a draw color different than a fill color. – Peter Grill Feb 08 '12 at 21:00 -
1@PeterGrill: Ah yes, I like that idea. One thing to note: It's important here not to use a draw color (only fill color) as drawing a border significantly increases the size, while also exposing a path-cycle flaw at (0,0) in this implementation (not present in fill-only mode). If there were a way to stroke the path on the interior only, that might work. – Todd Lehman Feb 08 '12 at 21:04
-
Yes, but the thickness of the draw color can be controlled. Not that I am recommending it, up to the user to do what they want. This is already possible using what you have, but requires that the first parameter be a color, and saying
[red,opacity=0.5]does not quite seem right. – Peter Grill Feb 08 '12 at 21:16 -
1@ToddLehman You can stroke the path on the interior only by clipping against itself first (requires specifying the path twice). – Andrew Stacey Sep 26 '12 at 16:19
Here is a text-based "candle", obtained by stacking \sun (from wasysym) on top of \i using the accents package. Some scaling is provided by \scalebox from graphicx. It even scales based on the font selection (like \large, \Large, ...).

\documentclass{article}
\usepackage{graphicx}% http://ctan.org/pkg/graphicx
\usepackage{wasysym}% http://ctan.org/pkg/wasysym
\usepackage{accents}% http://ctan.org/pkg/accents
\newcommand{\sunI}{\ensuremath{\accentset{\scalebox{.5}{\sun}}{\mbox{\i}}}}%
\begin{document}
elite~el\sunI te
\end{document}
I'm not sure how candle-ish of a look you're after... :-|
- 603,163
-
Werner - That would work great for me, however there is always room for improvement. So I hope other people keep posting good suggestions. Thanks for your help – Aku Feb 08 '12 at 00:38
As there is a unicode for this in version 7.0, I present a pure symbols solution with the only available font I could find.
% arara: lualatex
\documentclass[a4paper,10pt]{article}
\usepackage{fontspec}
\newcommand*{\candle}{{\fontspec{symbola.ttf}\symbol{"1F56F}}}
\begin{document}
el\candle te
\end{document}

- 43,807
By adjusting the vertical postion of the symbols, I think that this can work:
\documentclass{minimal}
\usepackage{txfonts}
\usepackage{stmaryrd}
\usepackage{graphicx}
\usepackage{accents}
\newcommand{\candle}{\ensuremath{\accentset{\scalebox{.5}{\(\varspadesuit\)}}{\scalebox{.6}{\(\talloblong\)}}}}
\begin{document}
elite el\candle{}te
\end{document}

- 37,006
There's a \Candle symbol in tikzsymbols package.
\documentclass{standalone}
\usepackage{tikzsymbols}
\begin{document}
\Candle
\end{document}
Output
A word of caution: I notice the flame is not exactly aligned.
- 4,026
- 3
- 35
- 72
-
@Werner Do you know name of the cotton rope thing in between the wax and flame (English is not my first language :P)? – hola Oct 20 '17 at 18:21
-
1

\sunand\i? – Werner Feb 07 '12 at 21:04i. – Andrew Stacey Feb 08 '12 at 19:53