Re: [NTG-context] ntg-context Digest, Vol 115, Issue 19
> Date: Thu, 9 Jan 2014 14:24:35 +0100 > From: Wolfgang Schuster > Subject: Re: [NTG-context] setuphead for in-paragraph head ? > Message-ID: <76850319-0120-41e9-8a4e-46fe9a9cb...@gmail.com> >> But this: >> >> \definehead >> [Exercise] [subsection] >> [after=] >> \starttext >> \startExercise [title=This is the exercise's title] >>The exercise's content. >> \stopExercise >> \stoptext >> I would like it to be: >> >> 1 This is the exercise's title The exercise's content. >> >> (When I can typeset that, I will see about formatting the number and so on.) > \definehead > [Exercise] > [subsection] > [alternative=text, >distance=0.5em, >insidesection=\ignorespaces] This is just what I was looking for. Thanks you all for your replies. I will also check the other ones, with the questions/hints/answers system. Jean-Guillaume ___ 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 ?
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 exercise's title The exercise's content. (When I can typeset that, I will see about formatting the number and so on.) I'm sorry it wasn't very clear. Now I understand that I misunderstood \startExercise{...} for \startExercise[title=...] and that's why I was confused about which newline I want to get rid of. Jean-Guillaume ___ 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 ?
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 exercise's title) The exercise's content. Actually, I would like to have the head's number and the head's title on the same line. That is, whith no new line. Jean-Guillaume ___ 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] setuphead for in-paragraph head ?
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 http://wiki.contextgarden.net/Command/setuphead , most of the options are not explained. My purpose is to define something like: \definehead[Exercise][subsection] \setuphead [Exercise] [alternative=Mine?, ..., numberstyle=bold] So I can typeset a list of exercises in a compact way. I could use enumerations but I don't think I should. Thanks. ___ 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 ___