ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Chapter numbering - applying several commands at once
       [not found] <528912c0.45230f0a.7369.7b98SMTPIN_ADDED_BROKEN@mx.google.com>
@ 2013-11-17 19:48 ` Wolfgang Schuster
  2013-11-17 22:39   ` Jan Tosovsky
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2013-11-17 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.11.2013 um 20:02 schrieb Jan Tosovsky <j.tosovsky@tiscali.cz>:

> Dear All,
> 
> in my book I'd like to precede my titles with the number formated as
> 'CHAPTER I.', e.g. roman numeral and all this small caped and also in bold
> as the title itself.
> 
> In the following definition I can use either:
> (1) \sc + \setcharactercasing - small caps + lowercased number (but not
> bold)
> (2) \smallcaps - bold small caps (but not lowercased number)
> (3) \setcharactercasing - lowercased number (but not small caps)
> 
> Idealy I'd like to combine \smallcaps + \setcharactercasing, but this throws
> an error.
> 
> I am also considering using just smaller font, but I am facing similar
> problems as I cannot combine both the casing conversion and e.g. \bfb in
> single \groupedcommand.
> 
> I prefer setting the upercased version of Romannumerals as I do not want
> small roman literals in the TOC or bookmarks. Are there better ways to
> accomplish this?
> 
> \definefontfamily[palatino][rm][Palatino Linotype][features={default,
> quality}]
> \setupbodyfont[palatino]
> 
> \setuplabeltext[en][chapter=chapter~]
> 
> \setuphead[chapter][
>     alternative=middle,
>     style=\bfc,
>     conversion=Romannumerals,
>     numbercommand=\groupedcommand{\sc
> \setcharactercasing[word]}{.\blank[0.4cm]},
> ]


Inestead of small capitals for the chapter number you can use capitals in combination with a smaller font size.

\setuplabeltext[en][chapter=Chapter~]

\setuphead
  [chapter]
  [alternative=middle,
   style=\bfc,
   numberstyle={\setcharactercasing[WORD]\kerncharacters[0.125]\bfa},
   numbercommand=\groupedcommand{}{\blank[4mm]},
   sectionstopper={.},
   inbetween={\blank[4mm]},
   conversion=Romannumerals]

Wolfgang
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Chapter numbering - applying several commands at once
  2013-11-17 19:48 ` Chapter numbering - applying several commands at once Wolfgang Schuster
@ 2013-11-17 22:39   ` Jan Tosovsky
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Tosovsky @ 2013-11-17 22:39 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

On 2013-11-17 Wolfgang Schuster wrote:
> Am 17.11.2013 um 20:02 schrieb Jan Tosovsky:
> 
> > in my book I'd like to precede my titles with the number formated as
> > 'CHAPTER I.', e.g. roman numeral and all this small caped and also in
> > bold as the title itself.
> >
> Instead of small capitals for the chapter number you can use capitals
> in combination with a smaller font size.
> 
> \setuplabeltext[en][chapter=Chapter~]
> 
> \setuphead
>   [chapter]
>   [alternative=middle,
>    style=\bfc,
>    numberstyle={\setcharactercasing[WORD]\kerncharacters[0.125]\bfa},
>    numbercommand=\groupedcommand{}{\blank[4mm]},
>    sectionstopper={.},
>    inbetween={\blank[4mm]},
>    conversion=Romannumerals]

I must admit this looks much better! Thanks.

The same approach can be used also for small caps, but the result is not so
appealing. Especially I don't like the size of the 'stopper' (dot).

Btw, that case conversion can be eliminated using
\setuplabeltext[en][chapter=CHAPTER~]

Jan

___________________________________________________________________________________
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] 3+ messages in thread

* Chapter numbering - applying several commands at once
@ 2013-11-17 19:02 Jan Tosovsky
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Tosovsky @ 2013-11-17 19:02 UTC (permalink / raw)
  To: 'mailing list for ConTeXt users'

Dear All,

in my book I'd like to precede my titles with the number formated as
'CHAPTER I.', e.g. roman numeral and all this small caped and also in bold
as the title itself.

In the following definition I can use either:
(1) \sc + \setcharactercasing - small caps + lowercased number (but not
bold)
(2) \smallcaps - bold small caps (but not lowercased number)
(3) \setcharactercasing - lowercased number (but not small caps)

Idealy I'd like to combine \smallcaps + \setcharactercasing, but this throws
an error.

I am also considering using just smaller font, but I am facing similar
problems as I cannot combine both the casing conversion and e.g. \bfb in
single \groupedcommand.

I prefer setting the upercased version of Romannumerals as I do not want
small roman literals in the TOC or bookmarks. Are there better ways to
accomplish this?

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]
\setupbodyfont[palatino]

\setuplabeltext[en][chapter=chapter~]

\setuphead[chapter][
     alternative=middle,
     style=\bfc,
     conversion=Romannumerals,
     numbercommand=\groupedcommand{\sc
\setcharactercasing[word]}{.\blank[0.4cm]},
]

\setupcombinedlist[content][list=chapter, alternative=c]

\starttext
\completecontent
\chapter{Foo}text
\chapter{Bar}text
\stoptext


Thanks, Jan

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2013-11-17 22:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <528912c0.45230f0a.7369.7b98SMTPIN_ADDED_BROKEN@mx.google.com>
2013-11-17 19:48 ` Chapter numbering - applying several commands at once Wolfgang Schuster
2013-11-17 22:39   ` Jan Tosovsky
2013-11-17 19:02 Jan Tosovsky

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).