Difference between revisions of "Command/setupfancybreak"

From Wiki
Jump to navigation Jump to search
m (Created page with "{{Reference |name=setupfancybreak |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd">\set...")
 
m
Line 12: Line 12:
 
     <td class="cmd">[[Command/keyword:style|style]]</td>
 
     <td class="cmd">[[Command/keyword:style|style]]</td>
 
     <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td>
 
     <td>[[Command/value:normal|normal]] [[Command/value:bold|bold]] [[Command/value:slanted|slanted]] [[Command/value:boldslanted|boldslanted]] [[Command/value:type|type]] [[Command/value:small...|small...]] [[Command/value:command|command]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:align|align]]</td>
 +
    <td>inherits from {{cmd|setupalign}}</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
Line 24: Line 28:
 
     <td class="cmd">[[Command/keyword:spaceinbetween|spaceinbetween]]</td>
 
     <td class="cmd">[[Command/keyword:spaceinbetween|spaceinbetween]]</td>
 
     <td>inherits from {{cmd|blank}}</td>
 
     <td>inherits from {{cmd|blank}}</td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:symbol|symbol]]</td>
 +
    <td>IDENTIFIER</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">

Revision as of 20:10, 16 April 2015

\setupfancybreak

Syntax

\setupfancybreak[...,...=...,...]
style normal bold slanted boldslanted type small... command
align inherits from \setupalign
spacebefore inherits from \blank
spaceafter inherits from \blank
spaceinbetween inherits from \blank
symbol IDENTIFIER
color IDENTIFIER
indentnext yes | no | auto

Description

Allows customization of fancy paragraph breaks.

Examples

This section provides some example usages.

Simple

A simple usage might resemble:

\usemodule[fancybreak]
\setupfancybreak[symbol=star]

\starttext
  Paragraph
  \fancybreak
  Paragraph
\stoptext

This produces:

internal error: copy error iLzuys/cropped.pdf

Environment

An example that uses the environment to draw a custom separator:

\usemodule[fancybreak]
\useMPlibrary[txt]
\setupMPvariables[EnglishRule][width=.6\hsize]
\setupfancybreak[spacebefore=line,spaceafter=line]

\starttext
The Earth, as a habitat for animal life, is in old age ...
\startfancybreak
\dontleavehmode\useMPgraphic{EnglishRule}
\stopfancybreak
The Earth, as a habitat for animal life, is in old age ...
\stoptext

This produces:

internal error: copy error DZ5Vvr/cropped.pdf

See Also

Help from ConTeXt-Mailinglist/Forum

All issues with: