ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definetyping to avoid wrapping lines
@ 2011-01-18 16:26 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-01-18 18:59 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-01-18 16:26 UTC (permalink / raw)
  To: ConTeXt

Hello,

is there a way how to disable wrapping (breaking) very long lines being processed by \typefile?

E.g. with a \definetyping option?

Kind regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

___________________________________________________________________________________
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: \definetyping to avoid wrapping lines
  2011-01-18 16:26 \definetyping to avoid wrapping lines Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-01-18 18:59 ` Hans Hagen
  2011-01-19  7:32   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2011-01-18 18:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 18-1-2011 5:26, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
> Hello,
>
> is there a way how to disable wrapping (breaking) very long lines being
> processed by \typefile?
>
> E.g. with a \definetyping option?

you have some control over spaces

space=on|stretch|normal

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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: \definetyping to avoid wrapping lines
  2011-01-18 18:59 ` Hans Hagen
@ 2011-01-19  7:32   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 0 replies; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-01-19  7:32 UTC (permalink / raw)
  To: ConTeXt

[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]

Hello,

thanks for the answer. But actually "space=" option doesn't affect what I need. See the attached example.

The right thing is how the first "abcdef....ABCDEF..." line (u.txt) is typeset.

In the second case, one "A" is replaced by " ", so we get "abcdef.... BCDEF...".

And Ctx breaks the line when it reaches that " ". - That's the thing I'd like to avoid, i.e. to force \typefile to treat lines with " " like any other line without " ".

(\typefile is used to typeset some text files which may contain a bit longer header; the header contain spaces. And here the line break appears, so I get lines like:

A program, version, 22.11.1999, bla, some text, Company
Name Ltd

and I'd rather get:

A program, version, 22.11.1999, bla, some text, Company Name Ltd

)

Is there a way how to achieve this?

(And I don't mean to make \typefile font smaller or to use the "range" option to skip first [longer] header lines).

Kind regards,

Lukas


On Tue, 18 Jan 2011 19:59:05 +0100, Hans Hagen <pragma@wxs.nl> wrote:

> you have some control over spaces
>
> space=on|stretch|normal
>
> Hans


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t.mkiv --]
[-- Type: application/octet-stream, Size: 230 bytes --]

\starttext
  \typefile[]{t.txt}
  \hairline
  \typefile[space=on]{t.txt}
  \hairline
  \typefile[space=stretch]{t.txt}
  \hairline
  \typefile[space=normal]{t.txt}
  \hairline
  \typefile[space=normal]{u.txt}
\stoptext

[-- Attachment #3: t.pdf --]
[-- Type: application/pdf, Size: 12025 bytes --]

[-- Attachment #4: t.txt --]
[-- Type: text/plain, Size: 202 bytes --]

01234567890123456789012345678901234567890123456789012345678901234567890123456789
012345678901234567890123456789012345678901234567890123456789 1234567890123456789 123456789012345678901234567890123456789

[-- Attachment #5: u.txt --]
[-- Type: text/plain, Size: 393 bytes --]

abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz BCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ

[-- Attachment #6: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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:[~2011-01-19  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-18 16:26 \definetyping to avoid wrapping lines Procházka Lukáš Ing. - Pontex s. r. o.
2011-01-18 18:59 ` Hans Hagen
2011-01-19  7:32   ` Procházka Lukáš Ing. - Pontex s. r. o.

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