10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Cookbook A full code sample can be found in the Cookbook topic text_output/tabstops_in_textflow.Note PDFlib’s table feature is recommended for creating complex tables (see Section 7.4, »Table Formatting«,page 164).7.2.5 Numbered Lists and Paragraph SpacingThe following example demonstrates how to format a numbered list using the inlineoption leftindent (see Figure 7.16):1.Long Distance Glider: With this paper rocket you can send allyour messages even when sitting in a hall or in the cinema pretty near the back.2.Giant Wing: An unbelievable sailplane! It is amazinglyrobust and can even do aerobatics. But it is best suited to gliding.3.Cone Head Rocket: This paper arrow can be thrown with bigswing. We launched it from the roof of a hotel. It stayed in the air a long time andcovered a considerable distance.Cookbook Full code samples for bulleted and numbered lists can be found in the Cookbook topicstext_output/bulleted_list and text_output/numbered_list.Setting and resetting the indentation value is cumbersome, especially since it is requiredfor each paragraph. A more elegant solution defines a macro called list. For convenienceit defines a macro indent which is used as a constant. The macro definitions areas follows:1. Long Distance Glider: With this paper rocket you can send all your messageseven when sitting in a hall or in the cinema pretty near the back.2. Giant Wing: An unbelievable sailplane! It is amazingly robust and can even doaerobatics. But it is best suited to gliding.3. Cone Head Rocket: This paper arrow can be thrown with big swing. We launchedit from the roof of a hotel. It stayed in the air a long time and covered aconsiderable distance.The leftindent option specifies the distance from the left margin. The parindent option,which is set to the negative of leftindent, cancels the indentation for the first line of eachparagraph. The options hortabsize, hortabmethod, and ruler specify a tab stop which correspondsto leftindent. It makes the text after the number to be indented with theamount specified in leftindent. Figure 7.17 shows the parindent and leftindent options atwork.1. Long Distance Glider: With this paper rocket you can send all yourmessages even when sitting in a hall or in the cinema pretty near theback.2. Giant Wing: An unbelievable sailplane! It is amazingly robust and caneven do aerobatics. But it is best suited to gliding.3. Cone Head Rocket: This paper arrow can be thrown with big swing. Welaunched it from the roof of a hotel. It stayed in the air a long time andcovered a considerable distance.Fig. 7.16Numbered list7.2 Multi-Line Textflows 147

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!