Re: [NTG-context] unknown library 'loc'

2014-01-12 Thread Keith J. Schultz
Hi Hans,

Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:

 On 1/3/2014 2:33 PM, H. van der Meer wrote:
 Has someone an idee what causes the unknown library message as in the
 log below? Is it harmful?
 
 fontstypescripts  unknown library 'loc'
 
 you can add a file type-loc.mkiv someplace in your local tree with
 
 % dummy file
 
 \endinput
 
 this file can be used for local overrides (just some mkii compatible feature).
If this is the case, should not the the dummy-file be in the 
distribution!
That way if somebody has local overrides they can modify it if needed,
and the rest of have one lees message we need to worry, about?

regards
Keith.

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2014-01-12 Thread Jaroslav Hajtmar

Hello Otared and Wolfgang.

Thanks for launching this example.
Is there a possibility to write the answers into a more compact form 
(more columns, one paragraph, etc) like in any textbooks? I tried 
experimenting, but I was unable to put answers into a compact form.

Thanks Jaroslav Hajtmar

Here is my modification of answer enumeration (not working):

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,
beforehead=,
afterhead=,
 before={\startcolumns[n=4]},
after=\stopcolumns,
width=0.5em,
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]

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer
\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer


\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\stoptext
 end question-hint-answer-blocks.tex



Dne 11.1.2014 20:01, Otared Kavian napsal(a):

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,
width=4.5cm,
text={Answer to question},
headstyle={\bi},
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

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\stoptext
 end question-hint-answer-blocks.tex


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Weird page numbering

2014-01-12 Thread Zhichu Chen
minimal code:
===
\setuppagenumbering[alternative=doublesided]

\starttext

\startstandardmakeup
TITLE
\stopstandardmakeup

\startfrontmatter
  \chapter{Preface}
  \completecontent[criterium=all]
\stopfrontmatter

\stoptext
===
The page number of the preface chapter shown in the table of contents is 0
in my recent ConTeXt:
context -version

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file:
/opt/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2014.01.11 23:58


I'm currently fine with that feature but


-- 
Best Regards
Chen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

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

2014-01-12 Thread Otared Kavian
Hi Jaroslav,

Actually the formatting of what you put in the block determined for example by
\beginanswer
The answer is…
\endanswer
is independent of the block mechanism: you can use whatever structure you want. 
In the example we exchanged on, an enumeration such as
\startanswer
\stopanswer
where this \start \stop has been defined by \defineenumeration[answer], but you 
can use your own compact formatting instead of this.

Best regards: OK

On 12 janv. 2014, at 11:45, Jaroslav Hajtmar hajt...@gyza.cz wrote:

 Hello Otared and Wolfgang.
 
 Thanks for launching this example.
 Is there a possibility to write the answers into a more compact form (more 
 columns, one paragraph, etc) like in any textbooks? I tried experimenting, 
 but I was unable to put answers into a compact form.
 Thanks Jaroslav Hajtmar
 
 Here is my modification of answer enumeration (not working):
 
  begin question-hint-answer-blocks.tex
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]
 
 \defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]
 
 \defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]
 
 \defineenumeration[answer]
[alternative=hanging,
beforehead=,
afterhead=,
 before={\startcolumns[n=4]},
after=\stopcolumns,
width=0.5em,
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]
 
 \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 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \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 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \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 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 \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 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 
 \section{Hints to all questions}
 
 \useblocks[hint]
 
 \section{Answers to all questions}
 
 \useblocks[answer]
 
 \stoptext
  end question-hint-answer-blocks.tex
 
 
 
 Dne 11.1.2014 20:01, Otared Kavian napsal(a):
  begin question-hint-answer-blocks.tex
 \defineblock[question]
 \defineblock[hint]
 \defineblock[answer]
 
 \defineenumeration[question]
  [alternative=hanging,
  width=2.5cm,
  text={Question},
  headstyle={\bi},
  stopper={.}]
  
 \defineenumeration[hint]
  [alternative=hanging,
  width=4cm,
  text={Hint for question},
  headstyle={\bi},
  stopper={.}]
 
 \defineenumeration[answer]
  [alternative=hanging,
  width=4.5cm,
  text={Answer to question},
  headstyle={\bi},
  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
 
 \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 / 10$?
 \endquestion
 
 \beginhint
 Remember that $10\times 10 = 100$.
 \endhint
 
 \beginanswer
 $10$
 \endanswer
 
 \section{Hints to all questions}
 
 \useblocks[hint]
 
 \section{Answers to all questions}
 
 \useblocks[answer]
 
 \stoptext
  end question-hint-answer-blocks.tex
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : 

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

2014-01-12 Thread Jaroslav Hajtmar

OK.  Thanx very much - for me it is a useful thing...
Jaroslav Hajtmar


Dne 12.1.2014 17:08, Otared Kavian napsal(a):

Hi Jaroslav,

Actually the formatting of what you put in the block determined for example by
\beginanswer
The answer is…
\endanswer
is independent of the block mechanism: you can use whatever structure you want. 
In the example we exchanged on, an enumeration such as
\startanswer
\stopanswer
where this \start \stop has been defined by \defineenumeration[answer], but you 
can use your own compact formatting instead of this.

Best regards: OK

On 12 janv. 2014, at 11:45, Jaroslav Hajtmar hajt...@gyza.cz wrote:


Hello Otared and Wolfgang.

Thanks for launching this example.
Is there a possibility to write the answers into a more compact form (more 
columns, one paragraph, etc) like in any textbooks? I tried experimenting, but 
I was unable to put answers into a compact form.
Thanks Jaroslav Hajtmar

Here is my modification of answer enumeration (not working):

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,
beforehead=,
afterhead=,
 before={\startcolumns[n=4]},
after=\stopcolumns,
width=0.5em,
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]

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer
\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer


\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\stoptext
 end question-hint-answer-blocks.tex



Dne 11.1.2014 20:01, Otared Kavian napsal(a):

 begin question-hint-answer-blocks.tex
\defineblock[question]
\defineblock[hint]
\defineblock[answer]

\defineenumeration[question]
[alternative=hanging,
width=2.5cm,
text={Question},
headstyle={\bi},
stopper={.}]

\defineenumeration[hint]
[alternative=hanging,
width=4cm,
text={Hint for question},
headstyle={\bi},
stopper={.}]

\defineenumeration[answer]
[alternative=hanging,
width=4.5cm,
text={Answer to question},
headstyle={\bi},
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

\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 / 10$?
\endquestion

\beginhint
Remember that $10\times 10 = 100$.
\endhint

\beginanswer
$10$
\endanswer

\section{Hints to all questions}

\useblocks[hint]

\section{Answers to all questions}

\useblocks[answer]

\stoptext
 end question-hint-answer-blocks.tex

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : 

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

2014-01-12 Thread Wolfgang Schuster

Am 11.01.2014 um 20:01 schrieb Otared Kavian ota...@gmail.com:

 I will put this example on the wiki, but before doing so I have another 
 question:
 can one add two automatic links at the end of each question so that one can 
 navigate easily to the respective hint or answer corresponding to that 
 question? Indeed if this were possible, one would add also two automatic 
 links to each hint going to its question and the corresponding answer, and 
 two other links to each answer going to its hint and question. One can do 
 this manually by adding a reference to each question, each hint and each 
 answer, but it would be nice to have this done automatically.

Not without writing your own environment where you generate a unique reference 
for each question, hint and answer.

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2014-01-12 Thread Wolfgang Schuster

Am 12.01.2014 um 21:47 schrieb Otared Kavian ota...@gmail.com:

 
 On 12 janv. 2014, at 21:30, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 11.01.2014 um 20:01 schrieb Otared Kavian ota...@gmail.com:
 
 I will put this example on the wiki, but before doing so I have another 
 question:
 can one add two automatic links at the end of each question so that one can 
 navigate easily to the respective hint or answer corresponding to that 
 question? Indeed if this were possible, one would add also two automatic 
 links to each hint going to its question and the corresponding answer, and 
 two other links to each answer going to its hint and question. One can do 
 this manually by adding a reference to each question, each hint and each 
 answer, but it would be nice to have this done automatically.
 
 Not without writing your own environment where you generate a unique 
 reference for each question, hint and answer.
 
 If I understand well, one way might be something like (where 
 \theQuestionNumber stands for the number given by \startquestion)
 
 \define\StartQuestion{\startquestion[Q:\theQuestionNumber]}
 \define\StartHint{\startquestion[H:\theQuestionNumber]}
 \define\StartAnswer{\startquestion[A:\theQuestionNumber]}
 \define\StopQuestion{\par\in{Hint}[H:\theQuestionNumber]\par 
 \in{Answer}[A:\theQuestionNumber]\stopquestion}
 \define\StopHint{\par\in{Question}[Q:\theQuestionNumber]\par 
 \in{Answer}[A:\theQuestionNumber]\stophint}
 \define\StopAnswer{\par\in{Question}[Q:\theQuestionNumber]\par 
 \in{Hint}[H:\theQuestionNumber]\stopquestion}
 
 and then using \StartQuestion \StopQuestion, etc, instead of \startquestion 
 \stopquestion.
 But how can I refer to the \theQuestionNumber set by \startquestion?


When you have only questions and answers you can use the coupling key but in 
your case something like below is necessary:

\defineenumeration[Question]
\defineenumeration[Answer]

\define\startquestion
  {\increment\QuestionCounter
   \expanded{\startQuestion[reference=Question:\QuestionCounter]}}

\define\stopquestion
  {\stopQuestion
   \par
   \in{Answer}[Answer:\QuestionCounter]}

\define\startanswer
  {\expanded{\startAnswer[reference=Answer:\QuestionCounter]}}

\define\stopanswer
  {\stopAnswer
   \par
   \in{Question}[Question:\QuestionCounter]}

\setupinteraction[state=start]

\starttext

\startquestion
What is the answer to life the universe and everything?
\stopquestion

\page

\startanswer
42.
\stopanswer

\stoptext

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] unknown library 'loc'

2014-01-12 Thread Hans Hagen

On 1/12/2014 11:23 AM, Keith J. Schultz wrote:

Hi Hans,

Am 07.01.2014 um 00:24 schrieb Hans Hagen pra...@wxs.nl:


On 1/3/2014 2:33 PM, H. van der Meer wrote:

Has someone an idee what causes the unknown library message as in the
log below? Is it harmful?

fontstypescripts  unknown library 'loc'


you can add a file type-loc.mkiv someplace in your local tree with

% dummy file

\endinput

this file can be used for local overrides (just some mkii compatible feature).

If this is the case, should not the the dummy-file be in the 
distribution!
That way if somebody has local overrides they can modify it if needed,
and the rest of have one lees message we need to worry, about?


It depends ... there are some more loc files, like cont-loc.mkiv and we 
don't ship these either. Normally users would put such files in 
texmf-local nowadays but in the past that tree has changes positions in 
texlive (loading order) so we make no assumptions i.e. it can even be in 
the main base path which in turn means that we need to make sure it 
doesn't get overwritten. Easier is probably to suppress the message 
(ugly but doable).


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


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

2014-01-12 Thread Otared Kavian
Hi Wolfgang,

Thanks for the tip: I’ll try to adapt what you suggest to the case of blocks 
and question-hint-answer, and then let you know if I succeed.
Out of curiosity, how can one access the counter associated to an enumeration 
or an item?

Also, if I understand correctly, the command
\increment\QuestionCounter
creates first a counter named QuestionCounter, if it does not exist yet, and 
then increments its value: so one does not need anymore commands such as
\newcounter\QuestionCounter
before incrementing it. Am I right?

Best regards: OK

On 12 janv. 2014, at 22:40, Wolfgang Schuster schuster.wolfg...@gmail.com 
wrote:

 […]
 When you have only questions and answers you can use the coupling key but in 
 your case something like below is necessary:
 
 \defineenumeration[Question]
 \defineenumeration[Answer]
 
 \define\startquestion
  {\increment\QuestionCounter
   \expanded{\startQuestion[reference=Question:\QuestionCounter]}}
 
 \define\stopquestion
  {\stopQuestion
   \par
   \in{Answer}[Answer:\QuestionCounter]}
 
 \define\startanswer
  {\expanded{\startAnswer[reference=Answer:\QuestionCounter]}}
 
 \define\stopanswer
  {\stopAnswer
   \par
   \in{Question}[Question:\QuestionCounter]}
 
 \setupinteraction[state=start]
 
 \starttext
 
 \startquestion
 What is the answer to life the universe and everything?
 \stopquestion
 
 \page
 
 \startanswer
 42.
 \stopanswer
 
 \stoptext
 
 Wolfgang
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Invoice Example

2014-01-12 Thread Henning Hraban Ramm

Am 2014-01-02 um 21:07 schrieb hwit...@gmail.com:

 
 I copied the three files required for the invoice example on the wiki garden.
 
  invoice.tex,  invoicefunctions.tex, adn invoicesetup.tex
 
 $ context  invoice.tex
 
 The above compiles without error, but the resulting pdf doesn't give me what 
 I would expect.  There is a 
 
  Regression in latest release of iT E X  
 
 In the main body of the document, which I don't think should be there.
 
 My setup: mtx-context | current version: 2013.09.03 16:23
 
 Is the source out of date with the context version I am using or am I missing 
 something?

Hi anonymous,

I finally came to checking that code - it was still written for an old version 
of Wolfgang’s letter module.
Now it’s updated to work with the latest. Feel free to fix remaining errors 
yourself.
http://wiki.contextgarden.net/Invoice

To adapt it for your own purposes you’ll need to learn to use the letter module 
(or bug Wolfgang to help you ;-)


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___