## Adafruit Blog Upgrade: LaTeX Rendering!

Yesterday, I published a post about opamps here on the blog. This post utilized a new feature here at Adafruit: rendered LaTeX equations. For those that are unfamiliar, LaTeX is a markup language for the TeX system, originally developed by legendary computer scientist Donald Knuth. LaTeX (pronounced “Lay-Tek”), is used by scientists, educators and engineers around the world to format equations so that they look nice and neat, and are easy to read.

About a month ago, in the course of originally drafting that opamp article, I started looking around at LaTeX plugins for WordPress. There are several of these available. All of them have their strengths and weaknesses, but eventually I settled on WP-QuickLaTeX by Pavel Holoborodko, Dmitriy Gubanov and Kim Kirkpatrick.

WPQL supports automatic equation numbering, has built in tikz and pgfplots support, can render alpha-channel PNGs, and supports LaTeX markup in blog comments, which means that the conversation can go both ways. TeX and LaTeX have been around a long time, so there is information all over the place about how to use it, but here are a few tutorials (1, 2)

What this means for you is that we can more easily do technical posts on the blog, and drop transfer functions like this:

(1)

Or plots like this:

We’re super-excited to have this new functionality here, and we hope you are too. If you want to take LaTeX for a test drive in the comments, you can use the $and$ tags at the beginning and end of your LaTeX statements. If you want to make sure your code works before you post it, you can test it at quicklatex.com (include the preamble under “choose options” — thanks, zerth!)

Try it out now!

Related
Filed under: announce,EE — by johngineer, posted April 6, 2012 at 10:58 am

Try Adafruit's new iPhone & iPad app for makers! Circuit Playground! "Incredibly handy for anyone working in electronics. Perfect for engineers and non-engineers alike."
Looking for engineers, makers and the builders of dreams? Try our Adafruit job boards.
Join our weekly Adafruit SHOW-AND-TELL at 7:30pm ET every Wednesday night! Then at 8pm, ASK-AN-ENGINEER with Ladyada and the Adafruit team!

## 18 Comments

1. w00t!

Comment by johngineer — April 6, 2012 @ 10:59 am

2. hmmm…

$\cos(\theta + \phi) = \cos \theta \cos \phi - \sin \theta \sin \phi$

Comment by akiba — April 6, 2012 @ 11:19 am

3. $sigh$

Comment by akiba — April 6, 2012 @ 11:21 am

4. Oops, missed that last part about latex tags being needed…

Comment by akiba — April 6, 2012 @ 11:22 am

5. Hmm…

Comment by Harry — April 6, 2012 @ 12:45 pm

6. hrm…

Comment by zerth — April 6, 2012 @ 1:07 pm

7. @zerth: you have to tell it what packages to use or it cannot render graphics.

Comment by johngineer — April 6, 2012 @ 1:18 pm

8. Comment by Leonhard Euler — April 6, 2012 @ 1:55 pm

9. Hmmm. I just looked at my post. The latexpage order apparently didn’t work. Do I need to do a slash-close order at the end?

Comment by Leonhard Euler — April 6, 2012 @ 2:30 pm

10. I fixed the Euler equation so that it would display correctly. We seem to be having a problem with latexpage in the comments. In the meantime, you can wrap your equations in the $and$ tags and it will render correctly.

Comment by johngineer — April 6, 2012 @ 2:39 pm

11. Comment by test — April 6, 2012 @ 3:14 pm

12. whoa!

Comment by johngineer — April 6, 2012 @ 3:28 pm

13. Okie, try again.

Comment by zerth — April 6, 2012 @ 3:28 pm

14. gah, stupid shift key. Last try.

Comment by zerth — April 6, 2012 @ 3:31 pm

15. For anyone who wants to proof before posting: http://quicklatex.com/

Although you have to put your preamble in under “choose options” and if you mistype your WP tags, it won’t tell you.

Comment by zerth — April 6, 2012 @ 3:34 pm

16. Also, I’m pretty sure it’s a plus in the Euler equation.

Comment by Harry — April 6, 2012 @ 4:51 pm

17. Harry,

I just checked my hand written notes, and you are correct. I have trouble using keyboards since they haven’t been invented yet.

Regards,
Leonhard

Comment by Leonhard Euler — April 6, 2012 @ 6:42 pm

18. [latex]
\begin{split*}
&\left( \epsilon \frac{d}{d\zeta} – \frac{d^{2}}{d\zeta^{2}} \right) (\bar{T}_{1}(\zeta) +\epsilon \bar{T}_{2}(\zeta) +…)\\
& = \epsilon^{2} \mathfrak{D} ( \bar{T}_{b} – \bar{T}_{1} (\zeta) -\epsilon \bar{T}_{2} (\zeta)+… )exp \left( -\frac{1}{\epsilon ( \bar{T}_{1}(\zeta) + \epsilon\bar{T}_{2}(\zeta)+… ) } \right)
\end{split*}
[\latex]

Yay, part of the assignment I’ve been working on for the last couple of days! Basically trying to write an equation for flame speed and thickness… (hopefully not the only non-EE here)

Comment by Louis Leblanc — April 8, 2012 @ 5:01 pm

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

www.flickr.com
 Go to adafruit's photostream
www.flickr.com
 More in Adafruits pool