Silly question: I want to use a heart (♥) character in my presentation.

I'm already using xelatex as engine so it doesn't complain for the character itself but it doesn't render it. Just a blank space where the character should be.

Here is the snippet of the offending code:

    (Celery + RabbitMQ) ♥  Django

Notice that I'm using markdown for the input format.

This is how I make the pdf

pandoc -t beamer --latex-engine=xelatex \
    in.md -oout.pdf --slide-level=2

I'm new to pandoc and latex in general.

♥ Thanks ♥

  • 2
    Maybe you need this : tex.stackexchange.com/a/9643/9467 Aug 22, 2012 at 16:20
  • Great! used $\heartsuit$ instead of ♥ and it worked great. If you put that as an answer i'll accept it.
    – tutuca
    Aug 22, 2012 at 16:49
  • 1
    Could newunicodechar help?
    – cgnieder
    Aug 22, 2012 at 21:38
  • 5
    There was nothing wrong with the edit, so why the bitter remark in the edit reasoning?
    – percusse
    Aug 22, 2012 at 22:30
  • 7
    Oh, we are kind of hiding in this obscure corner of SE. It's very easy to get rep here so people don't bother with 2 points. Besides, we have the amazing lockstep who is the edit/tag master (probably will visit this question too, check his edit stats :P). Just a reminder Not upvoting is preferred over Downvoting, hence less hassle and moar fun. If you see a question stuck at -1, it means that there is something seriously wrong about that question so we don't downvote more than -1. Other than that it's a pretty relaxed place.
    – percusse
    Aug 23, 2012 at 6:42

4 Answers 4


Maybe you need this answer.

enter image description here

  • I just needed to use the latex sintax in the document. Time to learn some more latex. I'm loving pandoc.
    – tutuca
    Aug 22, 2012 at 22:25

If you want a tikzsolution this works

\draw[fill=black,thick,domain=0:2*pi,variable=\t,samples=100] %
plot ({16*sin(\t r)^3} , {13*cos(\t r) - 5*cos(2*\t r) - 2*cos(3*\t r) - cos(4*\t r) });

This code was a result from a small discussion in chat, thanks to percusse.

Parametric equation for an heart.

  • For the current scale and samples values, there is a glitch at the bottom corner. Increasing either one can get rid of such a glitch. Aug 23, 2012 at 3:20

The following works for me:




Just another fun stuff with PSTricks. Compile the given code with xelatex because the code use JPEG image with which latex-dvips-ps2pdf sequence cannot work.

User Defined Data



enter image description here

enter image description here

Complete Code


% user defined data

% internal used data

    \psparametricplot{0}{2.5 .25 exp}{t^2  | 0.8*(sqrt(2.5-t^4)+t)}
    \psparametricplot{2.5 .25 exp}{0}{t^2  | 0.8*(-sqrt(2.5-t^4)+t)}
    \psparametricplot{0}{2.5 .25 exp}{-t^2 | 0.8*(-sqrt(2.5-t^4)+t)}
    \psparametricplot{2.5 .25 exp}{0}{-t^2 | 0.8*(sqrt(2.5-t^4)+t)}





  • 5
    I'm not sure if I should feel amused, flattered or disturbed :D
    – tutuca
    Aug 23, 2012 at 1:06
  • @tutuca: hopefully it is not the last one. :-) Aug 23, 2012 at 1:08

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.