LaTeX for Secretaries
To start LaTeX, type this at the prompt:
latex businessletter.latex
After you press the ENTER key, LaTeX will print some cryptic messages, two of which are most important: Output written on businessletter.dvi... and Transcript written on businessletter.log. Your letter is output into a DVI (device independent) file, a universal format, which you can turn into fax, PostScript or printer files.
If there are problems, LaTeX will sometimes stop in the middle of its work and ask you for help. When that happens, make a note of the line number at which the error has been found, then keep tapping the ENTER key until you see the “Transcript written on” message or the command prompt. Then run xdvi, and after visually finding the place where the error occurred, go back to Emacs and correct your mistake. Usually it will be a missing bracket or a misspelled command.
The best way to find errors and check the document's look before you print it is to use the xdvi previewer. It works only in the X Window System. To start it, you either choose it from a menu or type xdvi businessletter.dvi & on a command line in a terminal window and press the ENTER key.
Using xdvi is easy. The buttons on the right-hand side of a window are fairly self-explanatory, and you can press the PAGEUP/PAGEDOWN keys to flip pages back and forth or use the arrow-up/arrow-down keys to scroll the page you are looking at up and down (the scroll bars work just like in MS Windows, although with a two-button mouse, you will have to press both buttons to use them). Pressing the Q key exits xdvi.
The most common errors that can be found just by looking at a page in xdvi are the overfull boxes and sudden changes in font and style. These errors usually happen when you forget to obey some of the following rules of typesetting in LaTeX:
Each paragraph must by separated from another by a blank line (just tap the ENTER key twice at the end of a paragraph).
No matter how many spaces you put between words, LaTeX will treat them as one space and will format it according to its own typesetting rules. (You might change this behaviour, as described in the section “Overriding LaTeX Rules” below.)
Quotation marks are made using ` and ' or “ and ” instead of ", so to typeset ''funny'', you'll need to type ''Funny'' instead of "funny".
Ellipsis (...) is printed with the \ldots command; consequently, to typeset bye..., you ought to type bye\ldots and not bye....
LaTeX commands should be separated from the actual text. We achieve that in one of the following ways:
that begins above]
bye, bye\ldots my love (note: the \ character starts a command and therefore does not need to be separated with a space, also see the list of special characters below).
bye, bye\ldots{ }my love.
LaTeX interprets some characters as special, and to print them literally, we need to use a special command instead. See list in “Special LaTeX Characters”.
Commands can be nested, i.e., you can put one or more commands within curly brackets of another, e.g., extsf{life is \emph{wonderful}!}.
LaTeX is very good at documenting its work and puts a lot of information, including error messages, into a log file. For businessletter.latex, it will be called businessletter.log. Every error is described there as best as LaTeX can, together with a line number, which helps to quickly find the right place in a file.
Although the visual method of finding errors with the help of xdvi is probably best for a beginner, there is one category of bugs that requires a different approach—the famous Overfull box. LaTeX produces that message when it cannot properly break a line of text or hyphenate a word, which happens quite often when trying to print a long web page address.
The quickest way of finding those messages is by using grep:
grep Overfull businessletter.log | less
After issuing the above command in an Xterm window, you will see either an empty window (a good thing) or a list of lines where LaTeX has put the ominous word. Go back to Emacs, find the offending lines, then use xdvi to judge how to best fix your document.
Realizing the promise of Apache® Hadoop® requires the effective deployment of compute, memory, storage and networking to achieve optimal results. With its flexibility and multitude of options, it is easy to over or under provision the server infrastructure, resulting in poor performance and high TCO. Join us for an in depth, technical discussion with industry experts from leading Hadoop and server companies who will provide insights into the key considerations for designing and deploying an optimal Hadoop cluster.
Sponsored by AMD
Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6
Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.
Learn more about catching the bad guy in this free white paper.
Sponsored by DLT Solutions
| Designing Electronics with Linux | May 22, 2013 |
| Dynamic DNS—an Object Lesson in Problem Solving | May 21, 2013 |
| Using Salt Stack and Vagrant for Drupal Development | May 20, 2013 |
| Making Linux and Android Get Along (It's Not as Hard as It Sounds) | May 16, 2013 |
| Drupal Is a Framework: Why Everyone Needs to Understand This | May 15, 2013 |
| Home, My Backup Data Center | May 13, 2013 |
- I once had a better way I
3 min 5 sec ago - Not only you I too assumed
20 min 28 sec ago - another very interesting
2 hours 13 min ago - Reply to comment | Linux Journal
4 hours 6 min ago - Reply to comment | Linux Journal
11 hours 59 sec ago - Reply to comment | Linux Journal
11 hours 17 min ago - Favorite (and easily brute-forced) pw's
13 hours 8 min ago - Have you tried Boxen? It's a
19 hours 15 sec ago - seo services in india
23 hours 31 min ago - For KDE install kio-mtp
23 hours 32 min ago




Comments
Life is not fair, is it? You
Life is not fair, is it? You learned how to use Microsoft Word or Corel WordPerfect, only to find yourself at a job where your boss says you must use LaTeX.
If you think that's not fair, just imagine the other way around, I assure you it is a true nightmare.