[Tex/LaTex] How to use LaTeX within the subject or body of an e-mail

email

Does anyone have an LaTeX email template they like to use?

Is there any good way to add a LaTeX document into the subject/body of an email?

Best Answer

There are (in general) two types of e-mails:

  • plain text
  • HTML

As your question is about the subject and the body: The subject is the same as plain text, so the following paragraph does apply.

If you want to send a plain text mail you will not be able to include LaTeX maths except by just using the LaTeX code and hoping for the recipient to compile it (or simply read it of course). In this case you basically have two options: either use Unicode math symbols (which is quite unsatisfying for everything except the most simple things) or use an attachment with a compiled LaTeX document.

With HTML mails you have way more options. You could still use Unicode symbols or attachments (or add the LaTeX code as code), but there are HTML elements that allow you to use PDF objects directly (be warned that they may be blocked by some mail clients), so you could include your compiled LaTeX document.

Furthermore, you could include images of the rendered LaTeX output into your emails. Some means of achieving this are listed in the related post here. Please note that this is mostly client-dependent. Thunderbird, for instance, has a "Insert → Math" option in the HTML composing window, which allows to insert simple LaTeX math. Another solution for Thunderbird is the extension "LaTeX It" suggested by moewe in the comments.

Related Question