ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: setuphead for in-paragraph head ?
@ 2014-01-09 12:44 Jean-Guillaume
  2014-01-09 13:03 ` Marco Patzer
  0 siblings, 1 reply; 25+ messages in thread
From: Jean-Guillaume @ 2014-01-09 12:44 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: setuphead for in-paragraph head ?
@ 2014-01-09 13:23 Jean-Guillaume
  2014-01-09 13:24 ` Wolfgang Schuster
  2014-01-09 14:19 ` Otared Kavian
  0 siblings, 2 replies; 25+ messages in thread
From: Jean-Guillaume @ 2014-01-09 13:23 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 25+ messages in thread
* setuphead for in-paragraph head ?
@ 2014-01-09  9:43 Jean-Guillaume
  2014-01-09 11:27 ` Marco Patzer
  0 siblings, 1 reply; 25+ messages in thread
From: Jean-Guillaume @ 2014-01-09  9:43 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 616 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 820 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-01-13 10:07 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-09 12:44 setuphead for in-paragraph head ? Jean-Guillaume
2014-01-09 13:03 ` Marco Patzer
  -- strict thread matches above, loose matches on Subject: below --
2014-01-09 13:23 Jean-Guillaume
2014-01-09 13:24 ` Wolfgang Schuster
2014-01-09 14:19 ` Otared Kavian
2014-01-09 14:48   ` Jaroslav Hajtmar
2014-01-09 15:36     ` Otared Kavian
2014-01-09 17:12       ` Aditya Mahajan
2014-01-09 17:23       ` Wolfgang Schuster
2014-01-09 17:36         ` Otared Kavian
2014-01-09 17:41           ` Wolfgang Schuster
2014-01-10  6:56             ` Jaroslav Hajtmar
2014-01-10 23:36             ` Otared Kavian
2014-01-11  9:12               ` Wolfgang Schuster
2014-01-11 19:01                 ` Otared Kavian
2014-01-12 10:45                   ` Jaroslav Hajtmar
2014-01-12 16:08                     ` Otared Kavian
2014-01-12 19:29                       ` Jaroslav Hajtmar
2014-01-12 20:30                   ` Wolfgang Schuster
2014-01-12 20:47                     ` Otared Kavian
2014-01-12 21:40                       ` Wolfgang Schuster
2014-01-13  3:41                         ` Otared Kavian
2014-01-13 10:07                           ` Wolfgang Schuster
2014-01-09  9:43 Jean-Guillaume
2014-01-09 11:27 ` Marco Patzer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).