Basic LaTeX Document
Including png Images
Compile & View
Sections
Graphics
References
Symbols
Formula's enclosed in $ signs.
\documentclass[a4paper,12pt]{article}
\begin{document}
\setlength{\parskip}{10pt}
\setlength{\parindent}{0pt}
\end{document}
\vspace*{24.7mm} subscript
\hspace*{35mm}
\textbf{bold}
\\ return
\begin{center} \end{center}
\ldots ...
\frac{1}{\pi}
\quad space
\infty
a_{n}
\sum_{n=1}^{\infty}
\prod_{j=1}^{n} x_{j}
\begin{displaymath}
f(x) = \sin
\left(
\frac
{ \log \left( \frac {1+x}{1-x} \right }
{ e^{2/x} }
\right)
\end{displaymath}
\lim_{x \to +\infty}
\sum_{i=1}^{n}
\begin{verbatim}
void somefunc(int x)
{
int w = ...
\end{verbatim}
To compile the latex file a001.tex
$latex a001
- assumes latex .tex extension and produces
$a001.dvi
- to view on my Linux box
$xdvi
- and open the file.
dvips -o a001.ps a001.dvi
- for postscript file.
ps2pdf a001.ps for a001.pdf.
Alternatively do not use tex but pdftex
and you can include .png graphics images.
TODO - migrated to newer versions and this way has broken. Fix.
latex has a complicated way of dealing
with bitmap images. Consequently it was recommended
that you use ???
Here is an example where I used Gimp to find the height of img44.png file. I only specified one axis so the package determines the other.
\includegraphics[width=75mm]{img44.png}
Compile the tex file with pdflatex.
\section{Introduction}
\label{Introduction}
\section{System Description}
\lable{System Description}
$ convert img44.png img44.eps
converted from png to eps. Could use Gimp.
After declaring the documentclass load the graphics
package.
\usepackage{graphicx} % Needed for including graphics e.g. EPS, PS
\begin{center}
\includegraphics{chick.eps}
\end{center}
Other options
\includegraphics[scale=0.5]{chick.eps}
\includegraphics[width=2.5cm]{chick.eps}
Latex only accepts eps and ps files. See Including png Images.
\begin{figure*}
\centerline{
\mbox{\includegraphics[width=3.00in]{assemblyWorkcellOverview1_0.eps}}
\mbox{\includegraphics[width=3.00in]{assemblyWorkcellOverview1_0.eps}}
}
\caption{Replace text here with your desired caption.}
\label{overView}
\end{figure*}
A less complicated version
\includegraphics[]{img25.ps}
...
can track faster moving subjects[2].
...
can track faster moving subjects \cite{FranklinBOOK}.
\begin{thebibliography}{99}
\bibitem{CarpenterBOOK} Carpenter, R.H.S., {\it Movements of the Eyes},
2nd Edition, Pion Publishing, 1988.
\bibitem{FranklinBOOK} Franklin, G.F., Powel, J.D., Workman, M.L.,
{\it Digital Control of Dynamic Systems}, Second Edition,
Addison-Wesley, 1990.
\end{thebibliography}
Symbols in LaTeX and html Latex matters Map between Latex commands and Unicode points Symbols:Set Operations and Relations
\neq Not equal
\pm \mp Plus or minus
\times \cdot middle dot
\leq less than or equal to
\geq greater than or equal to
^\circdegrees
\div divide by
\infty infinity
\exists there exists
\mathbin{\char`\^} ^
\in element of
\alpha \theta \tau
\beta \vartheta \pi \upsilon
\gamma \gamma \varpi \phi
\delta \kappa \rho \varphi
\epsilon \lambda \varrho \chi
\varepsilon \mu \sigma \psi
\zeta \nu \varsigma \omega
\eta \xi
\Gamma \Lambda \Sigma \Psi
\Delta \Xi \Upsilon \Omega
\Theta \Pi \Phi
\mathbb{N} - natural numbers, but can put in
other letters such as P (primes), J(positive integers), Q(rational numbers), Z(integers), I(irrational numbers), C (complex numbers), R (real numbers).
\sum_{k=1}^{n} - sum
\prod {i=1}^{n} - product
\lceil \rceil
\lfloor \rfloor