I want to create a footnote, that say 'latex code has been taken from this source'. But I want standard latex symbol instead of a text 'latex'. How can I do it? I have tried $\LaTex$ and \LaTex , but those show undefined control sequence.

  • The "LaTeX" logo is obtained with \LaTeX, with three capitals: L, T, and X. It doesn't require math. Jun 12, 2020 at 0:01

1 Answer 1


I guess, you just made a typo (capital-X). The following code works for me.


I love \LaTeX.\footnote{\LaTeX\ code has been taken from this source.}
I also love \TeX.\footnote{\LaTeX{} code has been taken from this source.}

Compiled with pdfTeX:

d here

To clarify: I posted an answer which completely satisfied the needs for the questioner. An edit was meant to improve the post but I forgot to compile it, hence I missed a bad spacing. Thank you, David Carlisle for pointing this out and correcting my error. The addition of \ or {} gives the same results.

  • 1
    Perfect thank you! :)
    – Mannie
    Mar 21, 2020 at 19:17
  • 2
    A space after LaTeX would be nice:-) Mar 21, 2020 at 20:09
  • 1
    I usually write e.g. \LaTeX{} to finish the command and keep the following space as-is.
    – vonbrand
    Mar 22, 2020 at 2:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .