LaTeX for Secretaries
Before you send files generated by LaTeX to a printer or a fax modem, they need to be converted to the right format. Fortunately, all distributions of Linux come with a set of conversion utilities that can handle this job without too much human intervention—you just give them the name of a file and they do the rest:
dvi2fax: turns DVI files into fax format, making it possible to send them via a fax modem.
dvilj: turns DVI files into Hewlett-Packard LaserJet format. Even if your printer is not made by HP, it can probably still understand or emulate LaserJet commands. All you have to do is switch it into HP LJ emulation mode, which should be described in the printer's manual. Some printers can switch into that mode automatically.
dvilj2p: the DVI to Hewlett-Packard LaserJet 2p format converter (similar to dvilj).
dvilj4: the DVI to Hewlett-Packard LaserJet 4 format converter (similar to dvilj).
dvips: turns DVI files into PostScript format, allowing them to be printed on an Adobe PostScript compatible printer.
If you want to print the example letter, type:
dvilj businessletter.dviand then:
lpr businessletter.ljIf nothing happens (you did remember to switch the printer on, didn't you?), type lpq and see if the name of your document is on a list there; if you get a “no entries” message, then your machine is probably not set up properly for printing. In that case, ask the system administrator or the service person for help. Sometimes the printer receives the document, but waits after receiving each page for you to press the Print or On-line button. This depends on the printer, but a good rule of thumb is if the Data light is on or blinking and the Print or On-Line lights are off or blinking, then pressing one of them will solve the problem.
Also, on some printers you will need to feed an additional page at the end—it will come out blank, and you can reuse it.
So far, converting Microsoft Word files to LaTeX is a bit difficult. There are several strategies, but none of them will make you perfectly happy. To convert a Word file to LaTeX, you can:
Save the MS Word file as a TEXT or an ASCII file. You will lose all formatting, pictures, drawings, linked and embedded documents, but you will at least get the text in a format that can be read by Emacs and LaTeX.
Save the MS Word file as an RTF file and use either catdoc or word2x command to turn a DOC file into a LaTeX file. (Type man catdoc or man word2x to learn more about their use and options. If man does not work, try info.) You will lose some of the formatting information, but most of it will be preserved, making your job a little easier.
If you need to convert a LaTeX document into a DOC file, try the following method:
Use delatex (or detex) to convert a LaTeX file into a plain text (ASCII) file:
delatex businessletter.latex >\
businessletter.txt
Compare the output with the original file, and if necessary, remove some of the commands and add missing text. These converters do not yet work as we need them to, unfortunately.
Open the TXT file in Word; you will then be asked if you want to convert it from a text format. Click Yes, apply formatting as it is needed and choose the Save as... item from the File menu. In the Save as dialog, choose the Word document option and click Save.
That is just about everything you will need to start using LaTeX in an office. Of course, there is more to learn and I recommend you use the locate 'lshort2e.dvi' command to see if you can find the “Not So Short Introduction to LaTeX2e”. It is a well-written LaTeX manual filled with many interesting examples.
All examples from this article can be found on the Internet at the site www.wszechnica.safenet.pl/archiwum/lfors.htm.
If any of the commands or programs mentioned above aren't available on your system, ask the administrator to install them and give you the necessary permissions to use them. All of those tools should be available for any Linux distribution.
Jacek Artymiak is a consultant specializing in helping companies and individuals use Linux as a desktop or personal system for common, everyday jobs. His other occupations include being a writer, journalist, web designer, computer graphics artist and programmer. Readers are welcome to send their comments via electronic mail to artymiak@safenet.pl or visit http://www.wszechnica.safenet.pl/.
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 |
- Designing Electronics with Linux
- Dynamic DNS—an Object Lesson in Problem Solving
- Making Linux and Android Get Along (It's Not as Hard as It Sounds)
- OpenOffice.org Off-the-Wall: ToCs, Indexes and Bibliographies in OOo Writer
- Kinect with Linux
- Mediated Reality: University of Toronto RWM Project
- New Products
- Validate an E-Mail Address with PHP, the Right Way
- Readers' Choice Awards 2011
- Paranoid Penguin - Managing SSH for Scripts and cron Jobs
- General
17 min 46 sec ago - Kernel Problem
10 hours 20 min ago - BASH script to log IPs on public web server
14 hours 47 min ago - DynDNS
18 hours 23 min ago - Reply to comment | Linux Journal
18 hours 55 min ago - All the articles you talked
21 hours 19 min ago - All the articles you talked
21 hours 22 min ago - All the articles you talked
21 hours 23 min ago - myip
1 day 1 hour ago - Keeping track of IP address
1 day 3 hours 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.