Difference between revisions of "Command/but"

From Wiki
Jump to navigation Jump to search
(Removed {reference cleanup})
 
(16 intermediate revisions by 5 users not shown)
Line 13: Line 13:
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==
 
== Description ==
Obsolete command.
+
This command resembles \item but produces an interactive symbol that executes the reference
 +
sequence specified.
  
 
== Example ==
 
== Example ==
<!-- Please fill in an example if you can -->
+
An example adapted from [http://www.urz.uni-heidelberg.de/TeX/texmfdoc/context/demos/d-en-all.pdf ConTEXt demo suite]:
 +
 
 +
<texcode>
 +
\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
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
<!-- something like {{cmd|goto}} -->
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|but]]
+
[[Category:Command/Interaction|but]]

Latest revision as of 10:54, 19 November 2021

\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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: