Typesetting Beautiful Mathematics with LaTeX, Lyx & MathJax
Tariq Rashid
Data Science Cornwall, July 2020
Aim
Develop useful skill
Understand concepts
Experience with tools
Papers, Journals, Books
Comparison
Comparison
Comparison
Tex
https://commons.wikimedia.org/wiki/File:KnuthAtOpenContentAlliance.jpg
https://commons.wikimedia.org/wiki/File:Monotype-machine.jpg
Donald Knuth
Aim
TEX & LaTEX
Architecture
TEX
LATEX
(packages)
low-level typography
document elements
(separate content from style)
macros for additional capabilities
Software Like Lyx
hides all the technical stuff below
1978
1984
TEX
TEX
\TeX{} is good at typesetting words like `fjord', `efficiency',
and `fiasco'. It is also good at typesetting math like,
$a^2 + b^2 = c^2$.
\bye
markup, just like HTML
TEX
fi
ff
fj
nice!
quotes are nice too!!
LATEX
LATEX
\documentclass{article}
\usepackage{amsmath} % Imports amsmath
\usepackage{parskip}
\title{Cartesian closed categories and the price of eggs}
\author{Jane Doe}
\date{September 1994}
\begin{document}
\maketitle
The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
% This is a comment, not shown in final output.
% The following shows typesetting power of LaTeX:
\begin{align}
E_0 &= mc^2 \\
E &= \frac{mc^2}{\sqrt{1-\frac{v^2}{c^2}}}
\end{align}
The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog. The quick brown fox jumped over the lazy dog.
\end{document}
import packages
title, author, etc
aligned equations
I added this extra package
LATEX
aligned by ‘=’ and numbered too
Aim
Lyx
Lyx
looks just like a word processor
Lyx
Important Concept
STYLE
CONTENT
Lyx Demonstration
Lyx Demo
LaTEX vs Word Processors vs Lyx
document complexity
effort
LaTEX
MS Word
Lyx
Aim
Web
MathJax
Web Browser
HTML, CSS, SVG, MathML
MathJax
core web technology
additional js library
“MathML is not intended to be written or edited directly by humans.”
Including MathJax
code highlighting for my blog
include and configuration for mathjax
web example
MathJax Demonstration
MathJax Demo
Links
LaTEX
Online Equation Editor
Lyx
MathJax
really handy!
handy!