Difference between revisions of "Command/nomoreblocks"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=nomoreblocks
 
|name=nomoreblocks
Line 6: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>nomoreblocks</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table>
 
<table>
Line 14: Line 14:
  
 
== Description ==  
 
== Description ==  
 +
{{cmd|nomoreblocks}} tells ConTeXt that all blocks have already been defined. If in addition all invocations of the blocks occur after {{cmd|nomoreblocks}}, then giving ConTeXt this hint saves a compilation pass.
  
 +
== Example ==
 +
<texcode>
 +
\defineblock[question]
 +
\defineblock[answer]
 +
 +
\starttext
 +
 +
\beginquestion
 +
The first question
 +
\endquestion
  
 +
\beginanswer
 +
The first answer
 +
\endanswer
  
== Example ==
+
\nomoreblocks
<!-- Please fill in an example if you can -->
+
 
 +
\section{Questions}
 +
\useblocks[question]
 +
 
 +
\section{Answers}
 +
\useblocks[answer]
 +
\stoptext
 +
</texcode>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|defineblock}} to define a new kind of block.
 +
* {{cmd|setupblock}} to set up block style.
 +
* {{cmd|keepblocks}} to start displaying blocks where they are defined.
 +
* {{cmd|hideblocks}} to stop displaying blocks where they are defined.
 +
* {{cmd|useblocks}} to display blocks.
 +
* {{cmd|selectblocks}} to display only blocks mentioned in the current section.
 +
* {{cmd|processblocks}} to process blocks without printing them.
 +
* {{cmd|forceblocks}}
 +
* {{cmd|nomoreblocks}} to allow one-pass compilation under certain conditions.
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|nomoreblocks]]
+
[[Category:Command/Blocks|nomoreblocks]]

Latest revision as of 13:24, 13 October 2019

\nomoreblocks

Syntax (autogenerated)

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: