Difference between revisions of "Command/setupmakeup"
< Command
Jump to navigation
Jump to search
m (Text replace - "Reference/en|" to "Commands|") |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 14: | Line 14: | ||
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:width|width]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:height|height]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:voffset|voffset]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:hoffset|hoffset]]</td> |
− | <td>[[ | + | <td>[[Command/value:dimension|dimension]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:page|page]]</td> |
− | <td>[[ | + | <td>[[Command/value:left|left]] [[Command/value:yes|yes]] [[Command/value:right|right]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:commands|commands]]</td> |
− | <td>[[ | + | <td>[[Command/value:command|command]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:doublesided|doublesided]]</td> |
− | <td>[[ | + | <td>[[Command/value:yes|yes]] [[Command/value:no|no]] [[Command/value:empty|empty]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:headerstate|headerstate]]</td> |
− | <td>[[ | + | <td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:footerstate|footerstate]]</td> |
− | <td>[[ | + | <td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:textstate|textstate]]</td> |
− | <td>[[ | + | <td>[[Command/value:normal|normal]] [[Command/value:stop|stop]] [[Command/value:start|start]] [[Command/value:empty|empty]] [[Command/value:none|none]] [[Command/value:nomarking|nomarking]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:topstate|topstate]]</td> |
− | <td>[[ | + | <td>[[Command/value:stop|stop]] [[Command/value:start|start]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:bottomstate|bottomstate]]</td> |
− | <td>[[ | + | <td>[[Command/value:stop|stop]] [[Command/value:start|start]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Command/keyword:pagestate|pagestate]]</td> |
− | <td>[[ | + | <td>[[Command/value:stop|stop]] [[Command/value:start|start]] </td> |
</tr> | </tr> | ||
<tr valign="top" class="second"> | <tr valign="top" class="second"> | ||
− | <td class="cmd">[[ | + | <td class="cmd">[[Style_and_Color_Parameters|color]]</td> |
− | <td>[[ | + | <td>[[Command/value:name|name]] </td> |
+ | </tr> | ||
+ | <tr valign="top" class="second"> | ||
+ | <td class="cmd">[[Style_and_Color_Parameters|style]]</td> | ||
+ | <td>[[Command/value:name|name]] </td> | ||
</tr> | </tr> | ||
</table> | </table> | ||
Line 78: | Line 82: | ||
It is a page type with a special layout / header & footer sections that last only temporarily. The key point is that such a page does not (have to) rely on the current page layout style, which is especially useful for title pages. | It is a page type with a special layout / header & footer sections that last only temporarily. The key point is that such a page does not (have to) rely on the current page layout style, which is especially useful for title pages. | ||
+ | |||
+ | By default the page layout set up with <code>\setuplayout</code> is being reused. However, a custom page layout can be used as well. <code>\definemakeup</code> automatically uses a layout defined with <code>definelayout</code> with the same name as the makeup. | ||
+ | |||
+ | There are two different ways to switch to the defined makeups: | ||
+ | |||
+ | <texcode> | ||
+ | \startmakeup [custom] | ||
+ | … some content … | ||
+ | \stopmakeup | ||
+ | </texcode> | ||
+ | |||
+ | and | ||
+ | |||
+ | <texcode> | ||
+ | \startcustommakeup | ||
+ | … some content … | ||
+ | \stopcustommakeup | ||
+ | </texcode> | ||
== Example == | == Example == | ||
− | < | + | |
+ | <texcode> | ||
+ | % this layout is automatically used by the “custom” makeup | ||
+ | \definelayout | ||
+ | [custom] | ||
+ | [backspace=5mm] | ||
+ | |||
+ | \definemakeup | ||
+ | [custom] | ||
+ | |||
+ | \starttext | ||
+ | |||
+ | \startmakeup [custom] | ||
+ | \input ward | ||
+ | \stopmakeup | ||
+ | |||
+ | \input knuth | ||
+ | |||
+ | \startcustommakeup | ||
+ | \input ward | ||
+ | \stopcustommakeup | ||
+ | |||
+ | \stoptext | ||
+ | </texcode> | ||
+ | |||
== See also == | == See also == | ||
* [[Makeup]], | * [[Makeup]], | ||
* [[source:page-mak.mkiv|source]]. | * [[source:page-mak.mkiv|source]]. | ||
+ | |||
+ | == Help from ConTeXt-Mailinglist/Forum == | ||
+ | All issues with: | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
[[Category:Commands|setupmakeup]] | [[Category:Commands|setupmakeup]] |
Revision as of 21:11, 26 August 2013
\setupmakeup
Syntax
\setupmakeup[...][...,...=...,...] | |
[...] | name |
width | dimension |
height | dimension |
voffset | dimension |
hoffset | dimension |
page | left yes right |
commands | command |
doublesided | yes no empty |
headerstate | normal stop start empty none nomarking |
footerstate | normal stop start empty none nomarking |
textstate | normal stop start empty none nomarking |
topstate | stop start |
bottomstate | stop start |
pagestate | stop start |
color | name |
style | name |
Description
A makeup is a separate page, like a title page or colofon. There is one standard makeup page, but you can define more if needed.
It is a page type with a special layout / header & footer sections that last only temporarily. The key point is that such a page does not (have to) rely on the current page layout style, which is especially useful for title pages.
By default the page layout set up with \setuplayout
is being reused. However, a custom page layout can be used as well. \definemakeup
automatically uses a layout defined with definelayout
with the same name as the makeup.
There are two different ways to switch to the defined makeups:
\startmakeup [custom] … some content … \stopmakeup
and
\startcustommakeup … some content … \stopcustommakeup
Example
% this layout is automatically used by the “custom” makeup \definelayout [custom] [backspace=5mm] \definemakeup [custom] \starttext \startmakeup [custom] \input ward \stopmakeup \input knuth \startcustommakeup \input ward \stopcustommakeup \stoptext
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: