ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Disable line-break when \typefile
@ 2011-06-08 15:29 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-06-08 20:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-06-08 15:29 UTC (permalink / raw)
  To: ConTeXt

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

Hello,

is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to "out-of-page" area)?

The following example:

----
% This a very long line which should be typeset to one line even if there'll be overfull hbox

\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]

\starttext
   \typefile[Std]{TypeFi.mkiv}

   \startcolumns[n=2,rule=on]
     \typefile[Std]{TypeFi.mkiv}
   \stopcolumns
\stoptext
----

gives a result where there is new line between "overfull" and "hbox" in normal mode and between "be" and "typeset" and "be" and "overfull" in column mode.

Is there a way how to avoid this, how to force continuing on the same line?

The (long) line "\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]" in column mode is typeset exactly how I'd need, i.e. it overlaps to the next column.

Best 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

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

% This a very long line which should be typeset to one line even if there'll be overfull hbox

\definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]

\starttext
  \typefile[Std]{TypeFi.mkiv}

  \startcolumns[n=2,rule=on]
    \typefile[Std]{TypeFi.mkiv}
  \stopcolumns
\stoptext

[-- Attachment #3: TypeFi.pdf --]
[-- Type: application/pdf, Size: 10012 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 15:29 Disable line-break when \typefile Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-06-08 20:21 ` Wolfgang Schuster
  2011-06-08 20:34   ` Marco
  2011-06-10 16:58   ` Aditya Mahajan
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-06-08 20:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to "out-of-page" area)?
> 
> The following example:
> 
> ----
> % This a very long line which should be typeset to one line even if there'll be overfull hbox
> 
> \definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]
> 
> \starttext
>  \typefile[Std]{TypeFi.mkiv}
> 
>  \startcolumns[n=2,rule=on]
>    \typefile[Std]{TypeFi.mkiv}
>  \stopcolumns
> \stoptext
> ----
> 
> gives a result where there is new line between "overfull" and "hbox" in normal mode and between "be" and "typeset" and "be" and "overfull" in column mode.
> 
> Is there a way how to avoid this, how to force continuing on the same line?

Add “space=fixed” to your setup.

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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 20:21 ` Wolfgang Schuster
@ 2011-06-08 20:34   ` Marco
  2011-06-08 20:44     ` Wolfgang Schuster
  2011-06-10 16:58   ` Aditya Mahajan
  1 sibling, 1 reply; 8+ messages in thread
From: Marco @ 2011-06-08 20:34 UTC (permalink / raw)
  To: ntg-context

On 2011-06-08 Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

> > Is  there  a way  how  to  avoid  this, how  to  force
> > continuing on the same line?
>
> Add “space=fixed” to your setup.

And what is “lines=no” for?

Marco


___________________________________________________________________________________
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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 20:34   ` Marco
@ 2011-06-08 20:44     ` Wolfgang Schuster
  2011-06-08 21:07       ` Marco
  2011-06-09  6:17       ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-06-08 20:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 08.06.2011 um 22:34 schrieb Marco:

> And what is “lines=no” for?


What i get from the source for the “lines” key is:

  no (default) : no hyphenation
  yes          : no hyphenation and left aligned text (align key is ignored)
  hyphenated   : hyphenation

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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 20:44     ` Wolfgang Schuster
@ 2011-06-08 21:07       ` Marco
  2011-06-14 16:24         ` Aditya Mahajan
  2011-06-09  6:17       ` Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 1 reply; 8+ messages in thread
From: Marco @ 2011-06-08 21:07 UTC (permalink / raw)
  To: ntg-context

> > And what is “lines=no” for?
> 
> What i get from the source for the “lines” key is:
> 
>   no (default) : no hyphenation
>   yes          : no hyphenation and left aligned text (align key is ignored)
>   hyphenated   : hyphenation

Thanks for clarification. Though the options (also
regarding “space=fixed”) are confusing, or at least not
transparent, in my opinion.

Marco


___________________________________________________________________________________
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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 20:44     ` Wolfgang Schuster
  2011-06-08 21:07       ` Marco
@ 2011-06-09  6:17       ` Procházka Lukáš Ing. - Pontex s. r. o.
  1 sibling, 0 replies; 8+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-06-09  6:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

OK, thanks.

I added some info into wiki.

Lukas


On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

>
> Am 08.06.2011 um 22:34 schrieb Marco:
>
>> And what is “lines=no” for?
>
>
> What i get from the source for the “lines” key is:
>
>   no (default) : no hyphenation
>   yes          : no hyphenation and left aligned text (align key is ignored)
>   hyphenated   : hyphenation
>
> Wolfgang


-- 
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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 20:21 ` Wolfgang Schuster
  2011-06-08 20:34   ` Marco
@ 2011-06-10 16:58   ` Aditya Mahajan
  1 sibling, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2011-06-10 16:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1333 bytes --]

On Wed, 8 Jun 2011, Wolfgang Schuster wrote:

>
> Am 08.06.2011 um 17:29 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
>
>> Hello,
>>
>> is there a way how to disable line breaks of (very) long lines typeset with \typefile, even if this would cause overfull hbox (i.e. typesetting to "out-of-page" area)?
>>
>> The following example:
>>
>> ----
>> % This a very long line which should be typeset to one line even if there'll be overfull hbox
>>
>> \definetyping[Std][bodyfont=10pt,style=\tt\setupinterlinespace]
>>
>> \starttext
>>  \typefile[Std]{TypeFi.mkiv}
>>
>>  \startcolumns[n=2,rule=on]
>>    \typefile[Std]{TypeFi.mkiv}
>>  \stopcolumns
>> \stoptext
>> ----
>>
>> gives a result where there is new line between "overfull" and "hbox" in normal mode and between "be" and "typeset" and "be" and "overfull" in column mode.
>>
>> Is there a way how to avoid this, how to force continuing on the same line?
>
> Add “space=fixed” to your setup.

Why does activatespacehandler behave differently.

{
\activatespacehandler{fixed}
A very very very very very very very very very very very very very long line to see if it breaks or not
\par}

{
\activatespacehandler{on}
A very very very very very very very very very very very very very long line to see if it breaks or not
\par}


Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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] 8+ messages in thread

* Re: Disable line-break when \typefile
  2011-06-08 21:07       ` Marco
@ 2011-06-14 16:24         ` Aditya Mahajan
  0 siblings, 0 replies; 8+ messages in thread
From: Aditya Mahajan @ 2011-06-14 16:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 585 bytes --]

On Wed, 8 Jun 2011, Marco wrote:

>>> And what is “lines=no” for?
>>
>> What i get from the source for the “lines” key is:
>>
>>   no (default) : no hyphenation
>>   yes          : no hyphenation and left aligned text (align key is ignored)
>>   hyphenated   : hyphenation
>
> Thanks for clarification. Though the options (also
> regarding “space=fixed”) are confusing, or at least not
> transparent, in my opinion.

For the vim module, I decided to use `space=on|off` to show visible space
and `lines=split|fixed` to enable or disable line breaks.

Aditya

[-- Attachment #2: Type: text/plain, Size: 485 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] 8+ messages in thread

end of thread, other threads:[~2011-06-14 16:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-08 15:29 Disable line-break when \typefile Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-08 20:21 ` Wolfgang Schuster
2011-06-08 20:34   ` Marco
2011-06-08 20:44     ` Wolfgang Schuster
2011-06-08 21:07       ` Marco
2011-06-14 16:24         ` Aditya Mahajan
2011-06-09  6:17       ` Procházka Lukáš Ing. - Pontex s. r. o.
2011-06-10 16:58   ` Aditya Mahajan

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