Re: [NTG-context] Tagged blocks

2019-06-19 Thread Wolfgang Schuster
the tag [exam] should not be processed in the first chapter and only appear in the second chapter. According to the wiki and reference manual it should be possible using either \useblocks or \selectblocks but I can't get it to work. At this point you can hide tagged blocks. \beginque

[NTG-context] Tagged blocks

2019-06-18 Thread Jan Willem Flamma
chapter and only appear in the second chapter. According to the wiki and reference manual it should be possible using either \useblocks or \selectblocks but I can't get it to work. Who can help me out? Best regards, Jan Willem Flamma \defineenumeration[question][location=margin,text=Que

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Mikael P. Sundqvist
ff].\ldots \stoplosning \endlosn \chapter{Solutions} \selectblocks[losn][criterium=all] On Fri, Feb 1, 2019 at 5:20 AM Alan Braslau wrote: > > On Thu, 31 Jan 2019 22:10:40 -0500 > Sanjoy Mahajan wrote: > > > Thank you, Matthias and Wolfgang, for the examples/solutions. > &

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-10 Thread Wolfgang Schuster
Hans Hagen <mailto:pra...@wxs.nl> 10. November 2016 um 17:27 search for 'blocks' ... \defineblock ... \hideblocks \keepblocks \useblocks \processblocks \selectblocks This doesn’t solve the problem because he want a document which contains *only* certain blocks and nothing else

Re: [NTG-context] Extract only certain part of document (via modes)?

2016-11-10 Thread Hans Hagen
only all the exercises (or just everything "in one mode")? search for 'blocks' ... \defineblock ... \hideblocks \keepblocks \useblocks \processblocks \selectblocks Hans -

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
ounter[resposta] > \endresposta > \stopexercici > > \startexercici Question 3 > \beginresposta > \resposta Answer 3 \par > \endresposta > \stopexercici > > \subject{Answers} > > \selectblocks[resposta] > > \stoptext > > Wolfgang Increment counter *e

Re: [NTG-context] solutions and problems

2014-02-23 Thread Wolfgang Schuster
; \stopexercici >>> >>> \startexercici Bla 2 >>> \stopexercici >>> >>> \startexercici Bla 3 >>> \beginresposta >>> \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, >>> \item No té relació, \item D, \it

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
cici Bla 3 > > \beginresposta > > \resposta (Solucions: \startitemize[a,text] \item D, \item I, \item D, > > \item No té relació, \item D, \item D, \item No té relació, \item No té > > relació, \item D.\stopitemize) \par > > \endresposta > > \stopexercici >

Re: [NTG-context] solutions and problems

2014-02-22 Thread Wolfgang Schuster
lació, \item No té relació, > \item D.\stopitemize) \par > \endresposta > \stopexercici > > \subject{Answers} > > \selectblocks[resposta][criterium=section] > > > I get \getnumber[exerci

Re: [NTG-context] solutions and problems

2014-02-22 Thread Xan
,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici \subject{Answers} \selectblocks[resposta][criterium=section] I get \getnumber[exercici] as the last, not the counter of 'ex

Re: [NTG-context] solutions and problems

2014-02-20 Thread Otared Kavian
t; \resposta Exercici 2 (Solucions: \startitemize[a,text] \item D, \item I, > \item D, \item No té relació, \item D, \item D, \item No té relació, \item No > té relació, \item D.\stopitemize) \par > \endresposta > \stopexercici > ... > > \startmode[solucions] > \subject{Resp

[NTG-context] solutions and problems

2014-02-20 Thread Xan
tem D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par \endresposta \stopexercici ... \startmode[solucions] \subject{Respostes} %Answers \selectblocks[resposta][criterium=section] \stopmode ... Is there any way tha

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
]{text} # \saveXMLasdata # \saveXMLdata # \saveXMLelement # \sbox \scale[options]{text} # \scratchbox # \scratchcounter # \scratchdimen # \scratchskip \screen \section[references]{text} \seeregister[text]{text}{text+text+text} \selectblocks[names][names][critererium] \selectpaper[options] \selectversion #

Re: [NTG-context] Header problem in project

2007-01-08 Thread David Arnold
Taco et all, From what I could deduce, our former macro for placeanswers was a group. \def\placeanswers{ \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer

[NTG-context] Header problem in project

2007-01-07 Thread David Arnold
{% \bgroup \doifmodeelse{short} { \keepblocks[shortsubanswer,longsubanswer] \answers{Answers}\vskip 1em\startcolumnset[answers] \selectblocks[shortanswer][criterium=section] \stopcolumnset } { \def\headermarkleft{{\sc Chapter \headnumber[chapter

[NTG-context] columns -> columnsets introduces problems

2006-08-08 Thread David Arnold
tions{\exercises{Exercises}\startcolumnset[exercises]} \def\stopquestions{\stopcolumnset} %\def\placeanswers{% % \bgroup % \doifmodeelse{short} % { % \keepblocks[shortsubanswer,longsubanswer] % \answers{Answers}\vskip 1em\startcolumns[n=2] % \selectblocks[shortanswer][criterium=se

[NTG-context] Hiding subanswer blocks

2006-07-15 Thread David Arnold
rs{\stopgenericqadouble} \def\questionbreak{\vskip 2em plus 1ex minus 1 ex} \def\placeanswers{% \doifmodeelse{short} { \startshortanswers \selectblocks[shortanswer,shortsubanswer][criterium=section] \stopshortanswers } {

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
] \defineenumeration [answers] [location=serried, text=\blank] \setupenumerations [answers] [before={\unnumberedsubsection{Answers}\startcolumns[n=2]}, after=\stopcolumns, number=no] \def\placeanswers{% \startanswers \doifmodeelse{short} {\selectblocks[shortanswer][criterium

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
bsection {Exercises}\startcolumns[n=2]},after=\stopcolumns,number=no] \defineenumeration[answers][location=serried,text=\blank] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\select

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread Hans Hagen
nted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=icicle,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineblock[insummary] > \def\placesectionsummary{\unnumberedsubsection{

Re: [NTG-context] Oh no! Never update in the middle of a project. I am in trouble.

2006-06-27 Thread David Arnold
ction{Section Summary}\bgroup \tfx\selectblocks[insummary]\egroup} \defineenumeration [example] [location=serried, width=broad, text={\color[heavygreen]\bgroup\bold{Example}}, stopper={.\egroup}, style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=

[NTG-context] Hiding subanswers

2006-06-25 Thread David Arnold
}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color[heavygreen] \bgroup}] \setupenumerations [question] [location=inleft, text={\color[heavygreen]\bgroup}, stopper={.\egroup

[NTG-context] Unexplained blank page when using textblocks

2006-03-21 Thread David Arnold
nswer \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$? \stopque

[NTG-context] Question and Answer blocks -- by section

2006-03-20 Thread David Arnold
$\sqrt{\pi}$ \stopanswer \endanswer \stopcolumns \section{Answers} \startcolumns[n=2] \selectblocks[answer] \stopcolumns \section{Second Section} \dorecurse{2}{\input tufte\par} \section{Exercises} \startcolumns[n=2] \beginquestion \startquestion What is the square root of $\pi

Re: [NTG-context] Question and answers

2006-03-20 Thread Mojca Miklavec
wers][location=serried,text=\blank] > \setupenumerations[answers][before={\unnumberedsubsection{Answers} > \startcolumns[n=2]},after=\stopcolumns,number=no] > > \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks > [shortanswer][criterium=section]}{\selectblocks[long

[NTG-context] And finally, resetting blocks?

2006-03-19 Thread David Arnold
s the square root of $\pi$? \stopquestion \endquestion \beginanswer \startanswer $\sqrt{\pi}$ \stopanswer \endanswer \stopcolumns \section{Answers} \startcolumns[n=2] \selectblocks[answer] \stopcolumns \section{Second Section} \dorecurse{2}{\input tufte\par} \section{Exercises} \startcolu

[NTG-context] End of chapter solutions

2006-03-19 Thread David Arnold
={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text

[NTG-context] Question and answers

2006-03-19 Thread David Arnold
={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration[question][location=inleft,text={\color

Re: [NTG-context] \useblocks in section

2005-12-21 Thread David Arnold
\selectblocks {\dotripleempty\doselectblocks} \protect \starttext \defineenumeration[question][location=serried,text=Question] \defineenumeration[answer][location=serried,text=Answer] \defineblock[question,answer] \hideblocks[answer] \chapter{First Chapter} \input tufte \beginquestion

Re: [NTG-context] \useblocks in section

2005-12-21 Thread Hans Hagen
David Arnold wrote: All, This doesn't seem to work as expected. Replacing the \useblocks with \selectblocks also produces an unexpected result. What am I doing wrong? I am trying to have only the answers from the chapter show up. ah, old code, something got lost when i added para

[NTG-context] \useblocks in section

2005-12-20 Thread David Arnold
All, This doesn't seem to work as expected. Replacing the \useblocks with \selectblocks also produces an unexpected result. What am I doing wrong? I am trying to have only the answers from the chapter show up. %output=pdf \defineenumeration[question][location=serried,text=Que

[NTG-context] \reset deprecated?

2005-12-20 Thread David Arnold
ttext \chapter{First Chapter} \input tufte \beginquestion \startquestion What is the square root of 4? \stopquestion \endquestion \beginanswer \startanswer 2 \stopanswer \endanswer \section{Answers} \reset[answer] \selectblocks[answer][criterium=chapter] \chapter{Second Chapter} \input