Difference between revisions of "Command/but"
< Command
Jump to navigation
Jump to search
Yatskovsky (talk | contribs) m (→Syntax) |
m (formatting) |
||
Line 22: | Line 22: | ||
<texcode> | <texcode> | ||
− | \setuppapersize | + | \setuppapersize [S6][S6] |
− | [S6][S6] | ||
\setuplayout | \setuplayout | ||
− | [header=0cm, | + | [header=0cm, |
− | topspace=.5cm, | + | topspace=.5cm, |
− | backspace=2cm, | + | backspace=2cm, |
− | margindistance=.5cm, | + | margindistance=.5cm, |
− | margin=1cm, | + | margin=1cm, |
− | rightmargin=0cm, | + | rightmargin=0cm, |
− | rightedge=2cm, | + | rightedge=2cm, |
− | edgedistance=.5cm, | + | edgedistance=.5cm, |
− | width=fit, | + | width=fit, |
− | footer=1cm, | + | footer=1cm, |
− | height=middle] | + | height=middle] |
\setupinteraction | \setupinteraction | ||
− | [state=start, | + | [state=start, |
− | style=, | + | style=, |
− | color=, | + | color=, |
− | contrastcolor=, | + | contrastcolor=, |
− | menu=on, | + | menu=on, |
− | title=ConTeXt Demo Suite, | + | title=ConTeXt Demo Suite, |
− | author=Hans Hagen] | + | author=Hans Hagen] |
\definecolor [DarkGray] [s=.6] | \definecolor [DarkGray] [s=.6] | ||
Line 51: | Line 50: | ||
\setupinteractionmenu | \setupinteractionmenu | ||
− | [right] | + | [right] |
− | [background=color, | + | [background=color, |
− | backgroundcolor=LightGray, | + | backgroundcolor=LightGray, |
− | frame=off, | + | frame=off, |
− | state=start] | + | state=start] |
\startinteractionmenu[right] | \startinteractionmenu[right] |
Revision as of 18:27, 11 April 2010
\but
Syntax
\but[ref] | |
[ref] |
Description
This command resembles \item but produces an interactive symbol that executes the reference sequence specified.
Example
An example adapted from ConTEXt demo suite:
\setuppapersize [S6][S6] \setuplayout [header=0cm, topspace=.5cm, backspace=2cm, margindistance=.5cm, margin=1cm, rightmargin=0cm, rightedge=2cm, edgedistance=.5cm, width=fit, footer=1cm, height=middle] \setupinteraction [state=start, style=, color=, contrastcolor=, menu=on, title=ConTeXt Demo Suite, author=Hans Hagen] \definecolor [DarkGray] [s=.6] \definecolor [MediumGray] [s=.8] \definecolor [LightGray] [s=.9] \setupinteractionmenu [right] [background=color, backgroundcolor=LightGray, frame=off, state=start] \startinteractionmenu[right] \but [content] contents \\ \but [sample] sample \\ \but [PreviousJump] back \\ \but [CloseDocument] exit \\ \vfill \stopinteractionmenu