Although my research environment currently uses Microsoft Word. I continue to use LaTeX because it produces nicer looking documents that Microsoft Word, and I can use LaTeX to create formulas which can be converted into HTML files.
1. Install TexLive.
https://atom.io/packages/latex
This is perhaps the greatest physics package on the planet.
ftp://ftp.dante.de/tex-archive/macros/latex/contrib/physics/physics.pdf
mathematics mode is delimited by dollar signs.
This is an in-line $\int \frac{d\theta}{1+\theta^2} = \tan^{-1}\theta+C$ equation.
In the next case, mathematics mode is delimited by the \(
and \)
pair.
This is an in-line \(\int\frac{d\theta} {1+\theta^2}= \tan^{-1} \theta+C\) equation.
In the third case, mathematics environment is delimited by the \begin{math}
and \end{math}
pair.
This is an in-line \begin{math}\int\frac {d\theta}{1+\theta^2} = \tan^{-1} \theta+ C\end{math} equation.
LaTeX is available for different platforms. LaTeX is an impressively large program which is about 3.9 GB
[July 1, 2019] - Apparently, I've been out of the loop. I've been working on my documentation and nothing seems to compile. I've installed the latest installation of MacTex, and everything seems to be fine.
So apparently, I've been out of the loop. So here is the latest update for Max OSX
So all the young kids apparently love cloud applications and uses Overleaf to provide an automatic compilation of their document source code. Personally, I don't like it. I generally work a lot on my laptop with a small screen, often in a place like a coffee shop.
Compiling a LaTex document is actually fairly complicated, so I'm not going to describe it. Instead I'm providing a link to latexmk[1], which is included with most Windows, Linux, and OSX distributions of LaTeX.
latexmk -pvc -f -pdf foo
For compiling using xelatex
latexmk -xelatex -pv foo
Occasionally, you will get this an error [2],
latexmk -xelatex -pv -e "$max_repeat=10" foo
[1] Using Latexmk, https://mg.readthedocs.io/latexmk.html
[2] https://tex.stackexchange.com/questions/27450/how-to-make-latexmk-work-with-xelatex-and-biber
I usually use have two terminals and a PDF reader:
(1) one terminal running vi
in split screen mode (:vsplit
), part of the screen is editing the tex
document, and the the other portion of the screen is editing the bib
file. I have used Atom as a text editor, but have a tendency to move back to vi
. I think I'm just getting old, and old people just like the tools that they like!
(2) one terminal running latexmk -pvc -xetex -f article
, and
(3) Sumatra PDF reader which refreshes the view whenever latexmk
compiles a new document. At home and the office, where I have more screens, I generally use the Atom editor.