ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Multiple Layouts
@ 2021-03-13 17:12 Jeroen
  2021-03-13 17:19 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen @ 2021-03-13 17:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

I have the following document, but I want a different
\setuplayout[backspace....] for the titlepage and copyright space. What is
the best way to achieve this?





\setupcolors
  [state=start]

\usecolors
  [xwi]

\usetypescriptfile
  [euler]

\definetypeface
  [mainface][rm][serif][pagella][default]

\definetypeface
  [mainface][tt][mono][dejavu][default]

\definetypeface
  [mainface][mm][math][pagellaovereuler][default]

\setupbodyfont
  [mainface,11.5pt]

\setuppapersize
  [A4,
   portrait]

\setuplayout
  [backspace=19mm,
   width=176mm,
   topspace=7mm,
   header=10mm,
   headerdistance=3mm,
   height=middle,
   footerdistance=5mm,
   footer=9mm,
   bottomspace=11mm]

\setuphead
  [chapter]
  [style={\bfb},
   before={\vskip 0mm},
   after={\vskip-\parskip}]

\setuphead
[section]
[style=bold,
   before={\vskip 6mm},
   after={\vskip 2mm}]

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfooter
  [style=\it]

\setupfootertexts
  [{Footer Title} \hfill \pagenumber]

\definemakeup
  [titlepage]
  [align=left]

\definemakeup
  [copyrightpage]

\setupmakeup
  [copyrightpage]
  [align={right,bottom},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [{\rm\bfd\color[red]}]
  []

\definealternativestyle
  [subtitlestyle]
  [\rm\tfb]
  []

\definealternativestyle
  [publisherstyle]
  [\rm\bfb]
  []


\starttext

\startmakeup[titlepage]
\authorstyle{The Author}
\blank[13*big]
\titlestyle{Title 1}
\blank[5*small]
\titlestyle{Title 2}
\blank[2*big]
\subtitlestyle{Subtitle}
\blank[47*big]
\publisherstyle{Publisher}
\stopmakeup

\startmakeup[copyrightpage]
Title \crlf
Subtitle
\blank
Geprint in Country. \crlf
Document Reference ABC-ABC-001. \crlf
Eerste draft versie, gepubliceerd op \date. \crlf
Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10.
\blank
\startalignment[flushmiddle]
Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf
Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in een
geautomatiseerd gegevensbestand en/of openbaar gemaakt in enige vorm of op
enige wijze, hetzij elektronisch, mechanisch, door fotokopieën, opnamen of
op enige andere manier zonder voorafgaande schriftelijk bevestigde
toestemming van Publisher.
\stopalignment
\stopmakeup

\startcolumns[2]

\startchapter[title={Bryson and Tufte}]

\dorecurse{5}{
  \startsection[title={Bryson}] \input{bryson} \stopsection
  \startsection[title={Tufte}] \input{tufte} \stopsection}

\stopchapter

\startchapter[title={Zapf and Ward}]

\dorecurse{5}{
  \startsection[title={Zapf}] \input{zapf} \stopsection
  \startsection[title={Ward}] \input{ward} \stopsection}

\stopchapter

\stopcolumns

\stoptext

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

[-- Attachment #2: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Multiple Layouts
  2021-03-13 17:12 Multiple Layouts Jeroen
@ 2021-03-13 17:19 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2021-03-13 17:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Jeroen schrieb am 13.03.2021 um 18:12:
> I have the following document, but I want a different 
> \setuplayout[backspace....] for the titlepage and copyright space. What 
> is the best way to achieve this?
> 
>  [...]
> 
> \definemakeup
>    [copyrightpage]

Each makeup page has its own named layout and to change values of
the layout for the block all you have to do is to change the layout.

\setuplayout
   [copyrightpage]
   [backspace=...,
    width=...]

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-13 17:12 Multiple Layouts Jeroen
2021-03-13 17:19 ` 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).