Another one of my pre-stats misconceptions was that whenever you saw an equation in a journal article it was created with Word’s super difficult equation editor. Hopefully I’m not the only one who thought this, because now I feel really silly (Editor’s Note: I assumed mathematical witchcraft, so joke’s on me really.). LaTeX is a document preparation system for high-quality typesetting often used for technical or scientific documents. Long story short, you could be creating completely badass documents with lots of equations and badassery like these: [Homework with R Code, Homework with crazy stat stuff!]. I received my intro to LaTeX during one of the Cohort Workshops I have been arranging on Fridays for my department. Another grad student gave us a very brief introduction and showed us some of the basics. A few downloads, a bunch of googling, and several hours of practice later (not to mention an uninstall and redownload…) I was really starting to get the hang of it! Anyone who’s learning to program knows that you experience some of the most frustrating moments during that initial learning curve. WHY WON’T YOU JUST COMPILE AND SHOW ME A PDF OF MY NAME AND ‘HELLO WORLD’? I DID EXACTLY WHAT YOU TOLD ME…*deletes comma* Oh…well then. BEHOLD MY BRILLIANCE! FOR I HATH CREATED A MASTERPIECE!
I would like to encourage everyone to give it a go! I can answer basic questions, but I’ve found that the vast majority of my own beginner’s questions have been accomplished through a few key resources, including the Great Googily Moogily. Behold your starting point!
-
Tex – LaTeX is actually a sub-entity of Tex, sort of like Git and Github (which I also am just beginning to understand!) So you’ll actually need to download Tex in order to run LaTeX. Unfortunately, there are slightly different versions for Windows and Mac users but both deal with the same underlying program (if you run anything else, my apologies for being completely unaware of how to guide you).
-
An Editor – The Tex download comes with everything you absolutely need, but I like using an editor for extra pretty colors and the option to code for other programming languages. I like working in Aquamacs, which is the Mac version of Emacs. (Update: I now use Sublime Text because Aquamacs kept giving me unhelpful error messages and I wasn’t having none of that.)

-
Hello, World! – Your first task is to just compile and create a PDF file with the most basic of greetings. I used this website at Art of Problem Solving. Even still I spent way too long before I got my first code to compile and PDF produced. It’s a glorious achievement!
-
Do a Homework in LaTeX – This is not applicable to everyone and for all classes. But if you have a math or stats course where the homework isn’t too intensive consider completing it in LaTeX! One of my professors even wrote lots of handy coding tips on one of my homeworks that helped me a lot the next time around. I love being able to feel accomplished at writing up a nice, clean looking final version even if the homework is crazy difficult. Helps me keep those imposter thoughts at bay!
-
Update your CV – This was one of my recommendations for our Motivation blog post last week. I used this one from Bradley P Carlin and you can check out my final form!
-
Write and submit your next manuscript using LaTeX! – Now, I’m nowhere near this stage of my program but I’d wager that quite a few templates or style formatting guidelines available for submitting a paper using LaTeX! Go, go, go!
Basically part of my grand PhD scheme is to master a lot of the computing and presentation side of statistics so that I will be a valuable asset and worthy of ALL the jobs. At least a few options after graduating will be worth the toiling away finding that stray comma or misspelled command. Now that you’ve heard my favorite new tool I’ve learned so far please share yours! Or even if your favorite is also LaTeX tell me all the little tricks you’ve picked up! I want all the tricks!
One thought on “Tricks of the Trade: LaTeX”