|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help |
TeX is a powerful
text processing language and is the required format
for some periodicals now. TeX has many macros to which you can
eventually add your own. LaTeX is a macro package which sits on top of
TeX and provides all the structuring facilities to help with writing
large documents. Automated chapter and section macros are provided,
together with cross referencing and bibliography macros. LaTeX tends to
take over the style decisions, but all the benefits of plain TeX are still
present when it comes to doing maths. The
Why LaTeX? page discusses LaTeX's strengths/weaknesses.On CUED's central system you can run latex from the command line using latex or pdflatex. We also have Kile and Lyx |
|

latexdiff -CCHANGEBAR old.tex new.tex > diff.tex
pdflatex diff.tex
should produce a document that compares and contrasts the 2 versions of the file.

We have a site licence for tex2word. Contact Peter Benie (pjb1008) for help with it (with a demo licence it fails to convert some files that with the real licence it copes with). In addition
With Kile (installed on our local system - type kile in the Terminal window to start it) you still need to type LaTeX code, but Kile has many facilities (templates, wizards, etc) to make it easier. You should be able to find what you want in the menus (for example, the File->Statistic option gives a word-count, etc). You can print the LaTeX file directly from Kile. To print the output file you need to use another program. For example, if you want to create a PDF file you can produce the DVI file, use the Build->Convert->DVItoPDF option, then the Build->View->ViewPDF option to view the file. The viewer has a Print option. |
|
|
lyx is a WYSIWYG front-end for LaTeX that's getting better all the time. It's installed on our teaching system. Warning: it may not always be easy to convert between LaTeX and lyx formats - use at your own risk! |
|


\documentclass{article}
\begin{document}
\section{Simple Text} % THIS COMMAND MAKES A SECTION TITLE.
Words are separated by one or more spaces. Paragraphs are separated by
one or more blank lines. The output is not affected by adding extra
spaces or extra blank lines to the input file.
Double quotes are typed like this: ``quoted text''.
Single quotes are typed like this: `single-quoted text'.
Long dashes are typed as three dash characters---like this.
Italic text is typed like this: \textit{this is italic text}.
Bold text is typed like this: \textbf{this is bold text}.
\subsection{A Warning or Two} % THIS COMMAND MAKES A SUBSECTION TITLE.
If you get too much space after a mid-sentence period---abbreviations
like etc.\ are the common culprits)---then type a backslash followed by
a space after the period, as in this sentence.
Remember, don't type the 10 special characters (such as dollar sign and
backslash) except as directed! The following seven are printed by
typing a backslash in front of them: \$ \& \# \% \_ \{ and \}.
The manual tells how to make other symbols.
\end{document} % THE INPUT FILE ENDS WITH THIS COMMAND.
latex myfile.tex
which will produce a number of files including myfile.log, myfile.aux and myfile.dvi. If you are using various sorts of cross referencing then you may have to run LaTeX more than once. If you want an automated bibliography you will also have to run bibtex.When this procedure is complete you will have a file myfile.dvi to print out. This is a device independent representation of your document which can be displayed by clicking on the icon or using the xdvi program.
| | xfig | computing help | |