/[groff]/groff/contrib/mom/momdoc/typesetting.html
ViewVC logotype

Diff of /groff/contrib/mom/momdoc/typesetting.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by wlemb, Sat Aug 28 15:41:31 2004 UTC revision 1.12 by wl, Mon Sep 13 15:57:39 2004 UTC
# Line 30  Line 30 
30                  <li><a href="#INTRO_BASIC_PARAMS">Introduction to Basic Parameters</a>                  <li><a href="#INTRO_BASIC_PARAMS">Introduction to Basic Parameters</a>
31                  <li><a href="#INDEX_BASIC">List of macros</a>                  <li><a href="#INDEX_BASIC">List of macros</a>
32          </ul>          </ul>
33          <li><strong>JUSTIFYING, QUADDING, FILLING, BREAKING LINES</strong>          <li><strong>JUSTIFYING, QUADDING, FILLING, BREAKING and JOINING LINES</strong>
34          <ul>          <ul>
35                  <li><a href="#INTRO_JUST_QUAD_FILL">Introduction to justify, quad, fill, break</a>                  <li><a href="#INTRO_JUST_QUAD_FILL">Introduction to justify, quad, fill, break</a>
36                  <li><a href="#INDEX_JUST">List of macros</a>                  <li><a href="#INDEX_JUST">List of macros</a>
# Line 111  the same thing. Line 111  the same thing.
111  package, independent of the  package, independent of the
112  <a href="docprocessing.html#DOCPROCESSING">document processing macros</a>.  <a href="docprocessing.html#DOCPROCESSING">document processing macros</a>.
113  With them, you can typeset on-the-fly.  Book covers, your best  With them, you can typeset on-the-fly.  Book covers, your best
114  friend's résumé, a poster for a lost dog --none of these requires  friend's résumé, a poster for a lost dog--none of these requires
115  structured document processing (page headers, paragraphs, heads,  structured document processing (page headers, paragraphs, heads,
116  footnotes, etc).  What they do demand is precise control over every  footnotes, etc).  What they do demand is precise control over every
117  element on the page.  The typesetting macros give you that control.  element on the page.  The typesetting macros give you that control.
# Line 768  For inline control of fonts, see Line 768  For inline control of fonts, see
768  <a href="inlines.html#INLINE_FONTS_MOM">Inline Escapes, font control</a>.  <a href="inlines.html#INLINE_FONTS_MOM">Inline Escapes, font control</a>.
769  <p>  <p>
770  <a name="FONT_NOTE"></a>  <a name="FONT_NOTE"></a>
771  <strong>NOTE: Mom, versions 1.1.9-a</strong> and higher,  <strong>NOTE: mom, versions 1.1.9-a</strong> and higher,
772  considerably extends the range of arguments you can pass to  considerably extends the range of arguments you can pass to
773  <strong>FT</strong>, making it more convenient to add and access  <strong>FT</strong>, making it more convenient to add and access
774  fonts of differing  fonts of differing
775  <a href="definitions.html#TERMS_WEIGHT">weights</a>  <a href="definitions.html#TERMS_WEIGHT">weights</a>
776  and  and
777  <a href="definitions.html#TERMS_SHAPE">shapes</a>  <a href="definitions.html#TERMS_SHAPE">shapes</a>
778  within the same family.  Have a look at the Appendices,  within the same family.  Have a look
779  <a href="appendices.html#STYLE_EXTENSIONS">Adding PostScript fonts to groff</a>,  <a href="appendices.html#STYLE_EXTENSIONS">here</a>
780  for a list of the weight/style arguments <strong>mom</strong>  for a list of the weight/style arguments <strong>mom</strong>
781  allows.  allows.
782  <p>  <p>
# Line 1102  for an explanation. Line 1102  for an explanation.
1102                  <li><a href="#SPACE">SPACE</a> (break a line and add space before the next output line)                  <li><a href="#SPACE">SPACE</a> (break a line and add space before the next output line)
1103                  <li><a href="#SPREAD">SPREAD</a> (break and force-justify an output line)                  <li><a href="#SPREAD">SPREAD</a> (break and force-justify an output line)
1104          </ul>          </ul>
1105          <li><strong>Joining lines</strong>          <li><strong>Joining input lines in
1106            <a href="definitions.html#TERMS_NOFILL">nofill mode</a></strong>
1107          <ul>          <ul>
1108                  <li><a href="#JOIN">\c</a> inline escape                  <li><a href="#JOIN">\c</a> inline escape
1109          </ul>          </ul>
# Line 1272  You can use either, or mix 'n' match wit Line 1273  You can use either, or mix 'n' match wit
1273  Macro: <strong>EL</strong>  Macro: <strong>EL</strong>
1274  <br>  <br>
1275  <em>*In nofill modes (LEFT, RIGHT, CENTER), you must terminate the  <em>*In nofill modes (LEFT, RIGHT, CENTER), you must terminate the
1276  line preceding EL with the \c inline escape.  Furthermore, in  line input preceding EL with the </em><kbd>\c</kbd><em> inline
1277  nofill modes, EL does not work after the PAD macro.  See the  escape.  See
1278  <a href="#EL_NOTES">NOTES</a>,  <a href="#EL_NOTES">NOTES</a>,
1279  below.</em>  below.
1280    <br>
1281    Furthermore, in nofill modes, EL does not work after the PAD macro.
1282    See
1283    <a href="#EL_EXCEPTION">Exception</a>
1284    for a workaround</em>.
1285  <p>  <p>
1286  The mnemonic "EL" is borrowed from old Compugraphic typesetting  The mnemonic "EL" is borrowed from old Compugraphic typesetting
1287  systems, where it stood for "End Line."  Conceptually,  systems, where it stood for "End Line."  Conceptually,
# Line 1302  instead of calculating the lead that nee Line 1307  instead of calculating the lead that nee
1307  get 24.  To demonstrate:  get 24.  To demonstrate:
1308  <p>  <p>
1309  <pre>  <pre>
1310            .LEFT
1311          .LS 12.5          .LS 12.5
1312          A line of text.          A line of text.\c
1313          .EL          .EL
1314          .ALD 24p          .ALD 24p
1315          The next line of text.          The next line of text.
# Line 1312  get 24.  To demonstrate: Line 1318  get 24.  To demonstrate:
1318  may be more intuitive than  may be more intuitive than
1319  <p>  <p>
1320  <pre>  <pre>
1321            .LEFT
1322          .LS 12.5          .LS 12.5
1323          A line of text.          A line of text.
1324          .ALD 11.5p          .ALD 11.5p
# Line 1371  If <strong>EL</strong> is used after mos Line 1378  If <strong>EL</strong> is used after mos
1378  (see the exception, below), you don't have to worry about this,  (see the exception, below), you don't have to worry about this,
1379  regardless of the fill mode.  Just type <kbd>.EL</kbd>  regardless of the fill mode.  Just type <kbd>.EL</kbd>
1380  <p>  <p>
1381    <a name="EL_EXCEPTION"></a>
1382  <strong>Exception: EL</strong> does not work after the  <strong>Exception: EL</strong> does not work after the
1383  <a href="goodies.html#PAD">PAD</a>  <a href="goodies.html#PAD">PAD</a>
1384  macro when you're in a nofill mode.  If you require  macro when you're in a nofill mode.  If you require
# Line 1379  in a nofill mode, you have to perform it Line 1387  in a nofill mode, you have to perform it
1387  &quot;manually&quot;, e.g.  &quot;manually&quot;, e.g.
1388  <p>  <p>
1389  <pre>  <pre>
1390          .CENTER      \" CENTER is a nofill mode          .CENTER    \" CENTER is a nofill mode
1391          .PAD "#\*[ST1]A line of text\*[ST1X]#"          .PAD "#\*[ST1]A line of text\*[ST1X]#"
1392          .TRAP OFF  -+          \#
1393          .SP -1v     | - a "manual" EL          .TRAP OFF  \" -+
1394          .TRAP      -+          .SP -1v    \"  |--> this is a "manual" EL
1395            .TRAP      \" -+
1396            \#
1397          .ST 1 L          .ST 1 L
1398          .TAB 1          .TAB 1
1399          .ALD 2p          .ALD 2p
# Line 1405  Alias: <strong>SP</strong> Line 1415  Alias: <strong>SP</strong>
1415  <p>  <p>
1416  <strong>SPACE</strong> breaks a line, just like  <strong>SPACE</strong> breaks a line, just like
1417  <strong>BR</strong>, then adds space after the line.  With no  <strong>BR</strong>, then adds space after the line.  With no
1418  argument, it adds an extra line space.  If you pass it a numeric  argument, it adds an extra line space of a value equal to the
1419  argument without supplying a  current
1420    <a href="definitions.html#TERMS_LEADING">leading</a>.
1421    If you pass it a numeric argument without supplying a
1422  <a href="definitions.html#TERMS_UNITOFMEASURE">unit of measure</a>,  <a href="definitions.html#TERMS_UNITOFMEASURE">unit of measure</a>,
1423  it advances that number of extra line spaces.  For example:  it advances that number of extra line spaces.  For example:
1424  <p>  <p>
# Line 1424  breaks the line and adds two extra lines Line 1436  breaks the line and adds two extra lines
1436    
1437  <p>  <p>
1438  If you supply a unit of measure, <strong>SPACE</strong> breaks the  If you supply a unit of measure, <strong>SPACE</strong> breaks the
1439  line then adds the specified amount of extra space to the current  line then advances one linespace (at the current
1440  linespace, as in  <a href="definitions.html#TERMS_LEADING">leading</a>)
1441    PLUS the specified amount of extra space given to
1442    <strong>SPACE</strong>,
1443    as in
1444  <p>  <p>
1445  <pre>  <pre>
1446          .SPACE 6p          .SPACE 6p
1447  </pre>  </pre>
1448    
1449  which breaks the line then adds six points of space to the current  which breaks the line and advances one full linespace plus six
1450  linespace.  points.
1451    
1452  <p>  <p>
1453  <strong>SUGGESTION: SPACE</strong> and  <strong>SUGGESTION: SPACE</strong> and
# Line 1525  Please also note that had the example be Line 1540  Please also note that had the example be
1540  <a href="definitions.html#TERMS_FILLED">fill modes</a>,  <a href="definitions.html#TERMS_FILLED">fill modes</a>,
1541  there'd have been no need for the <strong>\c</strong>.    there'd have been no need for the <strong>\c</strong>.  
1542  <p>  <p>
1543    <strong>Addendum:</strong> The example, above, is designed to
1544    demonstrate the use of <strong>\c</strong>.  However, an easier and
1545    more intuitive way to accomplish the family/font change in the
1546    example would be with the groff
1547    <a href="definitions.html#TERMS_INLINES">inline escape</a>,
1548    <a href="inlines.html#INLINE_FONTS_GROFF">\f</a>.
1549    <p>
1550    <pre>
1551            Some lines of text to be \f[HB]joined\*[PREV] together.
1552    </pre>
1553    <p>
1554  <hr>  <hr>
1555    
1556  <!====================================================================>  <!====================================================================>
# Line 1755  you could turn <strong>HY</strong> off b Line 1781  you could turn <strong>HY</strong> off b
1781  <strong>HY</strong> observes the following default hyphenation rules:  <strong>HY</strong> observes the following default hyphenation rules:
1782  <br>  <br>
1783  <ol>  <ol>
1784          <li>Last lines (i.e. ones that will spring a trap -- typically          <li>Last lines (i.e. ones that will spring a trap--typically
1785          the last line on a page) will not be hyphenated.          the last line on a page) will not be hyphenated.
1786          <li>The first and last two characters of a word are never          <li>The first and last two characters of a word are never
1787          split off.          split off.
# Line 2113  be missing an italic font, or a bold fon Line 2139  be missing an italic font, or a bold fon
2139  to get your hands on a condensed family.  That's where these macros  to get your hands on a condensed family.  That's where these macros
2140  and inline escapes come in.  With them, you can fake the fonts  and inline escapes come in.  With them, you can fake the fonts
2141  you're missing.  A word of caution, though: &quot;faked&quot;  you're missing.  A word of caution, though: &quot;faked&quot;
2142  fonts are just that -- faked.  You should only use them as a  fonts are just that--faked.  You should only use them as a
2143  last resort, and then only sparingly.  A word or two or a line  last resort, and then only sparingly.  A word or two or a line
2144  or two in a faked font will pass unnoticed; large patches of  or two in a faked font will pass unnoticed; large patches of
2145  type in a faked font look typographically cheap.  type in a faked font look typographically cheap.
# Line 3518  Macro: <strong>MCO</strong> Line 3544  Macro: <strong>MCO</strong>
3544  is the macro you use to begin multi-column setting.  It marks  is the macro you use to begin multi-column setting.  It marks
3545  the current  the current
3546  <a href="definitions.html#TERMS_BASELINE">baseline</a>  <a href="definitions.html#TERMS_BASELINE">baseline</a>
3547  as the top of your columns, for use late with  as the top of your columns, for use later with
3548  <a href="#MCR">MCR</a>.  See the  <a href="#MCR">MCR</a>.  See the
3549  <a href="#MULTI_COLUMNS">introduction to columns</a>  <a href="#MULTI_COLUMNS">introduction to columns</a>
3550  for an explanation of multi-columns and some sample  for an explanation of multi-columns and some sample

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26