Difference between revisions of "Command/writebetweenlist"

From ConTeXt wiki
Jump to navigationJump to search
(put refrerence template back in)
Line 21: Line 21:
  
 
== Description ==  
 
== Description ==  
 
 
  
 
== Example ==
 
== Example ==
Line 38: Line 36:
 
\stoptext
 
\stoptext
 
</texcode>
 
</texcode>
 +
 +
 +
<context>
 +
\definelist[Reprints][criterium=all]
 +
 +
\starttext
 +
\completelist[Reprints]
 +
 +
%  \section{Sec 1}
 +
  \writetolist[Reprints]{1.}{List entry A}
 +
%  \subsection{Subsec 1}
 +
  \writebetweenlist[Reprints]{\hrule}
 +
  \writetolist[Reprints]{2.}{List entry B}
 +
\stoptext
 +
</context>
 +
 +
 +
In mkii the output looks like this:
 +
<pre>
 +
List entry A
 +
--rule--
 +
List entry B
 +
</pre>
 +
 +
 +
However,
  
  

Revision as of 09:01, 14 December 2010

\writebetweenlist

Syntax

\writebetweenlist[...]{...}
[...] section name
{...} text


Description

Example

\definelist[Reprints][criterium=all]

\starttext
  \section{Sec 1}
  \writetolist[Reprints]{1.}{List entry A}
  \subsection{Subsec 1}
  \writebetweenlist[Reprints]{\hrule}
  \writetolist[Reprints]{2.}{List entry B}
  \completelist[Reprints]
\stoptext



In mkii the output looks like this:

List entry A
--rule--
List entry B


However,


See also