ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: \setuphead[part] - special look
Date: Mon, 22 Jun 2015 11:42:44 +0200	[thread overview]
Message-ID: <op.x0mk9igvtpjj8f@lpr> (raw)
In-Reply-To: <5587CCA2.9010806@gmail.com>

Hello Wolfgang,

thank you for the solution, it pretty systemic.

Ad "Ad 2": There was no question as succeeded placing page number and name into the page gold ratio, so just mentioned as one of the features required.

After some plying with your solution, I deduce:

We have to derive a new alternative for "part" (here "partpage") as we CAN assign a new "renderingsetup" to this alternative but we CANNOT assign a rendering setup in the scope of \setuphead.

IOW, there is no "\setuphead[part][renderingsetup=partpage]".

If there was the option "\setuphead[part][renderingsetup=partpage]" we could simplify to:

----
% No headalternative here

\startsetups[partpage]
    \startmakeup[part]
        \headsetupspacing
        \headnumbercontent
        \blank[big]
        \headtextcontent
    \stopmakeup
\stopsetups

\definemakeup
  [part]
  [align=middle,
   top=\vfill\vfill,
   bottom=\vfill\vfill\vfill]

\setuphead
  [part]
  [...
   renderingsetup=partpage,
   ...
  ]

...

----

Am I right?

(And, I understand that the aim is not to support all extraordinary request(s) in \setuphead by its keys/options - it is enough to have A way to get them, here using a "headalternative"...)

Thanks again.

Best regards,

Lukas


On Mon, 22 Jun 2015 10:51:46 +0200, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

>
> You can use the \pushbackground and \popbackground command to limit the
> background changes to a certain part of your document.

> \defineheadalternative
>    [partpage]
>    [renderingsetup=partpage]
>
> \startsetups[partpage]
>
>      \startmakeup[part]
>          \headsetupspacing
>          \headnumbercontent
>          \blank[big]
>          \headtextcontent
>      \stopmakeup
>
> \stopsetups
>
> \definemakeup
>    [part]
>    [align=middle,
>     top=\vfill\vfill,
>     bottom=\vfill\vfill\vfill]
>
> \setuphead
>    [part]
>    [placehead=yes,
>     alternative=partpage,
>     page=right,
>before={\pushbackground[page]\setupbackgrounds[page][background=color,backgroundcolor=blue]},
>     after={\page\popbackground},
>     bodypartlabel=part,
>     align=middle,
>     numberstyle=\bfb,
>     textstyle=\bfd\sc]
>
> \setuplabeltext[en][part=DĂl ]
>
> \starttext
>    \part{Part}
>    \input knuth
> \stoptext
>
> BTW: Where is Ad 2?
>
> Wolfgang
>


-- 
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___________________________________________________________________________________
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:[~2015-06-22  9:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22  7:35 Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-22  8:51 ` Wolfgang Schuster
2015-06-22  9:42   ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2015-06-22 16:36     ` Wolfgang Schuster
2015-06-23  7:45       ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-23 14:28         ` Wolfgang Schuster
2015-06-29 12:05           ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-29 12:33             ` Wolfgang Schuster
2015-06-29 13:09               ` Procházka Lukáš Ing. - Pontex s. r. o.

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=op.x0mk9igvtpjj8f@lpr \
    --to=lpr@pontex.cz \
    --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).