ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: ConTeXt <ntg-context@ntg.nl>
Subject: Re: \definetyping to avoid wrapping lines
Date: Wed, 19 Jan 2011 08:32:34 +0100	[thread overview]
Message-ID: <op.vpjokkpstpjj8f@lpr> (raw)
In-Reply-To: <4D35E2F9.9060000@wxs.nl>

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

      reply	other threads:[~2011-01-19  7:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-18 16:26 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=op.vpjokkpstpjj8f@lpr \
    --to=lpr@pontex.cz \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).