Changes

Jump to: navigation, search

LaTeX

2,990 bytes added, 22:34, 3 January 2019
Undo revision 5553 by [[Special:Contributions/imported>Pew|imported>Pew]] ([[User talk:imported>Pew|talk]])
'''LaTeX''' is a markup language and typesetting system for producing high-quality documents. The X symbol is supposed to represent the Greek character chi, making the proper pronunciation lah-tech or lay-tech. ==Sample LaTeX Stub==<pre>\documentclass{article} \usepackage{fullpage} \author{Hokie Hackman}\title{My Favorite Class\\Homework 1} \begin{document} \maketitle \end{document}</pre> ==Formatting Assignments==LaTeX is probably the best tool available for typesetting documents involving math. Below are some pointers on formatting school assignments. ===Smaller Margins===The <code>article</code> class defaults to rather large margins. An easy way to make the margins smaller is to include the <code>fullpage</code> package.<pre>\documentclass{article}\usepackage{fullpage}\begin{document}Hello, and welcome to a paragraph that begins much closer than usual to the left side of the page.\end{document}</pre> ===Upper Right-Hand Corner===For some assignments you may be required to put your name, ID number, the date, or other elements at the top right-hand corner of the first page. The <code>flushright</code> environment can accomplish this.<pre>\documentclass{article}\begin{document}\begin{flushright}Hokie Hackman\\905001337\\My Favorite Class\\\today\end{flushright}\end{document}</pre> ===Nonsequential Enumerated Items===The <code>enumerate</code> environment is useful for numbered lists, and while the <code>enumerate</code> offers a quick way to change the counter for a whole list of sequential items, no extra package is necessary to number <code>\item</code>s individually. Passing an argument to each <code>\item</code> is probably the easiest way to number homework problems that aren't sequential in LaTeX.<pre>\documentclass{article}\begin{document}\begin{enumerate}\item[4.10] What is $1+1$? \[ 1+1=2 \] \item[4.12] What are the first two prime numbers? The first two prime numbers are two and three. \item[4.25] In what year was the Free Software Foundation formed? The FSF was founded in 1985. \end{enumerate}\end{document}</pre> ===Karnaugh Maps===There are a couple k-map packages available. We should document which one is better, and what it's packaged with (science?). ==Spell Checking==The following command can be used to spell check (La)TeX documents. aspell -c -t document.tex ==Error Messages==* The line with the bang (<code>!</code>) on it is the error message.* The number after <code>l.</code> is the line number where the error occurred. ===Extra alignment tab has been changed to \cr===<pre>! Extra alignment tab has been changed to \cr.<template> \egroup \endtemplate</pre> This can happen when a line of your eqnarray is missing its endline mark: <code>\\</code>. ===Missing $ inserted===<pre>! Missing $ inserted.<inserted text></pre> This can happen when you leave out a closing inline equation mark: <code>$</code>. [[Category:Campus_computing_resources]][[Category:Howtos]][[Category:Pending deletionSoftware]]

Navigation menu