Re: [NTG-context] Struggling with \hskip

2009-08-19 Thread Vyatcheslav Yatskovsky
Thank you, but one small concern. If I omit second argument altoghether, 
that is


\author{Bla-bla}

is it possible to have skip? (Now skip doesn't work until I provide empty 
second parenthesizes)

Regards,
Vyatcheslav



\author{Bla-bla}{}

   
\define[2]\author{{\itx (#1)}{\hfill\tx bpm=#2\doifnothing{#2}

{\hskip1cm}}}

   


___
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] Struggling with \hskip

2009-08-19 Thread Wolfgang Schuster


Am 19.08.2009 um 13:00 schrieb Vyatcheslav Yatskovsky:

Thank you, but one small concern. If I omit second argument  
altoghether, that is


\author{Bla-bla}

is it possible to have skip? (Now skip doesn't work until I provide  
empty second parenthesizes)


When you define a command with two arguments you *need* two arguments,  
context has a few
commands where you can make the second one optional but this requires  
more code.


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] struggling with /hskip

2009-08-19 Thread Vyatcheslav Yatskovsky

Hi Wolfgang,

Thank you. I will ask further questions on the conference ;)

Vyatcheslav


When you define a command with two arguments you*need*  two arguments,
context has a few
commands where you can make the second one optional but this requires
more code.

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] struggling with /hskip

2009-08-19 Thread luigi scarso
On Wed, Aug 19, 2009 at 11:13 PM, Vyatcheslav
Yatskovskyyatskov...@gmail.com wrote:
 Hi Wolfgang,

 Thank you. I will ask further questions on the conference ;)


So, in the end  we will see Wolfgang at the conference ?
___
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] struggling with /hskip

2009-08-19 Thread Vyatcheslav Yatskovsky


So, in the end  we will see Wolfgang at the conference ?
   

Sorry, I was sure that Wolfgang will come. [blush]

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
___


Re: [NTG-context] Struggling with \hskip

2009-08-18 Thread Peter Rolf

Hi Vyatcheslav,

Vyatcheslav Yatskovsky schrieb:

Hello,

The following code worked once, but now \hskip does not make any 
effect. Could you please tell me how to position bpm= not strictly 
on the right, but with some margin?


\define[2]\author{{\itx (#1)}\hfill{\tx bpm=#2}{\hskip1cm}

\author{Bla-bla}


\define[2]\author{{\itx (#1)}{\hfill\tx bpm=#2\hskip1cm}}

\starttext

\showframe
\author{Bla-bla}{foo}

\stoptext


In this context it is also safe to use a fixed space like '\hbox to 
1cm{}', but that is cheating. ;)


Best wishes, Peter


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
___ 





___
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] Struggling with \hskip

2009-08-18 Thread Vyatcheslav Yatskovsky

Hello,

Thanks, but if I omit second argument, no skip is produced (I often to 
this to have a place for writing number by pen). How to save the skip with


\author{Bla-bla}?

I'd even rather don't have skip if second argument is provided :)

Regards,
Vyatcheslav



\define[2]\author{{\itx (#1)}{\hfill\tx bpm=#2\hskip1cm}}

\starttext

\showframe
\author{Bla-bla}{foo}

\stoptext


In this context it is also safe to use a fixed space like '\hbox to
1cm{}', but that is cheating. ;)

Best wishes, Peter

   


___
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] Struggling with \hskip

2009-08-18 Thread Wolfgang Schuster


Am 19.08.2009 um 01:37 schrieb Vyatcheslav Yatskovsky:


Hello,

Thanks, but if I omit second argument, no skip is produced (I often  
to this to have a place for writing number by pen). How to save the  
skip with


\author{Bla-bla}?


\author{Bla-bla}{}


I'd even rather don't have skip if second argument is provided :)


\define[2]\author{{\itx (#1)}{\hfill\tx bpm=#2\doifnothing{#2} 
{\hskip1cm}}}


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
___