documentclass{name} begin{document} TEXT GOES HERE! end{document} You should

documentclass{name} begin{document} TEXT GOES HERE! end{document} You should replace {name} with the name of the class of document you are creating. Valid document classes include article, book, letter, report, and slides. The text for the file, along with your formatting commands, goes between the begin and end document commands. The best way to get started with LaTeX is to use the LyX editor. LyX provides a GUI for creating LaTeX documents. It also contains a variety of templates you can use instead of just creating a document from scratch. Figure 6-8 shows an example of the LyX editor. Figure 6-8: Create LaTeX documents graphically with the LyX editor. Note The LyX editor doesn t come with the Red Hat Linux distribution on the CD-ROMs that accompany this book. You can find an RPM package for LyX from the LyX FTP site at ftp://ftp.lyx.org/pub/lyx/bin. Besides needing to have several tetex packages installed, to install LyX you will also need the xforms package (which is available from the Lyx.org FTP site). If you want to edit LaTeX in a regular text editor, you need to be familiar with the LaTeX commands. For a complete listing of the LaTeX commands, type $ info latex and then go to the section Commands within a LaTeX document. Using the LyX LaTeX Editor You can start the LyX LaTeX editor with the lyx command (probably located in /usr/bin/lyx). LyX comes with a lot of supporting documentation. Click Help to select a Tutorial, User’s Guide, Reference Manual, or other information. To start your first document, I recommend that you select one of the templates provided with LyX. Templates are located in /usr/share/lyx/templates. To open a template, click File New from template, and select Templates. There are templates available for a letter, technical paper, and a Linux document, to name a few. Besides offering standard editing functions, such as cut, copy and paste, you can perform a variety of markup functions from the Layout menu. You can change character fonts, paragraph alignment and spacing, and document features (such as columns, drivers, and page styles). From the Insert menu, you can import Encapsulated PostScript pictures, tables, and different file types (including ASCII and LyX files). As for mathematical functions, the Math menu enables you to insert fractions, square root, exponent, sum, and integral functions into your document. When you are done, you can: Print the file to a PostScript printer or output a PostScript (.ps) file. (Click File Print, select the printing method, and then click OK.)
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.

Leave a Reply