====== Latex ====== ===== LaTex Tutorials ===== You can google for Latex tutorials (there are many). *There is a quick and simple introduction [[http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html|here]] *For mathematics we use the B-style (for some of the symbols) and the AMS package [[ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf|AMS]]. I use [[http://miktex.org|MikTex]] on windows and [[http://www.tug.org/texlive/|Texlive]] on my mac (the MacTex distribution). Both distributions come with a free front-end GUI called TexWorks. ''Birthday-Book.zip'' (in the ''Misc'' folder in the SVN) is the template for doing requirements documents. The main tex file ''birthday-book.tex''. This file in turn uses ''defns.tex'' (which in turn uses a number of styles in the folder ''sty''). See below for how to compile these files into PDF. ===== 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 [[http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html|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. ===== Prism/TexWorks ===== * At the Prism command line run ''texworks'' (If the workstation is in Windows mode, there should be a shortcut for TexWorks on the desktop). * ''File->select-from-template->Latex->article'' and save the file . * Press the green run button. You should see the pdf displayed. * Read the manual that comes with the Help menu. ===== Other resources ===== *[[http://truben.no/latex/table/|generate latex tables web]] * [[http://www.ctan.org/pkg/latable|windows app for latex table]] * The TikZ-UML Latex package can also be used within LaTeX itself to do UML drawings (uses cases, class diagrams, statecharts and sequence diagrams).