ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [Fwd: Re: Need a little help on sample file]
@ 2005-12-20 21:10 Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2005-12-20 21:10 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: Re: Need a little help on sample file --]
[-- Type: message/rfc822, Size: 1741 bytes --]

From: Hans Hagen <pragma@wxs.nl>
To: David Arnold <dwarnold45@cox.net>
Subject: Re: Need a little help on sample file
Date: Tue, 20 Dec 2005 22:10:27 +0100
Message-ID: <43A87343.9040302@wxs.nl>

David Arnold wrote:

> 1. I need to number consecutive exercises.
>
> 2. I need a way of coding the exercise questions and keeping the  
> solution together with the exercise source, but hidden for later use  
> in another part of the  document. I'm not sure how to plan for this  
> future event.


something to play with

\starttext

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

\defineenumeration[question]
\defineenumeration[answer][coupling=question]

\chapter{One}

\input tufte

\beginquestion
\startquestion
Whatever needs to be exercised.
\stopquestion
\endquestion

\beginanswer
\startanswer
No answer.
\stopanswer
\endanswer

\chapter{Two}

\input tufte

\beginquestion
\startquestion
Whatever more needs to be exercised.
\stopquestion
\endquestion

\beginanswer
\startanswer
Again no answer.
\stopanswer
\endanswer

\chapter{Exercises}

\useblocks[answer]

% \useblocks[question,answer]

\stoptext

there are quite some ways to tag and filter such blocks (see manual)

beware: \begin... and \end... should start at column 1 of a line (like 
buffers and display verbatim)

>
> 3. I need a way of switching between double column to single column.

bla bla

\startcolumns

bla bla

\stopcolumns

bla bla




[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-20 21:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-20 21:10 [Fwd: Re: Need a little help on sample file] Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).