User Tools

Site Tools


resources:latex

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:latex [2012/09/16 02:00] jonathanresources:latex [2012/09/23 19:09] (current) jonathan
Line 1: Line 1:
 ====== Latex ====== ====== Latex ======
  
-===== Tutorials =====+===== 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]]+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 from-end GUI called TexWorks.+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. Texlive is installed on the Prism/Linux machines and Miktex on the Prism/Windows machines.
  
-Download a small text.tex file [[http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html|here]].+Here is a small text.tex file
  
-===== Running Latex in Prism =====+<code> 
 +\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}
 +</code>
 +
 +On Prism you can invoke
 +
 +<code>
 +pdflatex input.tex
 +</code>
 +
 +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 
 +
 +<code>
 +source /cs/local/packages/texlive/cshrc.texlive 
 +</code>
 +
 +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 =====
  
-Latex introduction [[http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html|here]]. Obtain a small sample latex file [[http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html|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 
     *[[http://truben.no/latex/table/|generate latex tables web]]     *[[http://truben.no/latex/table/|generate latex tables web]]
     * [[http://www.ctan.org/pkg/latable|windows app for latex table]]     * [[http://www.ctan.org/pkg/latable|windows app for latex table]]
-  *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. 
-        *[[http://www.cse.yorku.ca/tdb/_doc.php/userg/a_dept/dreamspark.html|Download Visio]] 
-        *[[http://softwarestencils.com/uml/index.html|Visio 2010 UML stencil]] 
     * The TikZ-UML Latex package can also be used within LaTeX itself to do UML drawings (uses cases, class diagrams, statecharts and sequence diagrams).     * 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.1347760808.txt.gz · Last modified: 2012/09/16 02:00 by jonathan

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki