PPTools/Ppgen/Tutorial/NFBlocks

From DPWiki
< PPTools‎ | Ppgen
Jump to navigation Jump to search

Blocks of text are a group of lines treated as one element. Each line is separate and each line is left-aligned within the block. Text does not wrap. The entire block can be positioned at the left margin, in the center of the page, or at the right margin.

Note: The PP Guidelines point out that text that cannot be rewrapped should be indented from the left margin by at least 1 space. If you use ".nf l" (no-fill, left-aligned) blocks it is your responsibility to ensure either that the indentation is set properly by ".in" or that any rewrapping by users of the books would not cause problems. Therefore, when using ".nf l" blocks you should consider specifying something like ".in 1" before the ".nf l" directive and ".in" after the ".nf-" directive. You might find it convenient to use a macro to do that. Or, if you have ppgen 3.49h or later you can use a directive like ".nr nfl 1" to set an automatic indentation for ".nf l" blocks.

simple, single-stanza poetry

Rfrank-06220911.png

Source Code

 Tempor dolorem docendi ea cum, id inermis adolescens est. Cu
 unum duis maiorum sed, ei ius posse vitae. At modus animal
 nusquam nam, id sumo idque his. No eam munere libris minimum.
 .nf b
 Ere yet the dawn has streak'd the eastern skies,
 Ere yet the lark has sung her morning lay,
 Early, upon that sacred day, arise,
 That thou may'st pass it in a pious way;
 .nf-
 Ne per integre ceteros. Animal appareat honestatis pro in, nec
 ipsum solet an, nec cu nusquam deterruisset. Ut eam platonem
 assentior, altera utamur discere id quo, quem natum.

simple multiple-stanza poetry with indents.

Rfrank-06220912.png

Source Code

 Et oratio dissentiet sit, ei hinc zril nominavi has, et vel amet
 idque quaestio. Pro eu detracto evertitur expetendis, iudico
 aliquid ea ius. Harum mentitum os ex, sea nibh tamquam moderatius.
 .nf b
 Ere yet the dawn has streak'd the eastern skies,
   Ere yet the lark has sung her morning lay,
 Early, upon that sacred day, arise,
     That thou may'st pass it in a pious way;
 'Tis not a day in listless sleep to waste,
   'Tis not a day, to lie in bed supine,
 But 'tis a day, by Christians to be past
     In ev'ry act and exercise divine!
 .nf-
 Sit ut voluptua insolens, ea graeci percipit vis. Id ceteros
 tractatos iracundia nec, ex aeque tantas iudicabit sit. No ius
 novum timeam democritum, offendit gloriatur id usu, aliquando
 constituam ei mea.

multi-line heading. signature block. stanzas.

Rfrank-06220913.png

Source Code

 Nam cetero verear posidonium at. At sea audiam definiebas. Mel ei
 omnium conceptam, diam simul vix et, id vidisse similique nec. Ex
 graecis detraxit instructior eam. Mei movet deserunt repudiandae
 in, eam et diceret suavitate.
 .nf c
 On
 THE BIBLE
 .nf-
 .nf b
 Let avarice from shore to shore
     Her fav'rite God pursue;
 Thy Word, O Lord, we value more
     Than India or Peru.
 Here mines of knowledge, love, and joy,
     Are open'd to our sight;
 The purest gold without alloy,
     And gems divinely bright.
 The counsels of redeeming grace,
     These sacred leaves unfold;
 And here the saviour's lovely face
     Our raptur'd eyes behold.
 Here, light descending from above
     Directs our doubtful feet:
 Here promises of heav'nly love
     Our ardent wishes meet.
 Our num'rous griefs are here redrest,
     And all our wants supply'd;
 Nought we can ask to make us blest,
     Is in this Book deny'd.
 For these inestimable gains,
     That so enrich the mind;
 O may we search with eager pains,
     Assur'd that we shall find!
 .nf-
 .rj
 D^{r}. Stennett.
 .ce
 <s><i>London, Published by R. Miller, Old Fish Street, Doctors Commons.</i></s>
 Reque philosophia ad eam, duo movet clita ex, pri elit zril graeci
 eu. Et adolescens voluptatibus ius. At nihil percipit scripserit
 vim, omnis possit vivendo has ex. Falli error corpora sit et,
 illud omnium omittantur no has.

no-fill, left

Rfrank-06220914.png

Source Code

 .nf l
 INDEX
   Colorspaces
     monochrome #82#
     greyscale #110#
     indexed color #124#
   Image metrics
     density #130#
     aspect-ratio #147#
 .nf-

no-fill: left, .ce heading. signature.

Rfrank-06220915.png

Source Code

 Eu placerat praesent contentiones usu, vel diam utroque
 vituperatoribus ex, fugit insolens partiendo an eum. Ex legere
 intellegam mei, cu utinam mediocritatem per, te vim inani
 petentium. Errem melius in mel. Usu et minim.
 .ce
 A Test
 .nf l
 It happen'd on a solemn eventide
   Soon after he that was our surety died,
 Two bosom friends, each pensively inclin'd.
   The scene of all those sorrows left behind.
 .nf-
 .rj
 R. J. Tibbets
 Et eos nullam adolescens, ex qui agam malis soleat. Vis cu
 singulis instructior, ad alii paulo clita his. Mea an elitr
 utroque, pro novum nostrud singulis ei. Cum virtute graecis te,
 has eu error dictas molestiae.

no-fill:right, no-fill:left, poetry, all in an indented block

Rfrank-06220916.png

Source Code

 A perplexed look showed on his sun-burned face. Turning back to
 the first page, he began to read the closely written epistle over
 once more.
 .in +4
 .ll -4
 .nf r
 Road Trip Enterprises
 8902 E. Briarwood Dr.
 Elbert, CO 80158
 March 31, 2014
 .nf-
 .nf l
 Union Carbide Corporation
 1 Carbon Court
 Pittsburgh, PA 15277
 .nf-
 The first paragraph of a typical business letter is used to state
 the main point of the letter. Begin with a friendly opening; then
 quickly transition into the purpose of your letter. Use a couple
 of sentences to explain the purpose, but do not go in to detail
 until the next paragraph.
 Beginning with the second paragraph, state the supporting details
 to justify your purpose. These may take the form of background
 information, statistics or first-hand accounts. A few short
 paragraphs within the body of the letter should be enough to
 support your reasoning.
 .ce
 A Test
 .nf b
 It happen'd on a solemn eventide
   Soon after he that was our surety died,
 Two bosom friends, each pensively inclin'd.
   The scene of all those sorrows left behind.
 .nf-
 .rj
 R. J. Tibbets
 Finally, in the closing paragraph, briefly restate your purpose
 and why it is important. If the purpose of your letter is
 employment related, consider ending your letter with your contact
 information. However, if the purpose is informational, think about
 closing with gratitude for the reader's time.
 .nf r
 Sincerely,
 Thomas Newcomb
 Director of Western Travel
 .nf-
 .in -4
 .ll +4
 Evidently there was something in it that caused Mr. Dacre
 considerable astonishment. His reading of the missive was not
 quite completed, however, when the sudden sound of fresh, young
 voices caused him to glance upward.

title page centered text

Rfrank-06220917.png

Source Code

 .nf c
 <l>THE</l>
 <l>BUNGALOW BOYS</l>
 <l>IN THE GREAT NORTHWEST</l>
 BY
 <l>DEXTER J. FORRESTER</l>
 <s>AUTHOR OF "THE BUNGALOW BOYS," "THE BUNGALOW</s>
 <s>BOYS MAROONED IN THE TROPICS," ETC., ETC.</s>
 .sp 4
 NEW YORK
 <l>HURST & COMPANY</l>
 PUBLISHERS
 .nf-