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
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
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.
>
&
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
only all the exercises (or just everything "in one mode")?
search for 'blocks' ...
\defineblock
...
\hideblocks
\keepblocks
\useblocks
\processblocks
\selectblocks
Hans
-
ounter[resposta]
> \endresposta
> \stopexercici
>
> \startexercici Question 3
> \beginresposta
> \resposta Answer 3 \par
> \endresposta
> \stopexercici
>
> \subject{Answers}
>
> \selectblocks[resposta]
>
> \stoptext
>
> Wolfgang
Increment counter *e
; \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
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
>
lació, \item No té relació,
> \item D.\stopitemize) \par
> \endresposta
> \stopexercici
>
> \subject{Answers}
>
> \selectblocks[resposta][criterium=section]
>
>
> I get \getnumber[exerci
,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
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
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
]{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
#
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
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
rs{\stopgenericqadouble}
\def\questionbreak{\vskip 2em plus 1ex minus 1 ex}
\def\placeanswers{%
\doifmodeelse{short}
{
\startshortanswers
\selectblocks[shortanswer,shortsubanswer][criterium=section]
\stopshortanswers
}
{
]
\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
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
nted,
> number=no,
> inbetween=\blank,
> before={\startboxcode\startframedtext[width=\boxwidth,
> background=color,backgroundcolor=icicle,frame=no]},
> after={\stopframedtext\stopboxcode}]
>
> \defineblock[insummary]
> \def\placesectionsummary{\unnumberedsubsection{
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=
}{\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
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
$\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
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
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
={\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
={\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
\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
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
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
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
32 matches
Mail list logo