From Wiki
< Command
Revision as of 06:08, 23 March 2012 by Jannis (talk | contribs) (Text replace - "\[\[cmd:(.*)\|(.*)\]\]" to "{{cmd|$1}}")
Jump to navigation Jump to search



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


The command writes an entry in the defined list (the first argument}, the second is the numbered part (like "1."), the third the actual text.

1. = List name

2. = Number

3. = Text to be written to the list

If you use this command after an unnumbered section commands beware that it will become a candidate for a page break. A workaround is:

\subject{\bf My title!}
\writetolist[myrandompart]{}{It's a test}

However, according to and, keep in mind that it introduces 'something' in the text stream, so when whitespace is setup, in some cases you can get some extra. Also, this box can end up on the current page or the next one, depending on the circumstances. In practice it's no real problem as one will do explicit writes inside boxes or so. I.e., just bind the write to some text.

In addition you might get spurious spaces after this command. So it is best to add a % sign after it.



  \section{Sec 1}
  \writetolist[Reprints]{1.}{List entry A}%
  \writetolist[Reprints]{}{With no number}%
  \subsection{Subsec 1}
  \writetolist[Reprints]{2.}{List entry B}%

See also


Help from ConTeXt-Mailinglist/Forum

All issues with: