Difference between revisions of "Command/nomoreblocks"

From Wiki
Jump to navigation Jump to search
(Add example.)
Line 5: Line 5:
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 +
<syntax>nomoreblocks</syntax>
 
<table>
 
<table>
 
   <tr>
 
   <tr>

Revision as of 10:24, 6 October 2019

\nomoreblocks

Syntax

\nomoreblocks

Description

\nomoreblocks tells ConTeXt that all blocks have already been defined. If in addition all invocations of the blocks occur after \nomoreblocks, then giving ConTeXt this hint saves a compilation pass.

Example

\defineblock[question]
\defineblock[answer]

\starttext

\beginquestion
The first question
\endquestion

\beginanswer
The first answer
\endanswer

\nomoreblocks

\section{Questions}
\useblocks[question]

\section{Answers}
\useblocks[answer]
\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: