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
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
\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
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
only all the exercises (or just everything "in one mode")?
search for 'blocks' ...
\defineblock
...
\hideblocks
\keepblocks
\useblocks
\processblocks
\selectblocks
Hans
-
Hans Hage
\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
\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
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
] \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
\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
, \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
,
\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
# \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
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
{%
\bgroup
\doifmodeelse{short}
{
\keepblocks[shortsubanswer,longsubanswer]
\answers{Answers}\vskip 1em\startcolumnset[answers]
\selectblocks[shortanswer][criterium=section]
\stopcolumnset
}
{
\def\headermarkleft{{\sc Chapter \headnumber[chapter
{\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
\questionbreak{\vskip 2em plus 1ex minus 1 ex}
\def\placeanswers{%
\doifmodeelse{short}
{
\startshortanswers
\selectblocks[shortanswer,shortsubanswer][criterium=section]
\stopshortanswers
}
{
\startlonganswers
}]
\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
=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
}{\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
\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
]
\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
$\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
={\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
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
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
\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
\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
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
29 matches
Mail list logo