[NTG-context] Keeping margin note on the same line

2010-06-05 Thread Vyatcheslav Yatskovsky

Hello,

Please, advise me.

Is there a way to keep margin text and body text on the same line in the 
following situation?


\define[0]\chorus{\startnarrower{\itx CHORUS}\stopnarrower}

\starttext
\chorus

\chorus

\inmargin{B}\chorus
\stoptext

Now B is above CHORUS, I want it to be exactly on the same line.

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


Re: [NTG-context] Keeping margin note on the same line

2010-06-05 Thread Rogutės Sparnuotos
Vyatcheslav Yatskovsky (2010-06-05 14:25):
 Hello,
 
 Please, advise me.
 
 Is there a way to keep margin text and body text on the same line in
 the following situation?
 
 \define[0]\chorus{\startnarrower{\itx CHORUS}\stopnarrower}
 
 \starttext
 \chorus
 
 \chorus
 
 \inmargin{B}\chorus
 \stoptext
 
 Now B is above CHORUS, I want it to be exactly on the same line.

I somehow feel that this is not what you want:

\def\chorus#1{\startnarrower{\itx 
CHORUS}\doiftext{#1}{\inmargin{#1}}\stopnarrower}
\starttext
\chorus{}

\chorus{B}
\stoptext

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


Re: [NTG-context] Keeping margin note on the same line

2010-06-05 Thread Vyatcheslav Yatskovsky

No, no, your idea is exactly what I missed! :) Thanks!


I somehow feel that this is not what you want:

\def\chorus#1{\startnarrower{\itx 
CHORUS}\doiftext{#1}{\inmargin{#1}}\stopnarrower}
\starttext
\chorus{}

\chorus{B}
\stoptext



--
Best Regards,
Vyatcheslav Yatskovsky
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___