Return to top of page
TeX is pronounced "Tech" with a hard "ch" as in Technology.
Authors gave their typed manuscripts to a publisher. One of the publishers' book designers then decided the layout of the document. The designer writes his instructions in the manuscript and gives it to the typesetter and the typesetter sets the book according to these instructions.
LaTeX takes the role of the designer and uses TeX as its typesetter. However, since LaTeX is a program the author has to give it more guidance. The author has to provide additional information describing the the logical structure of his work. These are the LaTeX commands that are written into the file.
When using LaTeX it is not normally possible to see the final output while typing the text but the final output can be previewed on screen after processing the file with LaTeX.
LaTeX is not a word processor. A LaTeX file is a text file that is readable to the human eye. You can create it with any editor. It contains the text of the document and the the commands that LaTeX how to typeset the text.
Return to top of page
# $ % - & _ { } ! \
Return to top of page
Return to top of page
\documentclass{...}\usepackage{...}
\begin{document}
\end{document} anything after this will be ignored.
Return to top of page
.tex
.dvi file. It may be necessary to compile it several times to get things correct.
Return to top of page
Return to top of page
\usepackage [options]{package}
Return to top of page
The link below will allow you to download the source file. Hold your control key down and then click on the link:
linux.txt
Return to top of page
cp linux.txt linux.tex
vim linux.tex
Shift 'o'
\documentclass[letterpaper, 11pt]{article}
Hit the "Escape" key (esc) to go into command mode
Return to top of page
Type an upper case 'O':
Shift 'o'
%define the title
Hit the "Escape" key (esc) to go into command mode
o
\author{YOUR NAME HERE}
Hit the "Escape" key (esc) to go into command mode
'i'
\title{
Hit the "Escape" key (esc) to go into command mode
$
'a'
}
Hit the "Escape" key (esc) to go into command mode
:w
o
\begin{document}
Hit the "Escape" key (esc) to go into command mode
o
% generates the title
\maketitle
Hit the "Escape" key (esc) to go into command mode
o
\maketitle
Hit the "Escape" key (esc) to go into command mode
i
\section{
Hit the "Escape" key (esc) to go into command mode
$
a
}
Hit the "Escape" key (esc) to go into command mode
\subsection{}
tex linux.tex
dvipdfm linux1.dvi linux1
Return to top of page
%insert the table of contents
\tableofcontents
To create a table in the document search for the word "Equivalent". When you are at that table we will add the following commands:
\begin{tabular}{|l|l|l|}
\hline Command & Description & DOS/Windows Equivalent\\\hline
awk & File processing and report generating & N/A\\
\hline
\hline
cd & Change directory & cd or double-clicking a folder\\
\hline
cp & Copy a file & copy or dragging a file\\
\hline
file & Determine file type & file extension or right-click properties\\
\hline
find & Find a file & Windows Explorer Find\\
\hline
grep & Find lines in a file & N/A\\
\hline
ln & Link a file to another file & Create Shortcut\\
\hline
\tabular
\begin{tabular} [pos] {table spec} command.
\begin{tabular} is of course your LaTeX command.
\begin{tabular}{|r|l|}
\hline
750.00 & Rent \\
250.00 & Car Note \\
300.00 & Food \\
\hline \hline
1300 & Total\\
\hline
\end{tabular}
%insert the list of tables
\listoftables
\listoffigures
\footnote{ITS HPC and USS created this document.}
~\cite{pa}
\begin{thebibliography}{15}\bibitem{pa} ~Linus Torvalds: The Story of Linus Torvalds (1988) \end{thebibliography}
\usepackage{makeidx}
\makeindex
\index{key} command.
-
\index{word,format}
- See the lshort.pdf for a definition of formats that can be specified.
- This is the easy part. When you finish your document you have to:
- Compile the document twice.
-
latex linux
-
latex linux
- Then use the makeindex package:
-
makeindex linux
- Now compile the document again:
-
latex linux
-
dvipdfm linux1.dvi
- Nifty!
Return to top of page
Mail to: Kathryn R. Traxler