Latex: Difference between revisions
Created page with " ==Installation== ===No Install=== Use [https://overleaf.com Overleaf] to create latex documents in a web browser. ===Partial Install=== Download [https://miktex.org MikTe..." |
No edit summary |
||
Line 30: | Line 30: | ||
===Fancy Math Font=== | ===Fancy Math Font=== | ||
See [https://tex.stackexchange.com/questions/58098/what-are-all-the-font-styles-i-can-use-in-math-mode this answer.] | See [https://tex.stackexchange.com/questions/58098/what-are-all-the-font-styles-i-can-use-in-math-mode this answer.]<br> | ||
[[File:LatexMathFonts.png|x500px|right]] | |||
<syntaxhighlight lang="latex"> | <syntaxhighlight lang="latex"> | ||
% Use mathbb for the set of reals R or the set of complex numbers C | % Use mathbb for the set of reals R or the set of complex numbers C | ||
% Requires amsfonts | % Requires amsfonts | ||
\mathbb{R} | \mathbb{R} | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 18:51, 13 September 2019
Installation
No Install
Use Overleaf to create latex documents in a web browser.
Partial Install
Download MikTex. It includes the TeXworks editor and will download packages as you use them. This will not take up as much disk space as a full install.
Full Install
Windows
Download TexLive. This is several gigabytes since it includes all the popular LaTex packages and takes a while to install. You'll also need an editor. I recommend installing Atom with the following packages:
latex
for calling the TexLive compilerlanguage-latex
for syntax highlightingpdf-view
for viewing the compiled pdf.
Linux
sudo apt install texlive-full
Compile tex documents with
pdflatex [mydocument.tex]
Usage
Fancy Math Font
See this answer.
% Use mathbb for the set of reals R or the set of complex numbers C
% Requires amsfonts
\mathbb{R}