Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

MultipleLyxCodeInSingleEnumerate

Categories: Enumerate
<< | Page list | >>

Example of entering a nested list by keyboard

We want to enter something that looks like the screenshot to the right:

How can we do this using the following environments (paragraph styles): Enumerate, Standard and Lyx-Code?

The sequence of keys below assume that you are using the cua.bind for your keyboard shortcuts.

Note: The text within quotes should be typed verbatim, and | is used to indicate the position of the cursor.

Note: This is only one way to enter this example, other ways work too.

Note: In LyX 1.6 (Shift+)Tab key was introduced for de/increasing of nesting.

Instructions

Typing M-p e, "Open the file" and Enter gives you the first item in the list.
Then type "Locate the line:" and Enter to get the beginning of the second item. The screen should look like this:

1. Open the file
2. Locate the line:
3. |

Type M-p Right to increase the depth and M-p c to change to the Lyx-Code environment, leaving the cursor like this:

1. Open the file
2. Locate the line:

	|

Then write "foo --widget=blub" and use M-Enter to get a new line, where you write "bar > /dev/null" and press Enter. We now have:

1. Open the file
2. Locate the line:

	foo --widget=blub
	bar > /dev/null

   |

where we are still in the environment Lyx-Code. Changing to Standard (M-p s) moves the cursor left, so increase the depth (M-p Right) and then write "and change it to" followed by M-Enter so that we don't change the depth. Now change to Lyx-Code (the cursor will move to the right) and we now have:

1. Open the file
2. Locate the line:

	foo --widget=blub
	bar > /dev/null

   and change it to:

	|

Now write "foo --widget=blah", M-Enter, "foo --widget=blah" and Enter. We now have:

1. Open the file
2. Locate the line:

	foo --widget=blub
	bar > /dev/null

   and change it to:

       foo --widget=blah
       bar > /dev/null 2>&1

   |

where we are in the Lyx-Code environment. Therefore change to Enumerate (M-p e) and write "Save the file" to finish the job.

1. Open the file
2. Locate the line:

	foo --widget=blub
	bar > /dev/null

   and change it to:

       foo --widget=blah
       bar > /dev/null 2>&1

3. Save the file|

/Christian (screenshot by Karsten)

Enumerate

Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2008-10-20 23:34 UTC