ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to get the style definitions from \chapter, \section, \subsection
@ 2011-03-19 16:21 Cecil Westerhof
  2011-03-19 17:25 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Cecil Westerhof @ 2011-03-19 16:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

The style of chapter is significant bigger as the style from section, but it
looks like the style from section and subsection are about the same. I have
a workaround with the following:
    \setuphead[section][before={\blank[3*big] \testpage[15]}]
    \setuphead[subsection][before={\blank[big,small]
\testpage[10]},style={\bf}]

This works reasonable. But it would be better if I could find out the
definitions from \section and \subsection. Then I could make a more
fine-tuned solution. Is it possible to get those definitions?

-- 
Cecil Westerhof

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

[-- Attachment #2: Type: text/plain, Size: 486 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] 2+ messages in thread

* Re: How to get the style definitions from \chapter, \section, \subsection
  2011-03-19 16:21 How to get the style definitions from \chapter, \section, \subsection Cecil Westerhof
@ 2011-03-19 17:25 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-03-19 17:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.03.2011 um 17:21 schrieb Cecil Westerhof:

> The style of chapter is significant bigger as the style from section, but it looks like the style from section and subsection are about the same. I have a workaround with the following:
>     \setuphead[section][before={\blank[3*big] \testpage[15]}]
>     \setuphead[subsection][before={\blank[big,small] \testpage[10]},style={\bf}]
> 
> This works reasonable. But it would be better if I could find out the definitions from \section and \subsection. Then I could make a more fine-tuned solution. Is it possible to get those definitions?

\starttext

\starttabulate[|lh{\type}|lh{\type}|lh{\type}|lh{\type}|]
\NC \bf command \NC \bf before      \NC \bf after       \NC \bf style \NC\NR
\HC {\part}     \HC {\blank[2*big]} \HC {\blank[2*big]} \HC {\tfc}    \NC\NR
\HC {\chapter}  \HC {\blank[2*big]} \HC {\blank[2*big]} \HC {\tfc}    \NC\NR
\HC {\section}  \HC {\blank[2*big]} \HC {\blank}        \HC {\tfa}    \NC\NR
\stoptabulate

\stoptext

\subsection has the same values as \section because unknown values are taken
from the parent, e.g. \subsection use \section settings and \section use \chapter
values etc.

A exception to this behaviour are textstyle, textcolor, numberstyle and numbercolor
because the use only the values from style/colors keys of the own level.

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

end of thread, other threads:[~2011-03-19 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-19 16:21 How to get the style definitions from \chapter, \section, \subsection Cecil Westerhof
2011-03-19 17:25 ` Wolfgang Schuster

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