ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to write morsecode?
@ 2010-12-02  0:41 Jonas Stein
  2010-12-02  6:38 ` Peter Münster
  0 siblings, 1 reply; 3+ messages in thread
From: Jonas Stein @ 2010-12-02  0:41 UTC (permalink / raw)
  To: ntg-context

i tried:

=============

\define[]\kurz{\blackrule[width=0.3em]}
\define[]\lang{\blackrule[width=1.4em]}
\starttext
\kurz \kurz \lang \kurz Signal
\stoptext

=============

generates:

-
-
---
- Signal


the text continues after the bar, but every bar starts on a new line. 
I dont know why.
It was not said so in documentation [1]
How would you write morsecodes?

[1] http://www.pragma-ade.com/general/manuals/cont-eni.pdf

-- 
Jonas Stein <news@jonasstein.de>

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


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

* Re: how to write morsecode?
  2010-12-02  0:41 how to write morsecode? Jonas Stein
@ 2010-12-02  6:38 ` Peter Münster
  2010-12-02 14:12   ` Jonas Stein
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2010-12-02  6:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, Dec 02 2010, Jonas Stein wrote:
> 
> \define[]\kurz{\blackrule[width=0.3em]}
> \define[]\lang{\blackrule[width=1.4em]}
> \starttext
> \kurz \kurz \lang \kurz Signal
> \stoptext

You need \dontleavehmode, see also:
http://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F

Peter

-- 
Contact information: http://pmrb.free.fr/contact/
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: how to write morsecode?
  2010-12-02  6:38 ` Peter Münster
@ 2010-12-02 14:12   ` Jonas Stein
  0 siblings, 0 replies; 3+ messages in thread
From: Jonas Stein @ 2010-12-02 14:12 UTC (permalink / raw)
  To: ntg-context

> You need \dontleavehmode, see also:
> http://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F

That works fine.
Thank you.

-- 
Jonas Stein <news@jonasstein.de>

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


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

end of thread, other threads:[~2010-12-02 14:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-02  0:41 how to write morsecode? Jonas Stein
2010-12-02  6:38 ` Peter Münster
2010-12-02 14:12   ` Jonas Stein

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