Re: [NTG-context] stelinterliniein
Am 30.05.10 15:32, schrieb Vyatcheslav Yatskovsky:
Use part in both occasions? It works, but gives blank page:
\setuphead [part] [number=no, style={\ss\bfd}] %page=right]
\def\StartTitlePage {\startstandardmakeup[doublesided=no,align=right,style={\switchtobodyfont[ss,18pt]}]
\setupbackgrounds[header][text][background=] \setupindenting[none] \setupinterlinespace \let\\=\blank}
\def\StopTitlePage {\par\vfill {\tfx Version \currentdate[year,-,mm,-,dd]} \stopstandardmakeup}
\definehead[TitlePage][part]
\setuphead [TitlePage] [before=\StartTitlePage, after=\StopTitlePage]
\starttext \TitlePage{Hello} \stoptext
ConTeXt has for headers the key 'placehead' which controls whether a header (placehead=yes) is shown or hidden (placehead=no) but there is a third value (placehead=empty) which use the page key for the header but hides the header itself. The default setup for \part has the empty value for placehead and to show the content you have to set \setuphead[part][placehead=yes] Wolfgang
Thank you, Wolfgang, with this correction it works fine! A few questions, if you don't mind: 1) what \setupinterlinespace \let\\=\blank means? I thought this setup can accept only values in brackets; I don't understand this construct. 2) Why I cannot use Part (with capital P)? 3) I took the example from the wiki. Is the example still valid (even for MkII)? -- Best Regards, Vyatcheslav Yatskovsky
ConTeXt has for headers the key 'placehead' which controls whether a header (placehead=yes) is shown or hidden (placehead=no) but there is a third value (placehead=empty) which use the page key for the header but hides the header itself. The default setup for \part has the empty value for placehead and to show the content you have to set
\setuphead[part][placehead=yes]
Wolfgang
Am 30.05.10 18:45, schrieb Vyatcheslav Yatskovsky:
Thank you, Wolfgang, with this correction it works fine!
A few questions, if you don't mind:
1) what \setupinterlinespace
\setupinterlinespace comes in two version, with the complex version you can change the values for the lineheight, e.g. \setupinterlinespace[line=14pt] while the simple version is used to adapt the linespacing to the current font size (this works because ConTeXt use a relative distance), e.g. \starttext {\definedfont[Regular sa 1.5]\input ward\par} {\definedfont[Regular sa 1.5]\setupinterlinespace\input ward\par} \stoptext
\let\\=\blank
this saves the meaning for \blank in the \\ command, you could have done it in this example also with \def\\{\blank}
means? I thought this setup can accept only values in brackets; I don't understand this construct.
2) Why I cannot use Part (with capital P)?
When you take a second look at the example you can find this line: \definehead [Part] [chapter]
3) I took the example from the wiki. Is the example still valid (even for MkII)?
Except from a few minor changes regarding font handling in MkIV it should run without problems. Wolfgang
Wolfgang, Vyatcheslav, thank you for debugging my ancient Skdk style! If you fix it in the wiki, please also remove all those broken links... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
Hi, Wolfgang I would be nice to see what your Algorithms package can do ;) I mean example PDF. Regards, Vyatcheslav
Am 31.05.10 15:42, schrieb Vyatcheslav Yatskovsky:
Hi, Wolfgang
I would be nice to see what your Algorithms package can do ;)
I mean example PDF.
Attached is my test file where I used examples from the algorithmic package for LaTeX. Wolfgang
participants (3)
-
Henning Hraban Ramm
-
Vyatcheslav Yatskovsky
-
Wolfgang Schuster