[NTG-context] Strange errors on using setupheader

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sat Mar 31 14:45:02 CEST 2012


Am 31.03.2012 um 14:20 schrieb Malte Stien:

> Hi all, Hi Hans,
> 
> Thank you for the fix. Okay, so now I am on
> 
>  ConTeXt  ver: 2012.03.30 16:16 MKIV  fmt: 2012.3.31  int: english/english
> 
> which does indeed fix the little problem I posted yesterday. However, I still have one more issue. Again, I condensed it down to something very close to a minimal example:
> 
> 
> \color[darkgray]\blank[small]
> Commercial in Confidence \hfill Version #4

You have to change this to:

\blank[small]
\color[darkgray]{Commercial Confidence \hfill Version #4}

A cleaner way to set the values for the title page is \setvariables:

\startsetups titlepage

  \startstandardmakeup[style=sans]

  \blank[50mm]

  \rightaligned{\bfd\getvariable{titlepage}{company}}

  \textrule

  \rightaligned{\tfc\color[darkgray]{\getvariable{titlepage}{title}}}

  \blank[170mm]

   \starttabulate[|plf{\tfa}|prf{\tfa}|]
   \NC \tfa © Some Company Pty Ltd                \NC                          \getvariable{titlepage}{author}   \NC\NR
   \TB[small]
   \NC \color[darkgray]{Commercial in Confidence} \NC \color[darkgray]{Version \getvariable{titlepage}{version}} \NC\NR
   \stoptabulate

  \stopstandardmakeup

\stopsetups

\starttext

\startfrontmatter

\setvariables
  [titlepage]
  [     set=\texsetup{titlepage},
	company={Company Name},
     title={The Plan},
    author={Dr Who, et al.},
   version={0.1}]

\stopfrontmatter

\stoptext

Wolfgang



More information about the ntg-context mailing list