Chapter 1 Introduction

1.2 What the Tutorial is and what it is not

1.2.1 Getting the most out of the Tutorial

1.2.2 What you will not find

Chapter 2 Getting started with LyX

2.1 Your first LyX document

Note that once you have got more than one document open, you can use the View menu or the document tabs to switch between them.

If you want to cheat, or check what you have done, there is also a file called example_lyxified.lyx which contains the same text written and typeset by a LyX master.

2.1.1 Typing, Viewing, and Exporting

2.1.2 Simple Operations

Undo LyX has multiple levels of undo, which means you can undo everything you have done since your current editing session started, by selecting Edit⇒Undo (toolbar button image: 3C__Program_Files__x86__LyX_2_0_Resources_images_undo.png) over and over again. If you undo too much, just select Edit⇒Redo (toolbar button image: 4C__Program_Files__x86__LyX_2_0_Resources_images_redo.png) to get it back.

Cut/Paste/Copy Use Edit⇒Cut (toolbar button image: 5C__Program_Files__x86__LyX_2_0_Resources_images_cut.png), Edit⇒Copy (toolbar button image: 6C__Program_Files__x86__LyX_2_0_Resources_images_copy.png), and Edit⇒Paste (toolbar button image: 7C__Program_Files__x86__LyX_2_0_Resources_images_paste.png image: 7C__Program_Files__x86__LyX_2_0_Resources_images_paste.png) to cut, copy, and paste. Or automatically paste selected text (including selections from other programs) with the middle mouse button. Find/Replace Use Edit⇒Find & Replace (toolbar button image: 8C__Program_Files__x86__LyX_2_0_Resources_images_dialog-show_findreplace.png) to search. In the dialog, search with the Find Next button, and use the Replace button to replace a word you have found.

image: 9C__Program_Files__x86__LyX_2_0_Resources_images_dialog-show_character.png

If you like, you can specify whether to make the search case-sensitive, or to search for only complete words; you can also search backwards through the document. Character Formatting You can emphasize text (which will by default print characters in italics), set it in bold face, in Noun Style (usually small caps, used for people's names), or use your own formatting by using the Edit⇒Text Style dialog (toolbar button ). Toolbar There are buttons on the toolbar (just below the menus) which allow you to do some of the more popular functions, such as Paste and Print.

2.1.3 WYSIWYM: Whitespace in LyX

2.2 Environments

2.2.1 Sections and Subsections

Be sure to use Section and not Section*, which will be covered below. LyX numbers the section “1” and typesets the section heading (title) in a larger font. Now hit Return Note that the Environment box changes from “Section” back to “Standard”. Section headings, like most environments, are assumed to end when you type Return Type the document introduction:

2.2.2 Lists and sublists

image: 12C__Program_Files__x86__LyX_2_0_Resources_images_layout_Enumerate.png

and choose Enumerate from the Environment box ( ). Pow! As we mentioned, if you add or delete a list item, LyX will fix the numbering.

(List) from the rest of the paragraph. If you want to have more than one word in the definition, then separate the words with Protected Spaces.

2.2.3 Other environments: Verses, Quotations, and more

) is written in a typewriter font; this environment is the only place in LyX where you are allowed to use multiple spaces to allow code indenting. You can even write poetry using the Verse style, using Return to separate stanzas, and Ctrl+Return to separate lines within a stanza. See the User's Guide for more complete descriptions of all of the available LyX environments.

Chapter 3 Writing Documents

3.1 Document Classes

takes care of these large scale differences between different sorts of documents. This Tutorial, for example, was written in the Book document class. Document classes are another major part of the WYSIWYM philosophy; they tell LyX how to typeset the document, so you do not need to know how.

Try changing to other document classes (using the Document⇒Settings dialog) to see how they are typeset differently. If you change your document to the Book document class and look at the Environment box, you will see that most of the allowed environments are the same. However, you can now use the Chapter environment. If you are ever unsure about which environments you can use in a given document class, just consult the Environment box.