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

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

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

revision 1.12 by wl, Mon Sep 13 15:57:39 2004 UTC revision 1.13 by wl, Mon Jan 24 08:23:21 2005 UTC
# Line 89  that take Line 89  that take
89                  <li><a href="#INLINE_KERNING_MOM">Pairwise kerning</a>                  <li><a href="#INLINE_KERNING_MOM">Pairwise kerning</a>
90                  <li><a href="#INLINE_HORIZONTAL_MOM">Horizontal movement</a>                  <li><a href="#INLINE_HORIZONTAL_MOM">Horizontal movement</a>
91                  <li><a href="#INLINE_VERTICAL_MOM">Vertical movement</a>                  <li><a href="#INLINE_VERTICAL_MOM">Vertical movement</a>
92                    <li><a href="#B">Terminate a line without advancing on the page</a>
93                    <li><a href="#TB+">Call the next sequential tab without advancing on the page</a>
94                  <li><a href="#INLINE_RULE_MOM">Full measure rules</a>                  <li><a href="#INLINE_RULE_MOM">Full measure rules</a>
95          </ul>          </ul>
96          <li><a name="INLINES_GROFF"><strong>Groff inline escapes</strong></a>          <li><a name="INLINES_GROFF"><strong>Groff inline escapes</strong></a>
# Line 389  Both <strong>\*[ALD]</strong> and <stron Line 391  Both <strong>\*[ALD]</strong> and <stron
391  points, hence you mustn't use a unit of measure.  points, hence you mustn't use a unit of measure.
392  <p>  <p>
393    
394    <!---INLINE_B_MOM--->
395    
396    <hr width="66%" align="left">
397    <a name="B"><h3><u>Terminate a line without advancing on the page</u></h3></a>
398    
399    <p>
400    Sometimes, you want <strong>mom</strong> to break a line but not
401    advance on the page.  See
402    <a href="typesetting.html#EL_EXAMPLE">here</a>
403    for an example of when you might want to do this.
404    <p>
405    In versions of <strong>mom</strong> prior to 1.2-f, this was
406    accomplished through the use of
407    <a href="typesetting.html#EL">EL</a>.
408    As of 1.2-f, you can, if you prefer, accomplish the same thing
409    by using the inline escape, <strong>\*[B]</strong>.  Simply
410    attach the escape to the end of any line.  Using the example
411    given in the document entry for <strong>EL</strong>, you'd use
412    <strong>\*[B}</strong> like this:
413    
414    <p>
415    <pre>
416            .LEFT
417            .LS 12.5
418            A line of text.\*[B]
419            .ALD 24p
420            The next line of text.
421    </pre>
422    
423    <strong>\*[B]</strong> works reliably regardless of the current
424    <a href="definitions.html#TERMS_FILLED">fill mode</a>.
425    <p>
426    
427    <!---INLINE_TB+_MOM--->
428    
429    <hr width="66%" align="left">
430    <a name="TB+"><h3><u>Call the next sequential tab without advancing on the page</u></h3></a>
431    
432    <p>
433    Sometimes, you want <strong>mom</strong> to move to the next tab in
434    sequence (e.g. from TAB 1 to TAB 2, or TAB 8 to TAB 9) without
435    <strong>mom</strong> advancing on the page.  (See the example in
436    <a href="typesetting.html#NOTE_TN">here</a>
437    if you're not clear how <strong>mom</strong> manages tabs and
438    linebreaks.)
439    <p>
440    In versions of <strong>mom</strong> prior to 1.2-f, this was
441    accomplished through the use of
442    <a href="typesetting.html#TN">TN</a>.
443    As of 1.2-f, you can, if you prefer, accomplish the same thing
444    by using the inline escape, <strong>\*[TB+]</strong>.  Simply
445    attach the escape to the end of any line in a tab, like this:
446    
447    <p>
448    <pre>
449            .TAB 1
450            Some text\*[TB+]    \" This line is in tab 1
451            Some more text      \" This line is in tab 2, on the same baseline as tab 1
452    </pre>
453    
454    <strong>\*[TB+]</strong> works reliably regardless of the current
455    <a href="definitions.html#TERMS_FILLED">fill mode</a>.
456    <p>
457    
458  <!---INLINE_RULE_MOM--->  <!---INLINE_RULE_MOM--->
459    
460  <hr width="66%" align="left">  <hr width="66%" align="left">
# Line 418  or Line 484  or
484  <a href="typesetting.html#JUSTIFY">JUSTIFY</a>),  <a href="typesetting.html#JUSTIFY">JUSTIFY</a>),
485  it requires a  it requires a
486  <a href="typesetting.html#BR">.BR</a>  <a href="typesetting.html#BR">.BR</a>
487  on the line immediately before it; in  on the line immediately before it; otherwise, the rule will be drawn
488    on the same baseline occupied by any type preceding it.  In
489  <a href="definitions.html#TERMS_NOFILL">nofill modes</a>  <a href="definitions.html#TERMS_NOFILL">nofill modes</a>
490  (i.e  (i.e
491  <a href="typesetting.html#LRC">LEFT</a>,  <a href="typesetting.html#LRC">LEFT</a>,
# Line 665  a number of other line-drawing escapes, Line 732  a number of other line-drawing escapes,
732  typographically precise drawing is a bit like hammering in a nail  typographically precise drawing is a bit like hammering in a nail
733  with a screwdriver -- doable, but not recommended.  with a screwdriver -- doable, but not recommended.
734  <p>  <p>
735  Groff comes with a number of &quot;preprocessors&quot; designed to ease  Groff comes with a number of &quot;preprocessors&quot; designed
736  creating rules, boxes, splines, and so on (tbl, pic, and friends), but  to ease creating rules, boxes, splines, and so on (tbl, pic,
737  I tend not to use them.  A firm believer in the &quot;right tool for  and friends), but I tend not to use them.  A firm believer
738  the job,&quot; I prefer a vector drawing program (in my case, tgif)  in the &quot;right tool for the job,&quot; I prefer a vector
739  when I need to combine type with graphic elements (say, a complex  drawing program when I need to combine type with graphic elements
740  ruled form).  Inserting the results into a document is easy enough  (say, a complex ruled form).  Inserting the results into a
741  with <strong>.PSPIC</strong> (consult the <strong>groff_tmac</strong>  document is easy enough with <strong>.PSPIC</strong> (consult
742  man page for information on this indispensable and easy-to-use macro).  the <strong>groff_tmac</strong> man page for information on this
743    indispensable and easy-to-use macro).
744  <p>  <p>
745    
746  <!---INLINE_CHARACTERS_GROFF--->  <!---INLINE_CHARACTERS_GROFF--->

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

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