Re: [NTG-context] Tagged blocks

2019-06-19 Thread Wolfgang Schuster
with 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. \beginquestion

[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=Question

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

2019-01-31 Thread Mikael P. Sundqvist
\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. > > Why no

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, a so

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 - Hans Hage

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
\stopexercici \subject{Answers} \selectblocks[resposta][criterium=section] I get \getnumber[exercici] as the last, not the counter of 'exercici' in which I have the answer. How can I do thaT? Make a complete minimal example. Wolfgang Simply put starttext and stoptext. Here it's

Re: [NTG-context] solutions and problems

2014-02-23 Thread Wolfgang Schuster
\endresposta \stopexercici \subject{Answers} \selectblocks[resposta][criterium=section] I get \getnumber[exercici] as the last, not the counter of 'exercici' in which I have the answer. How can I do thaT? Make a complete minimal example. Wolfgang Simply put starttext

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
3 \par \endresposta \stopexercici \subject{Answers} \selectblocks[resposta] \stoptext Wolfgang Increment counter *every* time is possible option, but in fact very annoying: if I have 100 exercises (now I have more than this) and I have only 20 exercises, then I have to put

Re: [NTG-context] solutions and problems

2014-02-22 Thread Xan
] \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 'exercici

Re: [NTG-context] solutions and problems

2014-02-22 Thread Wolfgang Schuster
\stopexercici \startexercici 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 \subject{Answers} \selectblocks

[NTG-context] solutions and problems

2014-02-20 Thread Xan
, \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

Re: [NTG-context] solutions and problems

2014-02-20 Thread Otared Kavian
, \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

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
# \scratchdimen # \scratchskip \screen \section[references]{text} \seeregister[text]{text}{text+text+text} \selectblocks[names][names][critererium] \selectpaper[options] \selectversion # \setcollector # \setevalue # \setevariables # \setflag # \setfontstrut # \setgvalue # \setgvariables # \setlayer

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
{\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=section

[NTG-context] Hiding subanswer blocks

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

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

2006-06-27 Thread Hans Hagen
}] \defineblock[insummary] \def\placesectionsummary{\unnumberedsubsection{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

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

2006-06-27 Thread David Arnold
=no] \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

[NTG-context] Hiding subanswers

2006-06-26 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
\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

Re: [NTG-context] Question and answers

2006-03-20 Thread Mojca Miklavec
] \setupenumerations[answers][before={\unnumberedsubsection{Answers} \startcolumns[n=2]},after=\stopcolumns,number=no] \def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks [shortanswer][criterium=section]}{\selectblocks[longanswer] [criterium=section]}\stopanswers} \defineenumeration

[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

[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] And finally, resetting blocks?

2006-03-19 Thread David Arnold
is 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} \startcolumns[n

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 parameter

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

[NTG-context] \reset deprecated?

2005-12-20 Thread David Arnold
\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 tufte

[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=Question