* 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