Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>First you'll need to <strong>Install</strong> it:</p> <ul> <li><p>If you're using a distro which packages LaTeX (almost all will do) then look for <strong>texlive</strong> or <strong>tetex</strong>. TeX Live is the newer of the two, and is replacing tetex on most distributions now.</p> <p>If you're using Debian or Ubuntu, something like:</p> <p><code>apt-get install texlive</code></p> <p>..will get it installed.</p> <p>RedHat or CentOS need:</p> <p><code>yum install tetex</code></p></li> </ul> <p><em>Note : This needs root permissions, so either use <code>su</code> to switch user to root, or prefix the commands with <code>sudo</code>, if you aren't already logged in as the root user.</em></p> <p>Next you'll need to get a <strong>text editor</strong>. Any editor will do, so whatever you are comfortable with. You'll find that advanced editors like Emacs (and vim) add a lot of functionality and so will help with ensuring that your syntax is correct before you try and build your document output.</p> <p>Create a file called test.tex and put some content in it, say the example from <a href="http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer/TypicalInput.html" rel="noreferrer">the LaTeX primer</a>:</p> <pre><code>\documentclass[a4paper,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 &gt; 0$ and for all $x \in D$, there exists some $\delta &gt; 0$ (which may depend on $x$) such that if $y \in D$ satisfies \[ |y - x| &lt; \delta \] then \[ |f(y) - f(x)| &lt; \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></pre> <p>Once you've got this file you'll need to <strong>run latex</strong> on it to produce some output (as a .dvi file to start with, which is possible to convert to many other formats):</p> <pre><code>latex test.tex </code></pre> <p>This will print a bunch of output, something like this:</p> <pre><code>=&gt; latex test.tex This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4) entering extended mode (./test.tex LaTeX2e &amp;lt;2003/12/01&amp;gt; Babel &amp;lt;v3.8d&amp;gt; and hyphenation patterns for american, french, german, ngerman, b ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur kish, ukrainian, nohyphenation, loaded. (/usr/share/texmf/tex/latex/base/article.cls Document Class: article 2004/02/16 v1.4f Standard LaTeX document class (/usr/share/texmf/tex/latex/base/size12.clo)) No file test.aux. [1] (./test.aux) ) Output written on test.dvi (1 page, 1508 bytes). Transcript written on test.log. </code></pre> <p>..don't worry about most of this output -- the important part is the <strong>Output written on test.dvi</strong> line, which says that it was successful.</p> <p>Now you need to <strong>view the output file</strong> with xdvi:</p> <pre><code>xdvi test.dvi &amp; </code></pre> <p>This will pop up a window with the beautifully formatted output in it. Hit `q' to quit this, or you can leave it open and it will automatically update when the test.dvi file is modified (so whenever you run latex to update the output).</p> <p><strong>To produce a PDF of this</strong> you simply run <em>pdflatex</em> instead of latex:</p> <pre><code>pdflatex test.tex </code></pre> <p>..and you'll have a test.pdf file created instead of the test.dvi file.</p> <p>After this is all working fine, I would suggest going to the <a href="http://www.maths.tcd.ie/~dwilkins/LaTeXPrimer" rel="noreferrer">the LaTeX primer</a> page and running through the items on there as you need features for documents you want to write.</p> <p>Future things to consider include:</p> <ul> <li><p><em>Use tools such as <strong>xfig</strong> or <strong>dia</strong> to create diagrams</em>. These can be easily inserted into your documents in a variety of formats. Note that <strong>if you are creating PDFs then you shouldn't use EPS (encapsulated postscript) for images</strong> -- use pdf exported from your diagram editor if possible, or you can use the <code>epstopdf</code> package to automatically convert from (e)ps to pdf for figures included with <code>\includegraphics</code>.</p></li> <li><p><em>Start using version control on your documents</em>. This seems excessive at first, but being able to go back and look at earlier versions when you are writing something large can be extremely useful.</p></li> <li><p><em>Use <strong>make</strong> to run latex for you</em>. When you start on having bibliographies, images and other more complex uses of latex you'll find that you need to run it over multiple files or multiple times (the first time updates the references, and the second puts references into the document, so they can be out-of-date unless you run latex twice...). Abstracting this into a makefile can save a lot of time and effort.</p></li> <li><p><em>Use a better editor</em>. Something like Emacs + AUCTeX is highly competent. This is of course a highly subjective subject, so I'll leave it at that (that and that Emacs is clearly the best option :)</p></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload