[NTG-context] Unexplained blank page when using textblocks

David Arnold dwarnold45 at cox.net
Tue Mar 21 21:46:09 CET 2006


All,

I am using:

tmp $ texexec --version

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

                texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
                texutil : TeXUtil 9.0.1 - ConTeXt / PRAGMA ADE 1992-2006
                    tex : pdfeTeX, 3.141592-1.30.4-2.2 (Web2C 7.5.5)
                context : ver: 2006.03.20 10:19
                cont-en : ver: 2006.03.20 10:19  fmt: 2006.3.21  mes:  
english
                cont-nl : ver: 2006.03.20 10:19  fmt: 2006.3.21  mes:  
dutch

         total run time : 3 seconds

I get a blank page 2 (except for subsection title) for the following  
source. Thought you'd like to be aware of this.

%output=pdf

\starttext

\setupindenting[medium,yes]

\setupwhitespace[medium]

\setupcolumns
   [verytolerant,distance=4em]

\setupcolors[state=start]

\defineenumeration[question]
\setupenumerations
   [question]
   [location=inleft,
    text={\color[blue]\bgroup},
    stopper={.\egroup},
    way=bysection,
    sectionnumber=no]

\defineenumeration[answer]
\setupenumerations
   [answer]
   [location=inleft,
    text={\color[blue]\bgroup},
    stopper={.\egroup},
    way=bysection,
    sectionnumber=no]

\defineblock[question,answer]
\hideblocks[answer]

\chapter{First Chapter}

\dorecurse{1}{\input tufte\par}

\section{First Section}

\dorecurse{2}{\input tufte\par}

\subsection{Exercises}

\startcolumns[n=2]

\beginquestion
\startquestion[ex:1]
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt\pi$
\stopanswer
\endanswer

\beginquestion
\startquestion
     In exercise~\in[ex:1], we found $\sqrt{\pi}$. What is the square  
root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\stopcolumns

\subsection{Answers}

\startcolumns[n=2]

\selectblocks[answer][criterium=section]

\stopcolumns

\section{Second Section}

\dorecurse{2}{\input tufte\par}

\subsection{Exercises}

\startcolumns[n=2]

\beginquestion
\startquestion
   What is the square root of $2\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{2\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $2\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{2\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $2\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{2\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $2\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{2\pi}$
\stopanswer
\endanswer

\stopcolumns

\subsection{Answers}

\startcolumns[n=2]

\selectblocks[answer][criterium=section]

\stopcolumns

\section{Third Section}

\dorecurse{2}{\input tufte\par}

\subsection{Exercises}

\startcolumns[n=2]

\beginquestion
\startquestion
   What is the square root of $3\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{3\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $3\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{3\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $3\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{3\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $3\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{3\pi}$
\stopanswer
\endanswer

\stopcolumns

\subsection{Answers}

\startcolumns[n=2]

\selectblocks[answer][criterium=section]

\stopcolumns

\section{Appendix}

\setupenumerations[answer][sectionnumber=yes]

\startcolumns[n=2]

\selectblocks[answer][criterium=chapter]

\stopcolumns



\stoptext


More information about the ntg-context mailing list