Bah. It's trivially easy if your output is simple enough.
For plain text, just use blank lines to
separate paragraphs, and put the following line
at the beginning of your output:
.LP
Then, run your output through the following program:
(By default, it will output PostScript in 10-point
Times Roman font. Of course, fonts and sizes can also
be easily changed.)
groff -ms
Was that so hard? But wait, there's more...
If you're interested in putting a box around a paragraph:
.B1
paragraph text
.B2
And in general, lines and boxes are easily created using the
pic
preprocessor. It's automatically invoked by providing the
-p option to groff.
A simple example:
.PS
box "boxed text"; arrow; circle "circled text"
.PE
Don't be afraid.
buckaduck
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.