User Tools

Site Tools


resources:latex

This is an old revision of the document!


Latex

Tutorials

You can google for Latex tutorials (there are many). There is a quick and simple introduction here

I use MikTex on windows and Texlive on my mac (the MacTex distribution). Both distributions come with a free from-end GUI called TexWorks.

Prism/Command line

Texlive is installed on the Prism/Linux machines and Miktex on the Prism/Windows machines.

Here is a small text.tex file

\documentclass[12pt]{article}
\begin{document}

The foundations of the rigorous study of \emph{analysis}
were laid in the nineteenth century, notably by the
mathematicians Cauchy and Weierstrass. Central to the
study of this subject are the formal definitions of
\emph{limits} and \emph{continuity}.

Let $D$ be a subset of $\bf R$ and let
$f \colon D \to \mathbf{R}$ be a real-valued function on
$D$. The function $f$ is said to be \emph{continuous} on
$D$ if, for all $\epsilon > 0$ and for all $x \in D$,
there exists some $\delta > 0$ (which may depend on $x$)
such that if $y \in D$ satisfies
\[ |y - x| < \delta \]
then
\[ |f(y) - f(x)| < \epsilon. \]

One may readily verify that if $f$ and $g$ are continuous
functions on $D$ then the functions $f+g$, $f-g$ and
$f.g$ are continuous. If in addition $g$ is everywhere
non-zero then $f/g$ is continuous.

\end{document}

On Prism you can invoke

pdflatex input.tex

This produces an input.pdf file that should display as can be seen here.

Note: Invoke

source /cs/local/packages/texlive/cshrc.texlive 

before you run pdflatex. Even better, put the above line at the end of your .cshrc file.

Running Latex in Prism

Latex introduction here. Obtain a small sample latex file here.

  • To run the file on Prism from the command line.
  • To get started on Prism/Linux:
    • At the command line run texworks. From File→select-from-template→Latex→article save and select a start file.
    • Press the green run button.
    • Select a file from template
  • UML
  • Visio 2010 is a good tool for doing UML diagrams. You can do your drawing, save as a pdf, and then include the pdf in your Latex document.
  • The TikZ-UML Latex package can also be used within LaTeX itself to do UML drawings (uses cases, class diagrams, statecharts and sequence diagrams).
resources/latex.1347761629.txt.gz · Last modified: 2012/09/16 02:13 by jonathan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki