KTUGFaq
KTUG FAQ
FrontPage › PlainTeX/diffLaTeX
Wynter Snow, '''TeX for the Beginner'''¿¡ ¼Ò°³µÇ¾î ÀÖ´Â PlainTeX °ú LaTeXÀÇ Â÷ÀÌ¿¡ ´ëÇÑ ÄÚ¸àÆ®µéÀ» ¿ì¼± ¸ð¾Ò½À´Ï´Ù. »ó´ëÀûÀ¸·Î Áß¿äÇÏ´Ù°í »ý°¢µÇ´Â °Í¿¡ Ç¥½Ã¸¦ Çß½À´Ï´Ù.
- \bye does not exist in LaTeX. Instead, use \end{document}.
- In LaTeX, both \{ and \} can be used directly in text and do not have to be in math mode. LaTeX does the right thing if you do put them in math mode --- so if you plan to use both TeX and LaTeX, it helps to do things the same way in both systems.
- For LaTeX, type latex daisies instead of tex daisies.
- In LaTeX, the Waiting Patiently Bug appears when you forget to say \end{document} at the end of you text file. This bug can also appear if you forgot to close some earlier environment --- so that LaTeX uses \end{document} instead of \end{environment}. To fix this bug, type \end{document} instead of \bye when you see the single-asterisk prompt.
- LaTeX has an additional set of error messages for LaTeX-specific glitches, and their appearance is slightly different from TeX¡®s error messages. However, LaTeX also uses TeX¡¯s question mark prompt (?) and single-asterisk prompt (*), so the responses you make are the same in LaTeX and in TeX.
- LaTeX¡®s \overfullrule is 0in. The \hfuzz is still a small dimension, but the black overfull boxes are invisible. If you want to see the overfull box, you can use the draft option in the \documentclass or change the \overfullrule.
- LaTeX uses \\ as a line-breaking macro. Therefore, if you want to make an abbreviation for \backslash, use something like \bfsl instead of \\.
- LaTeX solved this problem with a macro called \newcommand. \newcommand also makes a newcontrol sequence, but first it checks to see if a control sequence already exists with the name you want to use.
- If you need to change the definition of an existing macro in LaTeX, use LaTeX¡®s \renewcommand.
- Lamport changed \input so that you can put braces around its input. This makes \input consistent with other LaTeX commands.
- You can use LaTeX¡®s \include macro instead of \input. If the existension is not .tex, specify that as well.
1 The small caps and sans serif fonts already exist in LaTeX. The control sequences for them are \sc for Small Caps, and \sf for sans serif (our \ssf font).
- LateX has two methods of getting larger or smaller fonts. If you want text fonts of a different size, give \documentclass an option. To change to a larger or smaller font within your document, use the size-changing macros.
- LaTeX does not have \magnification.
- Use \setlength, LaTeX¡®s dimension-changing macro, to change the \parindent. Type \setlength{\parindent}{2em}. You can change \parindent anywhere in your document.
- To change the width of the text in LaTeX (the \hsize of your paragraphs), use \setlength to change the \textwidth.
- To change the \hoffset in LaTeX, use \setlength to change \oddsidemargin and \evensidemargin. The \textwidth, \oddsidemargin, \evensidemargin should be changed only in preamble.
- Use LaTeX¡®s \addtolength macro to add something to a dimension reporter.
- You can use LaTeX¡¯s sloppy environment for one or more paragraphs instead of changing TeX¡®s \tolerance.
- To change the height of the text in LaTeX, use \setlength to change LaTeX¡®s \textheight.
- Use \setlength to change the \parskip.
- You can use \setlength to change the \baselineskip, and you can do this anywhere in your document. However, the best way of changing the baselines in LaTeX is to redefine \baselinestretch with \renewcommand.
- LaTeX has two macros for putting white space on the page: \hspace and \vspace.
- LaTeX already has a \newpage macro.
- Instead of \eol, use LaTeX¡®s \newline, \\, or \linebreak macros. \newline behaves exactly like \eol. LaTeX defines \\ differently among the various environments, so that it performs the correct actions for breaking the line at that point.
- LaTeX¡®s \linebreak macro behaves like TeX¡¯s \break, except that \linebreak can take an optional argument. \linebreak[0] to \linebreak[4].
- LaTeX uses a system of environments to make special paragraph shapes. Thus, for quotations, use a quote or quotation environment. To make a new environment, use LaTeX¡®s \newenvironment macro.
- \long is built into LaTeX¡®s \newcommand, so inputs to your new macros can have more than one paragraph.
- \item is completely different in LaTeX. Lamport redefined \item so that it is available only in the itemize, enumerate, description, list and trivlist environments. Outside those, \item does not exist.
- \headline, \footline and \folio do not exist in LateX. To change the header or footer in a document, use the \pagestyle declarations.
- The minus \pageno technique does not exist in LaTeX. For roman-numeral page numbers in LaTeX, type \pagenumbering{roman}.
- LaTeX¡®s \footnote macros is different from TeX¡¯s \footnote macro.
- \vfootnote does not exist in LaTeX. However, LaTeX uses \footnotemark and \footnotetext to accomplish the same purpose.
- You can use \halign in LaTeX, or you can use LaTeX's tabular environment. I personally find TeX's \halign far more flexible than LaTeX's tabular environment, but many people prefer the convenience of using tabular.
- To change the blue between columns in LaTeX's tabular environment, change the \tobcolsep, which is half the width of the space between columns.
- To specify a width for a table, use LaTeX's tabular* environment and put glue in some of the columns. To add this intercolumn glue, use \extracolsep inside an @{text} in the cols input for tabular.
- To change the space between rows in LaTeX's tabular environment, change the \arraystretch instead of using \openup.
- LaTeX has a \multicolumn macro for placing headings in special places.
- LaTeX has its own system for adding rule to tables in its tabular environment.
- In LaTeX, use \(...\) or \begin{math} ... \end{math} to use math mode. These two sandwich-style methods make sure you do not get a Math Oops Mode Bud. However, both are what LaTeX calls fragile.
- To use display math mode in LaTeX, use \...\ or the displaymath environment. These are both fragile. Also, LaTeX's flushleft equation system does not work if you use TeX's $$ toggles instead of LaTeX's \...\ or displaymath environment.
- Lamport redefined \{ and \} so they can also be used outside of math mode.
- LaTeX uses the same symbols and spacing rules as TeX.
- Do not use \root in LaTeX. Instead, give \sqrt an optinal argument.
- In LaTeX, use \stackrel instead of \buildrel. The \stackrel macro takes two inputs.
- LaTeX has a macro called \frac that takes two inputs: the numerator and denominator, it makes a fraction.
- LaTeX has an array environment. It is similar to the tabular environment but creates a \matrix instead of an \halign.
- You can also use LaTeX's equation environment to make an automatically numbered displayed formula. LaTeX's equation environment automatically starts display math mode.
- \eqalign does not exist in LaTeX. Use the eqnarray or eqnarray* environments instead. The eqnarray environment automatically generates equation numbers; the eqnarray* environment does not. Both eqnarray and eqnarray* automatically start display math mode.
- \eqalignno and \leqalignno do not exist in LaTeX. Use eqnarray environment instead.
- LaTeX has several macros that create special kinds of boxes. See \mbox, \makebox, \fbox, \framebox, \parbox and the minipage environment.
- LaTeX's \mbox macro is equivalent to \leavevmode\hbox
- LaTeX's \makebox and \framebox can take optional inputs that control their width. \parbox and minipage environment both require an input that specifies their width. \raisebox can take two optional inputs for its height and depth.
- LaTeX's \line is a macro that draws a line in the picture environment. It has no relationship at all to plainTeX's \line macro.
- \leftline, \rightline, and \centerline do work correctly in LaTeX. Lamport defined another macro that he uses instead of \line for his definitions of these three box-making macros.
- LaTeX's \raggedbottom does not create a Ragged Top Bug.
Ragged Top Bud : \raggedbottom increases the \topskip glue by plus 60pt. Thus, when TeX is forced to stretch the finite glue on the page, this includes the \topskip glue.
ÁÁÀº Á¤º¸ °¨»çÇÕ´Ï´Ù. --ÀÛÀº³ª¹«