Difference between revisions of "Command/setuplines"

From Wiki
Jump to navigation Jump to search
m
 
(5 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
 
 +
<syntax>setuplines</syntax>
 +
 
 +
== Settings ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
  <tr>
+
   <tr valign="top" class="arg2">
    <td colspan="2" class="cmd">\setuplines<span class="first" >[...,...=...,...]</span></td>
 
  </tr>
 
   <tr valign="top" class="first">
 
 
     <td class="cmd">{{key|before}}</td>
 
     <td class="cmd">{{key|before}}</td>
 
     <td>''command'' that is expanded and then placed at the start of the environment</td>
 
     <td>''command'' that is expanded and then placed at the start of the environment</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|after}}</td>
 
     <td class="cmd">{{key|after}}</td>
 
     <td>''command'' that is expanded and then placed at the end of the environment</td>
 
     <td>''command'' that is expanded and then placed at the end of the environment</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|inbetween}}</td>
 
     <td class="cmd">{{key|inbetween}}</td>
 
     <td>''command'' that is expanded and then placed between paragraph</td>
 
     <td>''command'' that is expanded and then placed between paragraph</td>
Line 23: Line 24:
  
  
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|command}}</td>
 
     <td class="cmd">{{key|command}}</td>
 
     <td>''command'' that is applied to each non-empty line</td>
 
     <td>''command'' that is applied to each non-empty line</td>
 
   </tr>
 
   </tr>
  
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|indenting}}</td>
 
     <td class="cmd">{{key|indenting}}</td>
 
     <td>'''no''' yes even odd<br />
 
     <td>'''no''' yes even odd<br />
Line 34: Line 35:
 
Requires {{cmd|setupindenting|[yes, ''dim'']}} to be set, too.</td>
 
Requires {{cmd|setupindenting|[yes, ''dim'']}} to be set, too.</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|space}}</td>
 
     <td class="cmd">{{key|space}}</td>
 
     <td>'''no''' yes on<br />
 
     <td>'''no''' yes on<br />
Line 40: Line 41:
 
makes spaces visible as well as preserving them.</td>
 
makes spaces visible as well as preserving them.</td>
 
   </tr>
 
   </tr>
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|align}}</td>
 
     <td class="cmd">{{key|align}}</td>
 
     <td>Controls alignment, see {{cmd|setupalign}} for values.</td>
 
     <td>Controls alignment, see {{cmd|setupalign}} for values.</td>
 
   </tr>
 
   </tr>
  
   <tr valign="top" class="first">
+
   <tr valign="top" class="arg2">
 
     <td class="cmd">{{key|option}}</td>
 
     <td class="cmd">{{key|option}}</td>
 
     <td>Setting  {{code|1=option=packed}} disables page-break between lines.</td>
 
     <td>Setting  {{code|1=option=packed}} disables page-break between lines.</td>
Line 54: Line 55:
 
== Description ==  
 
== Description ==  
  
Define the default settings for the {{cmd|startlines}} environment. If {{cmd|definelines|[mylines]}} was used to define an environment {{code|\startmylines}}, you can set that up with {{code|\setupmylines}}.
+
Define thesettings for the {{cmd|startlines}} environment. If {{cmd|definelines|[mylines]}} was used to define an environment {{code|\startmylines}}, you can set that up with either {{cmd|setuplines|[mylines][...{{=}}...]}} or {{code|\setupmylines[...{{=}}...]}}.
  
 
== Example ==
 
== Example ==
Line 67: Line 68:
 
{{Forum|{{SUBPAGENAME}}}}
 
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Commands|setuplines]]
+
[[Category:Command/Whitespace|setuplines]]
 +
[[Category:Command/Verbatim Text|setuplines]]

Latest revision as of 15:07, 2 July 2020

\setuplines

Syntax (autogenerated)

\setuplines[...,...][...=...,...]
[...,...]name
optionpacked
beforecommand
aftercommand
inbetweencommand
indentingsee \setupindenting
alignsee \setupalign
spaceyes on off fixed default
commandcommand
stylestyle command
colorcolor
leftcommand
rightcommand


Settings

before command that is expanded and then placed at the start of the environment
after command that is expanded and then placed at the end of the environment
inbetween command that is expanded and then placed between paragraph
command command that is applied to each non-empty line
indenting no yes even odd

Whether the lines should be indented.

Requires \setupindenting[yes, dim] to be set, too.
space no yes on

Whether spaces should be preserved. In mkii, space=on

makes spaces visible as well as preserving them.
align Controls alignment, see \setupalign for values.
option Setting option=packed disables page-break between lines.

Description

Define thesettings for the \startlines environment. If \definelines[mylines] was used to define an environment \startmylines, you can set that up with either \setuplines[mylines][...=...] or \setupmylines[...=...].

Example

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: