# How to create Candle Symbol in LaTeX

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.

-
–  krlmlr Feb 7 '12 at 20:47
How about some symbol stacking with \sun and \i? –  Werner Feb 7 '12 at 21:04
or the candle from How can I draw a cake using tikz –  cmhughes Feb 7 '12 at 21:07
or a candle from a Christmas tree –  Stefan Kottwitz Feb 7 '12 at 21:50
Quite apart from the fact that this has received fantastic answers, this is one case where I think that detexify might not have worked: I'd love to see how to draw a candle in detexify sufficiently precisely that it doesn't look like a deformed i. –  Loop Space Feb 8 '12 at 19:53

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’.

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.”

-
Well then, this makes my little \sun loose some of its shine... –  Werner Feb 8 '12 at 5:33
Aren't you a graphic designer? Because that logo is really terrific! –  yo' Feb 8 '12 at 10:38
@Hans-PeterE.Kristiansen cycle only works with lines, so you can say -- cycle but 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. –  Loop Space Feb 8 '12 at 19:51
Excellent!! One suggestion: if you change the definition of iflame to use fill[#2] instead, then the options passed to icandle would be standard tikz options 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 8 '12 at 21:00
@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 8 '12 at 21:04

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... :-|

-
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 8 '12 at 0:38

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}


-

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}


-