<< Adding more text | LyX Graphical Tour | Mathematical formulas >>
| Okay, we added a bit more fluff. Now let's prepare to include a figure. |  |  |
| Select, Insert->Floats |  |
| and "Figure" in the submenu |  |
| and a floating object will appear on the screen. |  |
| Type the caption behind the "Figure #:" label. |  |
| Now add the actual figure by putting the cursor at the beginning of the caption, hitting return (to add a line above the caption) and clicking Insert->Graphics. The Graphics dialog pops up. |  |
| Use the file browser to find your EPS file. BTW: LyX supports several graphic formats and converts them automagically to the one needed by LaTeX or PDFTeX. |  |
| In the dialog, you can set scaling (50% of the page width), rotations (0 = none) and more to fit your needs. |  |
| LyX will render the figure on screen. |  |  |
| Suppose we want to refer to this figure in the text. The barbarian way to do it would be to label the figure "Figure 1" and type "Figure 1" in the text. If you then added a figure before this one, you're stuck relabeling everything. LyX has a sophisticated cross-referencing system, so you don't have to go through that. Simply put the cursor at the end of the caption, click on Insert->Label, |  |
| and type in a label key. A gray box with "fig:platy" appears in the caption to indicate that the figure has been labeled. This does not appear in the printed version. |  |
| Now find the sentence where you want to refer to the figure, and say something like "see Figure ". Note the space. Now click on Insert->Cross Reference. |  |
| Select "Insert Reference" to have LyX refer to the figure number. A new gray box indicating the reference appears. You never have to tell LyX that this is figure 1, it counts for you. With the convention "fig:something", LyX is even more clever: it will automagically insert complex references like "figure 1.2 on page 6" |  |  |
| Let's now insert a table. Select Insert->Tabular Material |  |
| and select the number of rows and columns you want. A little matrix appears in your document. |  |
| Simply type in the elements using the mouse or cursor keys to navigate between the boxed. |  |  |
| Suppose you don't want all those lines in the table. Right-click on the table and a table dialog pops up. |  |
| In the Borders tab, you can manipulate the border buttons until you get what you want... |  |
| ... e.g. this. |  |  |
<< Adding more text | LyX Graphical Tour | Mathematical formulas >>