Typesetting the TeX and LaTeX Symbols with Org Mode

After writing yesterday’s post, I poked around a bit on Higham’s site looking at some of his recent posts. I’m glad I did because I discovered that something I’ve wanted to do is possible. Occasionally I want to typeset the TeX or LaTeX symbol in a blog post. After a bunch of experimentation I discovered that $\LaTeX$ does typeset the symbol as \(\LaTeX\) but it typesets it in Math mode, which gives it an Italic look. I experimented some more but couldn’t get it to set the symbol in Text mode. I concluded that that was just the way it was. (Yes, I know, it’s Emacs; of course it’s possible.)

But looking at this post of Higham’s, I noticed that he was getting it typeset properly as \(\mathrm{\LaTeX}\) and his blogging workflow is very much like mine. One of the things I learned from my Mathematics training is that it’s often true that knowing a problem has a solution makes it easier to find that solution. That’s exactly what happened here: the first thing I tried worked.

So here’s the solution:

  • $\mathrm{\TeX}$ → \(\mathrm{\TeX}\)
  • $\mathrm{\LaTeX}$ → \(\mathrm{\LaTeX}\)

Oddly, I tried a solution like that before but apparently didn’t get the incantation exactly right.

I’ll probably complete the solution by adding a couple of snippets (or maybe an autocompletion) to make it easier to add the markup to my Org files.

This entry was posted in General and tagged , . Bookmark the permalink.