ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* newbie question (\crlf)
       [not found] <mailman.983.1243346619.3589.ntg-context@ntg.nl>
@ 2009-05-26 16:23 ` Vyatcheslav Yatskovsky
  2009-05-26 16:31   ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-05-26 16:23 UTC (permalink / raw)
  To: ntg-context, Wolfgang Schuster

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


Regards,
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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
  2009-05-26 16:23 ` newbie question (\crlf) Vyatcheslav Yatskovsky
@ 2009-05-26 16:31   ` Hans Hagen
  2009-05-26 16:53     ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2009-05-26 16:31 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
  2009-05-26 16:31   ` Hans Hagen
@ 2009-05-26 16:53     ` Wolfgang Schuster
  2009-05-26 17:22       ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2009-05-26 16:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
  2009-05-26 16:53     ` Wolfgang Schuster
@ 2009-05-26 17:22       ` Hans Hagen
  2009-05-26 18:01         ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2009-05-26 17:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
  2009-05-26 17:22       ` Hans Hagen
@ 2009-05-26 18:01         ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2009-05-26 18:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
  2009-05-26 22:49 ` Vyatcheslav Yatskovsky
@ 2009-05-27  8:49   ` Wolfgang Schuster
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Schuster @ 2009-05-27  8:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: newbie question (\crlf)
       [not found] <mailman.988.1243371241.3589.ntg-context@ntg.nl>
@ 2009-05-26 22:49 ` Vyatcheslav Yatskovsky
  2009-05-27  8:49   ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-05-26 22:49 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

end of thread, other threads:[~2009-05-27  8:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.983.1243346619.3589.ntg-context@ntg.nl>
2009-05-26 16:23 ` newbie question (\crlf) Vyatcheslav Yatskovsky
2009-05-26 16:31   ` Hans Hagen
2009-05-26 16:53     ` Wolfgang Schuster
2009-05-26 17:22       ` Hans Hagen
2009-05-26 18:01         ` Wolfgang Schuster
     [not found] <mailman.988.1243371241.3589.ntg-context@ntg.nl>
2009-05-26 22:49 ` Vyatcheslav Yatskovsky
2009-05-27  8:49   ` 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).