Re: [NTG-context] using modeset

2020-06-12 Thread Jan Willem Flamma
: \hideblocks[NLblok]%\hideblocks[ENblok] For the titles I use another method: %\def\NL#1{#1}\def\NL#1{{}}%\def\EN#1{}\def\EN#1{#1} You have to comment and uncomment, depending on the language, but I think you can put them in the NLblok or ENbloks instead. \definecomplexenumeration[Casus]… definition

Re: [NTG-context] using modeset

2020-06-11 Thread r . ermers
={\mainlanguage[nl]},after=] \setupblock[ENblok][before={\mainlanguage[en]},after=] Then, determine which blocks you want to use in your file: \hideblocks[NLblok] %\hideblocks[ENblok] For the titles I use another method: %\def\NL#1{#1} \def\NL#1{{}} %\def\EN#1{} \def\EN#1{#1} You have

[NTG-context] \beginBLOCKS and \endBLOCKS do not work in \dorecurse

2019-11-11 Thread Romain Diss
Hi, I cannot make \beginBLOCKS and \endBLOCKS work in a \dorecurse loop. Is it possible? Here is a minimum non working exemple (from https://wiki.contextgarden.net/Command/defineblock): %% \startdocument \defineblock[question] \hideblocks[question] % We don't want to print blocks where we

[NTG-context] LMTX issue with multple question blocks

2019-11-07 Thread Jan Willem Flamma
amma \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \input knuth \beginquestion \startquestion Question text \startitemize[a] \item Answer A \item Answer B \item Answer C \stopitemiz

[NTG-context] Tagged blocks

2019-06-18 Thread Jan Willem Flamma
,way=bychapter] \defineenumeration[answer] [location=margin,text=Answer] \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \starttext \startchapter[title=Chapter for regular questions] \beginquestion \startquestion Normal question \stopquestion \endquestion

Re: [NTG-context] constructing block content partly with lua

2019-02-05 Thread Hans Hagen
to where I've gone wrong. I've also tried steppers without much luck (and, admittedly, without really understanding their use). === testluabeginblock.tex === \defineblock[answer] \hideblocks[answer] \def\onearg#1{{\bf #1}} \def\noarg{{\it fixed argument}} \starttext \sta

[NTG-context] constructing block content partly with lua

2019-02-05 Thread Sanjoy Mahajan
tried steppers without much luck (and, admittedly, without really understanding their use). === testluabeginblock.tex === \defineblock[answer] \hideblocks[answer] \def\onearg#1{{\bf #1}} \def\noarg{{\it fixed argument}} \starttext \startluacode context.beginanswer()

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

2019-02-01 Thread Otared Kavian
, coupling=question] % Each question is followed immediately by its answer. % The answers are put in a block which will be used later \defineblock[hint] \hideblocks[hint] \defineblock[answer] \hideblocks[answer] % We define a command used after a % Question for which no Answer is provided % Since

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

2019-01-31 Thread Mikael P. Sundqvist
, numbercommand=\problemtextmakro, number=yes, alternative=serried, hang=margin, indentnext=auto, indenting={yes,small}, prefix=yes, prefixsegments=chapter, way=bychapter, ] \defineblock[losn] \hideblocks[losn] \define[1]\losntextmakro {\doifreferencefoundelse{problem:\currentconstructionreference

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

2019-01-31 Thread Weber, Matthias
, location=hanging] \defineblock[exercise] \defineblock[solution] \hideblocks[solution] \setupinteraction [state=start] \starttext \section{Main Text} \subsection[subsec:1]{problem section 1} \startexercise Addition\index{addition} problem: $1+1=?$ \stopexercise \beginsolution[one] \startsolution

Re: [NTG-context] prevent page break when using blocks

2018-09-27 Thread Wolfgang Schuster
Jan Willem Flamma schrieb am 27.09.18 um 17:18: Dear list members, How can I prevent that a question block breaks across a page? Kind regards, Jan Willem Flamma MWE \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question

[NTG-context] prevent page break when using blocks

2018-09-27 Thread Jan Willem Flamma
Dear list members, How can I prevent that a question block breaks across a page? Kind regards, Jan Willem Flamma MWE \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text={Question}, after={\blank[2*big

Re: [NTG-context] Modes in tables

2018-09-07 Thread Jan Willem Flamma
hen mode BL is not >> enabled. >> >> When mode BL is enabled (using the toggle), the third column should of >> course appear again. >> >> How can I achieve this? >> >> Regards, >> Jan Willem >> >> >> MWE: >> &

Re: [NTG-context] Modes in tables

2018-09-06 Thread Wolfgang Schuster
can I achieve this? Regards, Jan Willem MWE: \starttext %Toggles %\enablemode[BL] \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text=Question, after={\blank[2*big]}, inbetween={\blank[nowhite

[NTG-context] Modes in tables

2018-09-06 Thread Jan Willem Flamma
] \defineblock[question] \defineblock[answer] \hideblocks[question] \hideblocks[answer] \defineenumeration [question] [text=Question, after={\blank[2*big]}, inbetween={\blank[nowhite]}, way=bychapter, prefixsegments=chapter, prefix=yes] \defineenumeration

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] Clickable question/answer numbers (Otared Kavian)

2016-11-07 Thread Willi Egger
number=yes, > prefix=yes, > prefixsegments=chapter, > coupling=question] > > % Each question is followed immediately by its answer. > % The answers are put in a block which will be used later > \defineblock[answer] > \hideblocks[answer] > > % We def

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Otared Kavian
immediately by its answer. % The answers are put in a block which will be used later \defineblock[answer] \hideblocks[answer] % We define a command used after a % Question for which no Answer is provided % Since the block commands % \beginanswer ... \endanswer % cannot be used directly in a macro

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
, number=yes, prefix=yes, prefixsegments=chapter, coupling=question] % Each question is followed immediately by its answer. % The answers are put in a block which will be used later \defineblock[answer] \hideblocks[answer] % We define a command used after a % Question

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Mikael P. Sundqvist
] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \def\myheadcommand#1{\goto{Question #1}[A:\currentconstructionreference]} \defineenumeration[question][ text=, title=yes, titlestyle=, titlecolor=black, headcommand={\myheadcommand}, headstyle={\sc}, headcolor

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Otared Kavian
ences-show] > > \setupinteraction[state=start,color=,contrastcolor=,style=] > > \defineblock[answer] > \hideblocks[answer] > > \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} > > > \defineenumeration[exercise][ > text=Question, > title=yes, >

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
\usemodule[references-show] \setupinteraction[state=start,color=,contrastcolor=,style=] \defineblock[answer] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \defineenumeration[exercise][ text=Question, title=yes, titlestyle=, titlecolor=black, headstyle={\sc},

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
r instance, but something >>> does not work…). >>> >>> Le me know if you find a satisfactory solution… >>> >>> Best regards: OK >>> %%% begin interactive-question-answer.tex >>> \setupinteraction[state=start,color=,contrastcolor=,style=] >>> >

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Hans Hagen
factory solution… Best regards: OK %%% begin interactive-question-answer.tex \setupinteraction[state=start,color=,contrastcolor=,style=] \defineblock[answer] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \define[1]\AnswerToQuestion{Question \goto{(see Solution)}[A

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
e=start,color=,contrastcolor=,style=] > > \defineblock[answer] > \hideblocks[answer] > > \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} > > \define[1]\AnswerToQuestion{Question \goto{(see Solution)}[A:Q:#1]} > > \define[1]\StartQuestion{\startquestion[reference=Q:

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
\setupinteraction[state=start,color=,contrastcolor=,style=] \defineblock[answer] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \define[1]\AnswerToQuestion{Question \goto{(see Solution)}[A:Q:#1]} \define[1]\StartQuestion{\startquestion[reference=Q:#1,title={\AnswerToQuestion

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
"Question 1.1" >> clickable with that target. >> >> I hope I make myself clear. If it matters, in the solution one could >> assume that the optional tag of the \startquestion \stopquestion is >> given for all questions. >> >> Best re

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
lickable with that target. > > I hope I make myself clear. If it matters, in the solution one could > assume that the optional tag of the \startquestion \stopquestion is > given for all questions. > > Best regards, Mikael > > %% qa.tex > \setupinteraction[state=start,co

[NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
tart,color=,contrastcolor=,style=] \defineblock[answer] \hideblocks[answer] \def\myanswer[#1]{\inleft{\in[#1]\reference[A:#1]{\in[#1]}}} \defineenumeration[question][ text=Question, headcolor=darkred, width=fit, number=yes, prefix=yes, prefixsegments=section, ] \starttext \section{A section with

Re: [NTG-context] Get "right" numbers using blocks and enumerations

2016-09-06 Thread Mikael P. Sundqvist
ocks at the > wiki (http://wiki.contextgarden.net/Command/processblocks), but I'm > not sure that is my cure. I probably miss something easy... > > The problem is probably easiest shown by an example: > > %%% > \defineblock[A] > \hideblocks[A] > > \defineenumeratio

Re: [NTG-context] Get "right" numbers using blocks and enumerations

2016-09-06 Thread Wolfgang Schuster
t sure that is my cure. I probably miss something easy... The problem is probably easiest shown by an example: %%% \defineblock[A] \hideblocks[A] \defineenumeration[A][ text=A, prefix=yes, prefixsegments=chapter, way=bychapter, ] \starttext \chapter{First chapter} \beginA \startA My first

[NTG-context] Get "right" numbers using blocks and enumerations

2016-09-01 Thread Mikael P. Sundqvist
easiest shown by an example: %%% \defineblock[A] \hideblocks[A] \defineenumeration[A][ text=A, prefix=yes, prefixsegments=chapter, way=bychapter, ] \starttext \chapter{First chapter} \beginA \startA My first answer in the first chapter. \stopA \endA \beginA \startA My second answer in the first

Re: [NTG-context] disappearing margin text

2016-06-23 Thread josephcanedo
Hi, have you tried putting the \inmargin Inside before= in defineenumeration ? Seems to work fine (assuming you want the marginal note on same line as question. Joseph \defineblock[question] \hideblocks[question] \defineenumeration [question] [text=Question, before=\inmargin

Re: [NTG-context] disappearing margin text

2016-06-22 Thread Jan Willem Flamma
ible? > > Kind regards, > Jan Willem > > > MWE: > \defineblock[question] > \hideblocks[question] > > \defineenumeration >[question] >[text=Question] > > \setupblock[question][before=\startquestion,after=\stopquestion] > > > \start

Re: [NTG-context] disappearing margin text

2016-06-22 Thread Marco Patzer
On Wed, 22 Jun 2016 11:52:04 +0200 Jan Willem Flamma <jwfregis...@icloud.com> wrote: > In the following MWE, the margin text appears at question 1 but not > at question 2. They both appear, but are overlaid (try with different texts). > MWE: > \defineblock[question] >

[NTG-context] disappearing margin text

2016-06-22 Thread Jan Willem Flamma
Dear list members In the following MWE, the margin text appears at question 1 but not at question 2. How is this possible? Kind regards, Jan Willem MWE: \defineblock[question] \hideblocks[question] \defineenumeration [question] [text=Question] \setupblock[question][before

Re: [NTG-context] macro expansion inside a block

2016-02-08 Thread Hans Hagen
On 2/5/2016 5:13 PM, Andrea De Michele wrote: Hi all, I want to expand a macro inside a block when the block is written and not when it is used. Here a simple example: \defineblock[myblock] \hideblocks[myblock] \starttext \define\mynumber{1} Some text: mynumber is :\mynumber \beginmyblock

Re: [NTG-context] macro expansion inside a block

2016-02-08 Thread Andrea De Michele
Hans Hagen <pra...@wxs.nl> writes: > On 2/5/2016 5:13 PM, Andrea De Michele wrote: >> Hi all, >> I want to expand a macro inside a block when the block is written and not >> when it is used. >> Here a simple example: >> >> \defineblock[mybl

[NTG-context] macro expansion inside a block

2016-02-05 Thread Andrea De Michele
Hi all, I want to expand a macro inside a block when the block is written and not when it is used. Here a simple example: \defineblock[myblock] \hideblocks[myblock] \starttext \define\mynumber{1} Some text: mynumber is :\mynumber \beginmyblock This is mynumber inside the first myblock, I

[NTG-context] How to increment a counter

2015-02-05 Thread Otared Kavian
=, right=)] \setupitemgroup[Questions][n] \setupitemgroup[Answers][style=bold, width=1.5em, packed, alternative=hanging, stopper=, right=)] \setupitemgroup[Answers][n] \hideblocks[Exoblock] \hideblocks[Solblock] \starttext

[NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] Something like \startexercise My execise ... \stopexercise If no more is provide, at the question does \incrementcounter[answer] If \startexercise{\startsolution The solution is \stopsolution} My exercise

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Xan
This: \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] \def\mynewcommand{\dosingleempty\doMyNewCommand} \def\doMyNewCommand[#1]#2{% \iffirstargument

Re: [NTG-context] Defining commands in \start ... \stop

2014-03-30 Thread Wolfgang Schuster
Am 30.03.2014 um 19:28 schrieb Xan dxpubl...@telefonica.net: This: \defineblock[question] \defineblock[answer] \defineenumeration[question][text={Question}] \defineenumeration[answer] [text={Answer}] \keepblocks[question] \hideblocks[answer] \def\mynewcommand{\dosingleempty

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
] \hideblocks[resposta] % Exercises \startexercici Bla... \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-23 Thread Wolfgang Schuster
]},number=no] \defineblock[resposta] \hideblocks[resposta] % Exercises \startexercici Bla... \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

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
] \hideblocks[resposta] \starttext \startexercici Question 1 \beginresposta \resposta Answer 1 \par \endresposta \stopexercici \startexercici Question 2 \beginresposta \incrementcounter[resposta] \endresposta \stopexercici \startexercici Question 3 \beginresposta \resposta Answer

Re: [NTG-context] solutions and problems

2014-02-22 Thread Xan
]}] % Answers \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no] \defineblock[resposta] \hideblocks[resposta] % Exercises \startexercici Bla... \beginresposta \resposta (Solucions

Re: [NTG-context] solutions and problems

2014-02-22 Thread Wolfgang Schuster
,distance=0.25em,width=fit,before={\incrementcounter[resposta]}] % Answers \defineenumeration[resposta][headstyle=\ss,text={Solucions de l'exercici \getnumber[exercici]},width=fit,alternative=serried,before={\decrementcounter[resposta]},number=no] \defineblock[resposta] \hideblocks[resposta

Re: [NTG-context] solutions and problems

2014-02-21 Thread Xan
=\ss,distance=0.25em,width=fit,before={\incrementcounter[answer]}] \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried,before={\decrementcounter[resposta]}] \defineblock[resposta] \hideblocks[resposta] @Thomas: thank you very much for the link. Eventually I

[NTG-context] solutions and problems

2014-02-20 Thread Xan
,distance=0.25em,width=fit] \defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried] \defineblock[resposta] % the answer \hideblocks[resposta] And in my text, I have: \startexercici \beginresposta \resposta Exercici 2 (Solucions: \startitemize[a,text] \item D

Re: [NTG-context] solutions and problems

2014-02-20 Thread Otared Kavian
={Hint for question},stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm,text={Answer to question},stopper={.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion

Re: [NTG-context] solutions and problems

2014-02-20 Thread Xan
={.}] \defineenumeration[hint][alternative=hanging,width=4cm,text={Hint for question},stopper={.}] \defineenumeration[answer] [alternative=hanging,width=4.5cm,text={Answer to question},stopper={.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions

Re: [NTG-context] solutions and problems

2014-02-20 Thread Wolfgang Schuster
] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion \endquestion \beginhint \starthint Use the fact that $2\times 5 = 10$. \stophint \endhint %\beginanswer %\startanswer % $20$. %\stopanswer

Re: [NTG-context] solutions and problems

2014-02-20 Thread Jaroslav Hajtmar
[answer] [alternative=hanging,width=4.5cm,text={Answer to question},stopper={.}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \startquestion Compute $4\times 5$. \stopquestion \endquestion \beginhint \starthint Use the fact that $2

Re: [NTG-context] reset blocks with dorecurse

2014-01-15 Thread DesdeChaves
={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \startsetups examn:make \resetnumber[answer] \resetnumber[question] \resetnumber[hint

[NTG-context] reset blocks with dorecurse

2014-01-14 Thread DesdeChaves
}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \startsetups examn:make \resetnumber[answer] \resetnumber[question] \resetnumber[hint] \page \setcounter

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-12 Thread Jaroslav Hajtmar
, text={}, headstyle={}, stopper={.}] \setupblock[question][before={\startquestion},after={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-12 Thread Otared Kavian
={}, headstyle={}, stopper={.}] \setupblock[question][before={\startquestion},after={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-12 Thread Jaroslav Hajtmar
={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion Compute $4\times 5$. \endquestion \beginhint Use the fact that $2\times 5 = 10$. \endhint \beginanswer $20$. \endanswer \beginquestion What is the value of $100

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-11 Thread Wolfgang Schuster
is to save the content from the begin to the end block and hides it when you use \hideblocks[…]. To output the content of the environments you can use \useblocks[…]. \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=hanging,text={Question

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-11 Thread Otared Kavian
={\startquestion},after={\stopquestion}] \setupblock[hint][before={\starthint},after={\stophint}] \setupblock[answer][before={\startanswer},after={\stopanswer}] \keepblocks[question] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion Compute $4\times 5

Re: [NTG-context] setuphead for in-paragraph head ?

2014-01-09 Thread Otared Kavian
=hanging,text={Question},stopper={.}] \defineenumeration[hint][location=hanging,text={Hint for question},stopper={.}] \defineenumeration[answer][location=hanging,text={Answer to question},stopper={.}] \hideblocks[hint] \hideblocks[answer] \starttext \section{Questions} \beginquestion \question

[NTG-context] \startplacefigure breaking paragraph flow

2013-02-10 Thread Marcin Borkowski
, width=fit, ] \defineblock[question] \defineblock[answer] \keepblocks[question] \hideblocks[answer] \setupblock[question][before=\startquestion,after=\stopquestion] \setupblock[answer][before=\startanswer,after=\stopanswer] \def\noanswer{\incrementnumber[answer]} \starttext \beginquestion

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Wolfgang Schuster
for the environment as other commands, e.g. for exams: \defineblock[question] \defineblock[answer] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \chapter{Questions} % Show only the question blocks \beginquestion \startquestion First question

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Jaroslav Hajtmar
Hello Wolfgang, Last example is not working! I have installed last version of standalone version... Jaroslav Hajtmar Here is this example ... \defineblock[question] \defineblock[answer] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \chapter

Re: [NTG-context] Place an annotation before it is defined

2013-01-07 Thread Marco Patzer
On 2013–01–07 Jaroslav Hajtmar wrote: Last example is not working! I have installed last version of \defineblock[question] \defineblock[answer] \hideblocks[answer] \defineenumeration[question] \defineenumeration[answer] \starttext \chapter{Questions} % Show only the question

[NTG-context] howto get good references in mkiv?

2012-01-05 Thread Rene van Hassel
[question] \defineblock[answer] \defineenumeration[question][location=top,coupling=answer] \defineenumeration[answer][location=top,coupling=question] \hideblocks[question] \hideblocks[answer] \defineblock[exercise] \defineblock[solution] \defineenumeration[exercise][location=top,text=Exercise

[NTG-context] problem with coupling (mkiv)

2012-01-02 Thread Rene van Hassel
[answers][location=top,coupling=questions] \hideblocks[question] \hideblocks[answer] \starttext % Problems with the coupling of questions and answers \beginquestion \startquestions Why ConTeXt doesn't work? \stopquestions \endquestion \useblocks[question] \page \beginanswer \startanswers It always give

[NTG-context] problem with cross references

2012-01-02 Thread Rene van Hassel
[solution] \defineenumeration[exercise][location=top,text=Exercise] \defineenumeration[solution][location=top,text=Solution] \hideblocks[exercise] \hideblocks[solution] \starttext \chapter{First Attempt} % Begin: First Attempt % With texexec and context both go well. \beginexercise \startexercise

[NTG-context] useblocks troubles

2010-01-25 Thread Bernhard Vogel
={ -Begin- }, after={ -End- }] \hideblocks[someblock,otherblock] \starttext \beginsomeblock SOMEBLOCK \endsomeblock \beginotherblock OTHERBLOCK \endotherblock \section{No before or after} \useblocks[someblock,otherblock] \useblocks[otherblock,someblock] \section{Separately they work} \useblocks

Re: [NTG-context] More questions about hiding/reusing blocks

2010-01-24 Thread Hans Hagen
, way=bysection, coupling=exercise, location=hanging] \defineblock[exercise] \defineblock[solution] \hideblocks[solution] \setupinteraction [state=start] \starttext \section{Main Text} \subsection[subsec:1]{problem section 1} \startexercise[ex:1] Addition\index{addition} problem: $1+1

Re: [NTG-context] reusing figures ok - problem with hiding blocks in MKIV

2010-01-18 Thread Hans Hagen
On 15-1-2010 16:26, Matthias Weber wrote: Dear all, after (finally) installing the minimals, the zip with the figures TeXs as expected with MKII and MKIV. Now, in MKIV I notice another issue. I use the \hideblocks mechanism to hide and reuse answers and get an error message (Undefined control

[NTG-context] reusing figures ok - problem with hiding blocks in MKIV

2010-01-15 Thread Matthias Weber
Dear all, after (finally) installing the minimals, the zip with the figures TeXs as expected with MKII and MKIV. Now, in MKIV I notice another issue. I use the \hideblocks mechanism to hide and reuse answers and get an error message (Undefined control sequence) in MKIV while everything

Re: [NTG-context] new beta

2008-10-23 Thread Wolfgang Schuster
the block features? I tested the new block code with MkIV and everything is fine except two unnecessary files in my working directory, they are \jobname-texutil0.tmp and texutil.tub. Here is a example: \defineblock[question] \defineblock[answer] \hideblocks[answer] \starttext \beginquestion Question 1

[NTG-context] hiding enumerations

2008-08-06 Thread Eric DÉTREZ
,reponse] \hideblocks[,reponse] \begintitre \exercice {\bf Facile} \endtitre% % \beginquestion $\displaystyle \sin\left(\pi \over 6\right)$ \endquestion \beginreponse $1 \over 2$ \endreponse {\bf Réponses} \reset[exercice] \useblocks[titre,reponse] \stoptext

Re: [NTG-context] hiding enumerations

2008-08-06 Thread Wolfgang Schuster
\defineenumeration[exercice][location=inleft] \defineblock[titre,question,reponse] \hideblocks[,reponse] \begintitre \exercice {\bf Facile} \endtitre% % \beginquestion $\displaystyle \sin\left(\pi \over 6\right)$ \endquestion \beginreponse $1 \over 2$ \endreponse {\bf Réponses

Re: [NTG-context] hiding content

2008-07-25 Thread Alan Stone
How come this doesn't work ? \defineblock[prev] \defineblock[full] \hideblocks[full] %\hideblocks[prev] \def\previewMsg{This part is hidden} \def\showPreviewMsg{\beginprev \hairline \previewMsg \hairline \endprev} \starttext \input tufte \showPreviewMsg % it doesn't show %\beginprev

Re: [NTG-context] ConTeXt-ifying Kile

2008-01-02 Thread Matija Šuklje
[references] \headnumber[section] \headtext{text} # \hfilll \hideblocks[names][names] \high{text} # \HL \hl[number] # \hpos # \hspace # \ifconditional # \ifdefined # \iftrialtypesetting # \ifundefined \in{text}{text}[reference] # \includeFLOWchart # \includemenu # \increment \indentation \indenting

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-03 Thread batela
{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} \placelist[Score][criterium=all] \title{Criteria} \useblocks[answer]} \starttext \startquestion In a body with mass=2 kg is applied a force of 2N

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-03 Thread Patrick Gundlach
} \def\resetscore{\resetcounter{totalscore}} \def\savescore {\expanded{\dowritetolist{Score}{\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} \placelist[Score][criterium

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-03 Thread Aditya Mahajan
here {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} \placelist[Score][criterium=all] \title{Criteria} \useblocks[answer]} \starttext \startquestion In a body

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-03 Thread David Arnold
~points\endgraf} \def\resetscore{\resetcounter{totalscore}} \def\savescore {\expanded{\dowritetolist{Score} There should be no line break here {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-02 Thread Aditya Mahajan
={\stopQuestion}] \def\score[#1]{\dotfill\emspace#1~points\endgraf} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} I do not know how to do this. You can use lists, or there may be easier ways \title{Criteria} \useblocks[answer

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-02 Thread batela
[question][before={\startQuestion},after={\stopQuestion}] \def\score[#1]{\dotfill\emspace#1~points\endgraf} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} I do not know how to do this. You can use lists, or there may

Re: [NTG-context] Prepare exams with ConTeXT

2007-06-02 Thread Aditya Mahajan
{Score} {\convertednumber[Answer]}{\countervalue{totalscore}}{Question}}} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} \placelist[Score][criterium=all] \title{Criteria} \useblocks[answer]} \starttext \startquestion

[NTG-context] textblocks in tables

2007-03-16 Thread Bernhard Michael
but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement

Re: [NTG-context] textblocks in tables

2007-03-16 Thread Wolfgang Schuster
to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks

Re: [NTG-context] textblocks in tables

2007-03-16 Thread Bernhard Michael
want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks

Re: [NTG-context] textblocks in tables

2007-03-16 Thread Wolfgang Schuster
,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority

Re: [NTG-context] textblocks in tables

2007-03-16 Thread Bernhard Michael
the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority

Re: [NTG-context] keepblocks

2006-07-27 Thread Taco Hoekwater
David Arnold wrote: All, Can anyone explain what this is supposed to do? \keepblocks It is the opposite of \hideblocks, so you can use it to unhide hidden blocks, I assume. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl

[NTG-context] Hiding subanswer blocks

2006-07-15 Thread David Arnold
=heavygreen, conversion=characters] \setupenumerations [subanswer] [right=)] \defineblock [question,shortanswer,longanswer,subquestion,shortsubanswer,longsubanswe r] \hideblocks[shortanswer,longanswer,shortsubanswer,longsubanswer

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

2006-06-27 Thread David Arnold
] [location=inleft, headcolor=heavygreen, stopper=., way=bysection, sectionnumber=no] \defineenumeration [subanswer] [location=hanging, headcolor=heavygreen, conversion=characters] \setupenumerations [subanswer] [stopper=.] \defineblock[question,shortanswer,longanswer] \hideblocks

[NTG-context] Hiding subanswers

2006-06-26 Thread David Arnold
}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer,longanswer] Then we do something like: \beginquestion \starquestion Yada, yada, yada. \startsubquestion one part \stopsubquestion \startsubquestion part a \stopsubquestion \startsubquestion part b \stopsubquestion \stopquestion

[NTG-context] Unexplained blank page when using textblocks

2006-03-21 Thread David Arnold
[question,answer] \hideblocks[answer] \chapter{First Chapter} \dorecurse{1}{\input tufte\par} \section{First Section} \dorecurse{2}{\input tufte\par} \subsection{Exercises} \startcolumns[n=2] \beginquestion \startquestion[ex:1] What is the square root of $\pi$? \stopquestion \endquestion

Re: [NTG-context] Question and answers

2006-03-20 Thread Mojca Miklavec
,longanswer] \hideblocks[shortanswer,longanswer] I put a \placeanswers at the end of each section, but the numbering is contiguous across sections. For example, section 1 might end with exercise #15, then section 2 begins with exercise #16. How can I reset the numbers to start with #1 in section 2

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

2006-03-20 Thread David Arnold
={\color[blue]\bgroup}, stopper={.\egroup}, way=bysection, sectionnumber=no] \defineblock[question,answer] \hideblocks[answer] \chapter{First Chapter} \dorecurse{1}{\input tufte\par} \section{First Section} \dorecurse{2}{\input tufte\par} \section{Exercises} \startcolumns[n=2

[NTG-context] End of chapter solutions

2006-03-19 Thread David Arnold
[heavygreen] \bgroup}] \setupenumerations[answer][stopper={.\egroup}] \defineenumeration[subanswer][location=hanging,text={\color [heavygreen]\bgroup},conversion=characters] \setupenumerations[subanswer][stopper={.\egroup}] \defineblock[question,shortanswer,longanswer] \hideblocks[shortanswer

[NTG-context] And finally, resetting blocks?

2006-03-19 Thread David Arnold
}, stopper={.\egroup}] \defineenumeration[answer] \setupenumerations [answer] [location=inleft, text={\color[blue]\bgroup}, stopper={.\egroup}] \defineblock[question,answer] \hideblocks[answer] \chapter{First Chapter} \dorecurse{1}{\input tufte\par} \section{First Section

  1   2   >