Disable line-break when \typefile
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
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
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
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
OK, thanks.
I added some info into wiki.
Lukas
On Wed, 08 Jun 2011 22:44:41 +0200, Wolfgang Schuster
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
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
participants (4)
-
Aditya Mahajan
-
Marco
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster