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

2014-01-13 Thread Wolfgang Schuster
Am 13.01.2014 um 04:41 schrieb Otared Kavian ota...@gmail.com: 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

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

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

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

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

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

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

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

2014-01-11 Thread Wolfgang Schuster
Am 11.01.2014 um 00:36 schrieb Otared Kavian ota...@gmail.com: Hi Wolfgang, In mkiv, even using \startanswer, \stopanswer (and the same syntax with questions and hints) the blocks mechanism seems to be broken. The error message is still the following: \dostopnormalblock ...meter

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

2014-01-11 Thread Otared Kavian
Hi Wolfgang, Many thanks for your attention and insight. With your code everything works as expected. In case others would be interested, I give here a slight modification of what you sent, which works very well with mkiv: I only added

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

2014-01-10 Thread Otared Kavian
Hi Wolfgang, In mkiv, even using \startanswer, \stopanswer (and the same syntax with questions and hints) the blocks mechanism seems to be broken. The error message is still the following: \dostopnormalblock ...meter \c!after \par \egroup

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

2014-01-09 Thread Jean-Guillaume
Hi all, this is my first message here. In the subsection head, I would like to suppress the newline between the number and the text, so it behaves like some kind of numbered subsubject. I tried to modify some examples from the wiki, but without success. In

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

2014-01-09 Thread Marco Patzer
On 2014–01–09 Jean-Guillaume wrote: In the subsection head, I would like to suppress the newline between the number and the text, That's controlled by the “after” key. \setuphead [Exercise] [after=] My purpose is to define something like: \definehead[Exercise][subsection]

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

2014-01-09 Thread Jean-Guillaume
Thanks for your reply, Marco. Here is a full example: \starttext \definehead[Exercise][subsection] \setuphead [Exercise] [after=] \startExercise[]{(this is the exercise's title)} The exercise's content. \stopExercise \stoptext After contexting it, it looks like: 1 (this is the

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

2014-01-09 Thread Marco Patzer
On 2014–01–09 Jean-Guillaume wrote: \starttext \definehead[Exercise][subsection] \setuphead [Exercise] [after=] \startExercise[]{(this is the exercise's title)} The exercise's content. \stopExercise \stoptext \definehead [Exercise] [subsection] [after=] \starttext

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

2014-01-09 Thread Jean-Guillaume
But this: \definehead [Exercise] [subsection] [after=] \starttext \startExercise [title=This is the exercise's title] The exercise's content. \stopExercise \stoptext results to: 1 This is the exercise's title The exercise's content. and I would like it to be: 1 This is the

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

2014-01-09 Thread Wolfgang Schuster
Am 09.01.2014 um 14:23 schrieb Jean-Guillaume jng...@gmail.com: But this: \definehead [Exercise] [subsection] [after=] \starttext \startExercise [title=This is the exercise's title] The exercise's content. \stopExercise \stoptext results to: 1 This is the exercise's title

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

2014-01-09 Thread Otared Kavian
Hi Jean Guillaume, I guess Marco Patzer and Wolfgang Schuster gave you already the appropriate answers. Nevertheless, I wanted to share with you the definitions I use for the kind of work you want to do: %%% begin example-exercise.tex %%% % defining \startexo,

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

2014-01-09 Thread Jaroslav Hajtmar
Hello Otared. I will throw this one... Thanx. Once I was using exercise-answer package for LaTeX. Is there anything like this to use in ConTeXt? Thanx Jaroslav Hajtmar Dne 9.1.2014 15:19, Otared Kavian napsal(a): %%% begin example-exercise.tex %%% % defining

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

2014-01-09 Thread Otared Kavian
On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello Otared. I will throw this one... Thanx. Once I was using exercise-answer package for LaTeX. Is there anything like this to use in ConTeXt? Thanx Jaroslav Hajtmar Hello Jaroslav, I have something like the

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

2014-01-09 Thread Aditya Mahajan
On Thu, 9 Jan 2014, Otared Kavian wrote: On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello Otared. I will throw this one... Thanx. Once I was using exercise-answer package for LaTeX. Is there anything like this to use in ConTeXt? Thanx Jaroslav Hajtmar Hello

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

2014-01-09 Thread Wolfgang Schuster
Am 09.01.2014 um 16:36 schrieb Otared Kavian ota...@gmail.com: On 9 janv. 2014, at 15:48, Jaroslav Hajtmar hajt...@gyza.cz wrote: Hello Otared. I will throw this one... Thanx. Once I was using exercise-answer package for LaTeX. Is there anything like this to use in ConTeXt? Thanx

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

2014-01-09 Thread Otared Kavian
Hi Wolfgang, Hi Aditya, Thanks for your attention. Unfortunately adding \keepblocks[question] the example I sent before does not work in mkiv, and changing location=hanging to alternative=hanging does not help neither… The error message in mkiv is:

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

2014-01-09 Thread Wolfgang Schuster
Am 09.01.2014 um 18:36 schrieb Otared Kavian ota...@gmail.com: Hi Wolfgang, Hi Aditya, Thanks for your attention. Unfortunately adding \keepblocks[question] the example I sent before does not work in mkiv, and changing location=hanging to alternative=hanging does

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

2014-01-09 Thread Jaroslav Hajtmar
Hello Wolfgang, Otared and Aditya. Thanks for your advice and treatments. It is there a complete working example? I am sorry, but I am not able to achieve the proposed modifications to make it work. Thanx. Jaroslav Hajtmar Dne 9.1.2014 18:41, Wolfgang Schuster napsal(a): Am 09.01.2014