Difference between revisions of "Command/setupcomment"

From Wiki
Jump to navigation Jump to search
m (cleanup)
(→‎Syntax: changes and additions according to interface/source)
(10 intermediate revisions by 3 users not shown)
Line 10: Line 10:
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:state|state]]</td>
+
     <td class="cmd">[[Command/keyword:state|state]]</td>
     <td>[[Reference/en/value:start|start]] [[Reference/en/value:stop|stop]] </td>
+
     <td>[[Command/value:start|start]] [[Command/value:stop|stop]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:width|width]]</td>
+
     <td class="cmd">[[Command/keyword:method|method]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:normal|normal]] [[Command/value:hidden|hidden]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:height|height]]</td>
+
     <td class="cmd">[[Command/keyword:width|width]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:dimension|dimension]] [[Command/value:fit|fit]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:color|color]]</td>
+
     <td class="cmd">[[Command/keyword:height|height]]</td>
     <td>[[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:dimension|dimension]] [[Command/value:fit|fit]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:title|title]]</td>
+
     <td class="cmd">[[Command/keyword:depth|depth]]</td>
     <td>[[Reference/en/value:text|text]] </td>
+
     <td>[[Command/value:dimension|dimension]] [[Command/value:fit|fit]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:space|space]]</td>
+
     <td class="cmd">[[Command/keyword:nx|nx]]</td>
     <td>[[Reference/en/value:yes|yes]] [[Reference/en/value:no|no]] </td>
+
     <td>[[Command/value:number|number]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:symbol|symbol]]</td>
+
     <td class="cmd">[[Command/keyword:ny|ny]]</td>
     <td>[[Reference/en/value:normal|normal]] [[Reference/en/value:New|New]] [[Reference/en/value:Balloon|Balloon]] [[Reference/en/value:Addition|Addition]] [[Reference/en/value:Help|Help]] [[Reference/en/value:Paragraph|Paragraph]] [[Reference/en/value:Key|Key]] [[Reference/en/value:name|name]] </td>
+
     <td>[[Command/value:number|number]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:option|option]]</td>
+
     <td class="cmd">[[Command/keyword:textlayer|textlayer]]</td>
     <td>[[Reference/en/value:max|max]] [[Reference/en/value:buffer|buffer]] </td>
+
     <td>[[Command/value:name|name]]</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:margin|margin]]</td>
+
     <td class="cmd">[[Command/keyword:location|location]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
     <td>[[Command/value:high|high]] [[Command/value:none|none]] [[Command/value:text|text]] [[Command/value:leftedge|leftedge]] [[Command/value:rightedge|rightedge]] [[Command/value:inmargin|inmargin]] [[Command/value:leftmargin|leftmargin]] [[Command/value:rightmargin|rightmargin]] </td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
     <td class="cmd">[[Reference/en/keyword:distance|distance]]</td>
+
     <td class="cmd">[[Command/keyword:color|color]]</td>
     <td>[[Reference/en/value:dimension|dimension]] </td>
+
    <td>[[Command/value:name|name]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:title|title]]</td>
 +
    <td>[[Command/value:text|text]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:subtitle|subtitle]]</td>
 +
    <td>[[Command/value:text|text]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:author|author]]</td>
 +
    <td>[[Command/value:text|text]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:space|space]]</td>
 +
    <td>[[Command/value:yes|yes]] [[Command/value:no|no]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:symbol|symbol]]</td>
 +
    <td> [[Command/value:Default|Default]] [[Command/value:Comment|Comment]] [[Command/value:Help|Help]] [[Command/value:Insert|Insert]] [[Command/value:Key|Key]] [[Command/value:Newparagraph|Newparagraph]] [[Command/value:Note|Note]] [[Command/value:Paragraph|Paragraph]]  </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:option|option]]</td>
 +
    <td>[[Command/value:max|max]] [[Command/value:xml|xml]] ([[Command/value:buffer|buffer]]?) </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:buffer|buffer]]</td>
 +
    <td>[[Command/value:buffer|buffer]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:distance|distance]]</td>
 +
     <td>[[Command/value:dimension|dimension]] </td>
 +
  </tr>
 +
  <tr valign="top" class="first">
 +
    <td class="cmd">[[Command/keyword:margin|margin]]</td>
 +
    <td>[[Command/value:dimension|dimension]] (MkII?)</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
 +
Set the default settings.
  
 +
== Example ==
 +
<texcode>
 +
\setupcomment[color=blue]
  
 +
Some text to which a comment applies
  
== Example ==
+
\startcomment[symbol=Balloon]
<!-- Please fill in an example if you can -->
+
    This is my comment
 +
\stopcomment
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|startcomment}} to create a PDF comment
 +
* {{cmd|comment}} should also create a PDF comment (might not work in MkII).
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|setupcomment]]
+
[[Category:Command/Interaction|setupcomment]]

Revision as of 18:46, 4 February 2019

\setupcomment

Syntax

\setupcomment[...,...=...,...]
state start stop
method normal hidden
width dimension fit
height dimension fit
depth dimension fit
nx number
ny number
textlayer name
location high none text leftedge rightedge inmargin leftmargin rightmargin
color name
title text
subtitle text
author text
space yes no
symbol Default Comment Help Insert Key Newparagraph Note Paragraph
option max xml (buffer?)
buffer buffer
distance dimension
margin dimension (MkII?)

Description

Set the default settings.

Example

\setupcomment[color=blue]

Some text to which a comment applies

\startcomment[symbol=Balloon]
    This is my comment
\stopcomment

See also

  • \startcomment to create a PDF comment
  • \comment should also create a PDF comment (might not work in MkII).

Help from ConTeXt-Mailinglist/Forum

All issues with: