Czech version
logolink

< Back to the list of lessons

Text Processor - Styles II (flow of text, tabulators)

ostatni-gdmContent of the lesson:

  • Elimination of Empty Paragraphs
  • Style for Headlines of the First Level
  • Style for Headlines of the Second Level
  • Checking for Orphans and Widows
  • Styles with Tabulators
  • Generating Content
  • Final Document

Task 1: Elimination of Empty Paragraphs

Use the help inside Open Office and try to find a way to quickly eliminate empty paragraphs inside the document. Realize that you should also remove all double spaces in the text using the same way.

Headlines of First Level

Create a new style mujstyl_nadpis1:

  • Organizer-Name: mujstyl_nadpis1
  • Organizer-Following Style: mujstyl_bezny_text
  • Connected with: mujstyl_bezny_text
  • Font: Myriad Pro (suitable sans-serif or serif font), size 24pt, bold
  • Alignment-Options: Left
  • Indention and Character spacing-First line: 0
  • Indention and Character spacing-Distance-Top: 12pt (1 square or 0,42cm)
  • Indention and Character spacing-Distance-Bottom: 24pt (2 squares or 0,84cm)
  • Flow of Text-Break: Insert, Type Page
  • Effects for Font-Font Size: Upper-case letters

Now you have to go through the whole text and click inside every paragraph which represents the title of a main chapter (click anywhere inside the paragraph). Double click to apply the style mujstyl_nadpis1.

Headlines of Second Level

Create a new style mujstyl_nadpis2:

  • Organizer-Name: mujstyl_nadpis2
  • Organizer-Following Style: mujstyl_bezny_text
  • Connected with: mujstyl_nadpis1
  • Font: Myriad Pro (suitable sans-serif or serif font), size 18pt, bold
  • Alignment-Options: Left
  • Indention and Character spacing-First line: 0
  • Indention and Character spacing-Distance-Top: 12pt (1 square or 0,42cm)
  • Indention and Character spacing-Distance-Bottom: 8pt
  • Flow of Text-Break: DISABLE Insert, Type Page
  • Flow of Text-Options: Leave with the following paragraph
  • Effects for Font-Font Size: Upper-case letters

Now you have to go through the whole text and click inside every paragraph which represents the title of a sub-chapter (click anywhere inside the paragraph). Double click to apply the style mujstyl_nadpis2.

Task 2 - Checking for Orphans and Widows

Try to use the help inside Open Office to find out more information about the terms "orphan" and "widow". You can find an item "check orphans and widows" inside the settings of previously defined style "mujstyl_bezny_text". A good example is the following situation which might occur at more places in our file: dasenka-vzor-vdova.

You can try how easily you can change the properties of text using styles.

Style for the List of "chewed things"

Create a new style mujstyl_seznam for the list of chewed things inside the chapter 4:

This will be a paragraph style which will use the same parameters as the style mujstyl_bezny_text but will differ in several things. This style will have to be able to solve the alignment of numbers and units Kč and also the sequence of dots between the list items and their prices. As you can see in the following image, the formatting of this list is absolutely inappropriate - you should use tabulators instead.

seznam bez stylu
  • Organizer-Name: mujstyl_nadpis2
  • Organizer-Following style: mujstyl_bezny_text
  • Connectet with: mujstyl_bezny_text
  • Tabulators-Right: 10cm, fill with character "......" (and click on New)
  • Tabulators-Decimal: 11,7cm, character ",", fill with character "none" (and click on New)

Our list looks considerably better; nevertheless there is one more typographic error. Which one? Try to find in the Internet how to typeset numbers with more than 3 numbers before the decimal point.

You can insert a horizontal line instead of sequence of dashes (Insert-Horizontal line-Simple).

You can also adjust the number 2900 symbolizing the sum of items from the list. As you know, numbers should be separated after 3 digits with a half non-breakable space. Place the cursor between the digits 2 and 9 and choose the command Insert-Formatting marks-Non-breakable space.

Generating Content

The last task is to generate the content automatically. Place the cursor at the end of text in the first page and insert a new page (Insert-Manual Break-Page break). Then choose the command Insert-Indexes and Tables-Indexes and Tables.

In the bookmark Index/Table set everything as in the following image (the option Create from-Additional styles is very important):

obsah

Then click on the button "..." next to the checked item "Additional styles". A new window will open and you will be able to set (using the arrows) which styles will represent each level of content.

úrovně obsahu

Press "OK" button in all windows and the newly generated content should appear in your document. You have to generate it again after any change inside your document to reflect the real situation (the content is not updated automatically). You can re-generate the content by right clicking on it and selecting the command "Update Index/Table".

The final unfinished document should now look like this file: dasenka-1.pdf.

Individual Task

Consider using the style mujstyl_nadpisy which would be used for deriving all other types of headlines. Would this solution bring any benefits?

Homework

Complete the unfinished document - insert an intro page and solve the typesetting of the last two chapters correctly. Add automatic page numbering.

Try to insert the final document into Microsoft Word and solve the problem of adding non-breakable spaces after single-letter prepositions and conjunctions.

webdesign, xhtml, css, php - Mgr. Michal Mikláš