Course
Main course page
|
Homework
Homework assignments
|
LaTeX OAQ
List of "once asked questions" about LaTeX, with answers.
|
|
|
|
|
|
|
LaTeX OAQ
We will compile questions and answers relating to LaTeX here. A question
need not be asked "frequently", so this is a list of Once Asked Questions.
-
How do I start a new paragraph?
A blank line signals a new paragraph to LaTeX. More strictly speaking
you need two carriage returns in a row.
-
How do I get a "typewriter font" for cryptosystem input and
output?
Use \texttt{thisistypewriterfont} to get thisistypewriterfont.
If you have special symbols which will be mixed in as well, then use
\verb+This has {special} characters+ or \verb|This has {special} characters|.
With \verb, you get to pick the symbol which marks the beginning
and end of the verbatim text. Here we used + and then |. The only rules on
this are that the start and end symbols must be one character long, they have
to match each other, and it cannot be a symbol used inside the verbatim
text itself.
-
How do I know when to use {} for grouping?
The simplest is to use them when you have an argument to a command, like
\frac{x+1}{x-1}. Without the braces, LaTeX would use only one character.
Most people use them in almost all cases, except for subscripts and
superscripts. These are so common that most people omit the braces
when there is more than one character to be included.
|
|