Re: [NTG-context] newbie question (\crlf)

2009-05-27 Thread Wolfgang Schuster


Am 27.05.2009 um 00:49 schrieb Vyatcheslav Yatskovsky:


Thanks for all!

I have just one notice: to completely simulate \centeredbox, I need  
\vfill before and after.


\define[2]\maketitlepage
  {\starttextmakeup[align=middle]
   \vfill{\bfd#1}
   \blank
   Version #2\vfill
   \stoptextmakeup}


\define[2]\maketitlepage
  {\startstandardmakeup[align=middle,pagestate=start,page=yes]
   {\bfd#1}
   \blank
   Version #2
   \stopstandardmakeup}

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] newbie question (\crlf)

2009-05-26 Thread Hans Hagen

Vyatcheslav Yatskovsky wrote:

Hello,

Sorry for a dumb TeX newbie question:: why 'version' does NOT begin from 
a new line?



\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}

\starttext

\maketitlepage{My Manual}{1.0}

\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
  {\midaligned{\bfd #1}
   \blank
   \midaligned{Version #2}}


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] newbie question (\crlf)

2009-05-26 Thread Wolfgang Schuster


Am 26.05.2009 um 18:31 schrieb Hans Hagen:


Vyatcheslav Yatskovsky wrote:

Hello,
Sorry for a dumb TeX newbie question:: why 'version' does NOT begin  
from a new line?

\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}
\starttext
\maketitlepage{My Manual}{1.0}
\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
 {\midaligned{\bfd #1}
  \blank
  \midaligned{Version #2}}




I think it's more:

\define[2]\maketitlepage
  {\starttextmakeup[align=middle]
   {\bfd#1}
   \blank
   Version #2
   \stoptextmakeup}

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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] newbie question (\crlf)

2009-05-26 Thread Hans Hagen

Wolfgang Schuster wrote:


Am 26.05.2009 um 18:31 schrieb Hans Hagen:


Vyatcheslav Yatskovsky wrote:

Hello,
Sorry for a dumb TeX newbie question:: why 'version' does NOT begin 
from a new line?

\define[2]\maketitlepage{\centeredbox{{\bfd #1}\crlf {Version #2}}}
\starttext
\maketitlepage{My Manual}{1.0}
\stoptext


is an hbox ...

maybe use:

\define[2]\maketitlepage
 {\midaligned{\bfd #1}
  \blank
  \midaligned{Version #2}}




I think it's more:

\define[2]\maketitlepage
  {\starttextmakeup[align=middle]
   {\bfd#1}
   \blank
   Version #2
   \stoptextmakeup}


sure, although in the case of a real titlepage i nowadays always tend to 
set up a layer in combination with a makeup


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] newbie question (\crlf)

2009-05-26 Thread Wolfgang Schuster


Am 26.05.2009 um 19:22 schrieb Hans Hagen:

sure, although in the case of a real titlepage i nowadays always  
tend to set up a layer in combination with a makeup


me too, it gives more control about the placement of the texts but for  
the beginning a simple markup env with centered text is enough and  
faster to write, a more fancy layout can be done later


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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] newbie question (\crlf)

2009-05-26 Thread Vyatcheslav Yatskovsky

Thanks for all!

I have just one notice: to completely simulate \centeredbox, I need 
\vfill before and after.


\define[2]\maketitlepage
   {\starttextmakeup[align=middle]
\vfill{\bfd#1}
\blank
Version #2\vfill
\stoptextmakeup}

However, what is \starttextmakeup? What is can be used for?

Best,
Vyatcheslav

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___