ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to prevent line split in typing block when using custom command?
@ 2011-08-16 12:05 Vladimir Lomov
  2011-08-16 21:36 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Lomov @ 2011-08-16 12:05 UTC (permalink / raw)
  To: General mailing list for ConTeXt users

Hi.

Consider the following two example files:

--------------------------------- 8< --------------------------------

<file name="exa-feat1.tex">
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]

\starttext

This is an example with \quotation{long} verbatim text.
Why context complians? Is there a method to process this file?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very long long long long long long line line line line line line
\stopEXAMPLE

\stoptext
</file>

--------------------------------- 8< --------------------------------

<file name="exa-feat3.tex">
\setupbackend[export=yes]
\definetyping[EXAMPLE][escape=yes]
\definestartstop[important][style=bold]

\starttext

This is an example with \quotation{long} verbatim text.
Why context fail to compile this example? Is there a method to process it?

\startEXAMPLE
This is a short verbatim line

This this this this this this very very very very very very /BTEX\important{long long long long}/ETEX long long line line line line line line
\stopEXAMPLE

\stoptext
</file>

--------------------------------- 8< --------------------------------


In first case the long line is not splitted, in second case the line is
splitted. How to prevent line splitting?


---
TIA, Vladimir Lomov

-- 
Q:	How many surrealists does it take to change a light bulb?
A:	Two, one to hold the giraffe, and the other to fill the bathtub
	with brightly colored machine tools.

	[Surrealist jokes just aren't my cup of fur.  Ed.]
___________________________________________________________________________________
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] 2+ messages in thread

* Re: How to prevent line split in typing block when using custom command?
  2011-08-16 12:05 How to prevent line split in typing block when using custom command? Vladimir Lomov
@ 2011-08-16 21:36 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-08-16 21:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 16.08.2011 um 14:05 schrieb Vladimir Lomov:

> Hi.
> 
> Consider the following two example files:
> 
> […]
> 
> \definetyping[EXAMPLE][escape=yes]
> \definestartstop[important][style=bold]
> 
> \starttext
> 
> This is an example with \quotation{long} verbatim text.
> Why context fail to compile this example? Is there a method to process it?
> 
> \startEXAMPLE
> This is a short verbatim line
> 
> This this this this this this very very very very very very /BTEX\important{long long long long}/ETEX long long line line line line line line
> \stopEXAMPLE
> 
> \stoptext
> 
> In first case the long line is not splitted, in second case the line is
> splitted. How to prevent line splitting?

Use a nonbreakable space in the escaped text, i.e. “long~long”.

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


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

end of thread, other threads:[~2011-08-16 21:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-16 12:05 How to prevent line split in typing block when using custom command? Vladimir Lomov
2011-08-16 21:36 ` 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).