ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Struggling with \hskip
       [not found] <mailman.1243.1250674473.3069.ntg-context@ntg.nl>
@ 2009-08-19 11:00 ` Vyatcheslav Yatskovsky
  2009-08-19 12:32   ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-19 11:00 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

* Re: Struggling with \hskip
  2009-08-19 11:00 ` Struggling with \hskip Vyatcheslav Yatskovsky
@ 2009-08-19 12:32   ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2009-08-19 12:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Struggling with \hskip
  2009-08-18 23:37 ` Vyatcheslav Yatskovsky
@ 2009-08-19  3:38   ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2009-08-19  3:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


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

* Re: Struggling with \hskip
       [not found] <mailman.1221.1250608762.3069.ntg-context@ntg.nl>
@ 2009-08-18 23:37 ` Vyatcheslav Yatskovsky
  2009-08-19  3:38   ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-18 23:37 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


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

* Re: Struggling with \hskip
  2009-08-18 14:14 ` Vyatcheslav Yatskovsky
@ 2009-08-18 15:07   ` Peter Rolf
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Rolf @ 2009-08-18 15:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Struggling with \hskip
       [not found] <mailman.1214.1250600633.3069.ntg-context@ntg.nl>
@ 2009-08-18 14:14 ` Vyatcheslav Yatskovsky
  2009-08-18 15:07   ` Peter Rolf
  0 siblings, 1 reply; 6+ messages in thread
From: Vyatcheslav Yatskovsky @ 2009-08-18 14:14 UTC (permalink / raw)
  To: ntg-context

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}

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] 6+ messages in thread

end of thread, other threads:[~2009-08-19 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1243.1250674473.3069.ntg-context@ntg.nl>
2009-08-19 11:00 ` Struggling with \hskip Vyatcheslav Yatskovsky
2009-08-19 12:32   ` Wolfgang Schuster
     [not found] <mailman.1221.1250608762.3069.ntg-context@ntg.nl>
2009-08-18 23:37 ` Vyatcheslav Yatskovsky
2009-08-19  3:38   ` Wolfgang Schuster
     [not found] <mailman.1214.1250600633.3069.ntg-context@ntg.nl>
2009-08-18 14:14 ` Vyatcheslav Yatskovsky
2009-08-18 15:07   ` Peter Rolf

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).