ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Werner Hintze" <w.hintze@posteo.eu>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: sections without numbering
Date: Sun, 13 Jul 2014 09:23:46 +0200	[thread overview]
Message-ID: <498C552E-1A52-424C-A952-FF066B0CAFA4@posteo.eu> (raw)
In-Reply-To: <20140713070307.GA24604@acheron>


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

Hi Philipp,

I don’t know what happened: I believe I started a new thread with a 
new subject. My mail program makes sometimes strange things…

Anayway. Thanks for your response. In the meantime I found another 
solution:


	\starttext

	\define[2]\MyChapter {#1.\,Kapitel: #2}
	\setuphead [chapter] [command=\MyChapter, page=no]

	\startchapter
		[title=Die ersten Menschen]
	\input knuth
	\stopchapter

	\startchapter
		[title=Mehr von den ersten Menschen]
		\input knuth
	\stopchapter

	\stoptext

But you helped me to unterstand better what happens here.

Thank you and best regards

Werner


***
☞ Werner Hintze  ●  Auerstraße 1  ●  D-10249 Berlin ☜
Fon: +49 (30) 42 73 485 ● Mob: +49 (160) 94 68 76 60
***
On 13 Jul 2014, at 9:03, Philipp Gesang wrote:

Hello Werner!

·········

I can’t figure out how to change the chapter heading. More important:
I have no idea where to find the needed information. What I want to see
is for example:

Kapitel: Blablabla

Several unnumbered structures are predefined.

\setuphead [subject] [before=Kapitel~]
\starttext
\startsubject [title=foo] \input knuth \stopsubject
\stoptext

If you wish for the styles of the label and the title to match,
you’ll have to assign them manually:

\definealternativestyle [subjectstyle] [\italic \tfd]

\setuphead [subject] [
style=subjectstyle,
before=\bgroup \subjectstyle Kapitel~\egroup,
]
\starttext
\startsubject [title=foo] \input knuth \stopsubject
\stoptext

The reason as to why this isn’t as easy as

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [number=no]

is that the section label is treated as part of the number.
Consequently, Context exposes no option to typeset the label
independently. However, it can be made work by passing an
appropriate command that omits the number:

\setuplabeltext [chapter=Kapitel]
\setuphead [chapter] [deepnumbercommand=\gobbleoneargument]

\starttext
\startchapter [title=foo] \input knuth \stopchapter
\stoptext

Where can I find these informations?

In the manual [0]. The \title and \subject structurals even made the
second place on the “top ten” ladder of important commands
(cf. section 1.10). The numberless versions also feature
promintently on the wiki [1].

PS Next time you ask a new question, please open a new thread
with an adequate subject to keep the list tidy.

Best regards,
Philipp

[0] http://wiki.contextgarden.net/ConTeXt_reference_manual
[1] http://wiki.contextgarden.net/Titles#Default

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

[-- Attachment #1.2: Type: text/html, Size: 3999 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
___________________________________________________________________________________

  reply	other threads:[~2014-07-13  7:23 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-11 17:06 running PlainTeX from beta Meer, H. van der
2014-07-11 17:10 ` Hans Hagen
2014-07-11 17:13   ` Philipp Gesang
2014-07-11 19:50     ` Hans Hagen
2014-07-11 21:41       ` Otared Kavian
2014-07-11 22:41         ` Hans Hagen
2014-07-12  7:31           ` Otared Kavian
2014-07-12 12:32             ` Hans Hagen
2014-07-12 12:53               ` Otared Kavian
2014-07-12 12:58                 ` Hans Hagen
2014-07-12 13:19               ` Werner Hintze
2014-07-13  7:03                 ` sections without numbering Philipp Gesang
2014-07-13  7:23                   ` Werner Hintze [this message]
2014-07-13  7:28                     ` Philipp Gesang
2014-07-13  9:38                     ` Wolfgang Schuster
2014-07-13 10:06                       ` Werner Hintze
2014-07-25 12:06                         ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=498C552E-1A52-424C-A952-FF066B0CAFA4@posteo.eu \
    --to=w.hintze@posteo.eu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).