ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Robert Blackstone <blackstone.robert@gmail.com>
To: ntg-context@ntg.nl
Subject: Chapter-subtitle and a short version of a( long) chapter title to fit in the header
Date: Tue, 10 Jan 2017 12:23:39 +0100	[thread overview]
Message-ID: <22482B4A-17D8-40E5-AD27-38F552F5F71A@gmail.com> (raw)

Dear all, 

Presently I’m restyling a PhD-dissertation to make it conform to the requirements of an external publisher.

One of the items is the form of the chapter-heads.
What would be needed on the first page of a chapter, Chapter 1 for instance, is:
 
- Chapter 1  (midaligned, boldface, smallish size (\tfa))
- some vertical space
- Chapter title (midaligned, SmallCaps, slanted, \tfc)
- some vertical space
- (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb or smaller)

Furthermore I would need a header with the chapter-title on the even-numbered pages and the section-title on the odd-numbered pages.
The problem here is that some of the chapter titles are too long for this and they overlap the pagenumbers in the header. 
That is why I would need a shorter form of the chapter title and in some cases a main title and a subtitle.

As far as I know, in the command to start a chapter there is no possibility to introduce, in addition to the special version of the title for the ToC, another special, shorter, version of the title for the header.   nor a subtitle. 

I use:

\startchapter[bookmark=,list={Accompaniment in the 16th and 17th century and the development of BC},marking=,reference=ch:HistDevel,title={Accompaniment in the sixteenth and seventeenth century and the development of basso continuo}]%[a=a,b=b]

For the headertexts I use what I found on  http://wiki.contextgarden.net/Headers_and_Footers and it works quite well:

 %%%%%%%%%%%
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]

\startsetups[text a]
  \rlap{\sc \getmarking[section]}
  \hfill
  \llap{\pagenumber}
\stopsetups

\startsetups[text b]
  \rlap{\pagenumber}
  \hfill
  \llap{\sc \getmarking[chapter]}
\stopsetups
%%%%%%%%%%%

So my main problem is that I need, in the command \startchapter, a third form for the chapter title to fit in the header and a compatible version of the setup for the headertexts.

I did try to extract that from the ConTeXt wiki but I soon got lost.

Thanks  in advance for any help.

Best regards,

Robert Blackstone

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2017-01-10 11:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-10 11:23 Robert Blackstone [this message]
2017-01-23 22:46 ` Aditya Mahajan
     [not found] <mailman.1752.1485246889.2018.ntg-context@ntg.nl>
2017-01-24 11:37 ` Chapter-subtitle and a short version of a (long) " Robert Blackstone

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=22482B4A-17D8-40E5-AD27-38F552F5F71A@gmail.com \
    --to=blackstone.robert@gmail.com \
    --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).