Re: [NTG-context] About paragraph columns in table environment

2005-12-22 Thread Radhelorn

Taco Hoekwater wrote:

Hans Hagen wrote:


Radhelorn wrote:




| There are so |
| me rather lo |
| ng titles th |
| a needs to b |
| e typeset.   |




you're not serious about this are you?



I'm curious as well. What is this for?


It can be used in small cards or something like that.

I've tried to fit wide table in a narrow paper. I was making electronic 
version of printed document and can assure you that original design was 
even more strange (to my tastes of course).





anyhow, a wikiable example


I'll look into it a little later.




A similar problem&solution, for verbatim text, is already in the wiki:

  http://wiki.contextgarden.net/Verbatim_with_line_breaks



Well maybe I should give this a try too ;-).

--
Radhelorn <[EMAIL PROTECTED]>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About paragraph columns in table environment

2005-12-22 Thread Hans Hagen

Taco Hoekwater wrote:


Hans Hagen wrote:


Radhelorn wrote:





Something like this:

| There are so |
| me rather lo |
| ng titles th |
| a needs to b |
| e typeset.   |






only for stupid text:

\def\HowStrange#1{#1\ifx#1\blankspace\else\allowbreak\fi}

\framed
 [width=2cm,align={normal,verytolerant,stretch}]
 {\handletokens There are some rather long titles that needs to be 
typeset.\with\HowStrange}


you're not serious about this are you?



I'm curious as well. What is this for?

actually, this years pragma new-year card uses something like this but a 
bit more advanced (you've seen it -)


Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About paragraph columns in table environment

2005-12-21 Thread Taco Hoekwater

Hans Hagen wrote:

Radhelorn wrote:





Something like this:

| There are so |
| me rather lo |
| ng titles th |
| a needs to b |
| e typeset.   |





only for stupid text:

\def\HowStrange#1{#1\ifx#1\blankspace\else\allowbreak\fi}

\framed
 [width=2cm,align={normal,verytolerant,stretch}]
 {\handletokens There are some rather long titles that needs to be 
typeset.\with\HowStrange}


you're not serious about this are you?


I'm curious as well. What is this for?


anyhow, a wikiable example


A similar problem&solution, for verbatim text, is already in the wiki:

  http://wiki.contextgarden.net/Verbatim_with_line_breaks

Cheers,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About paragraph columns in table environment

2005-12-21 Thread Hans Hagen

Radhelorn wrote:





Something like this:

| There are so |
| me rather lo |
| ng titles th |
| a needs to b |
| e typeset.   |




only for stupid text:

\def\HowStrange#1{#1\ifx#1\blankspace\else\allowbreak\fi}

\framed
 [width=2cm,align={normal,verytolerant,stretch}]
 {\handletokens There are some rather long titles that needs to be 
typeset.\with\HowStrange}


you're not serious about this are you?

anyhow, a wikiable example

Hans
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About paragraph columns in table environment

2005-12-21 Thread Radhelorn

Hans Hagen wrote:

Radhelorn wrote:

\SetTableToWidth{\textwidth}

\starttable[|p(.45\textwidth)|p(.45\textwidth)|]
\HL
\VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR
\HL
\stoptable



Thanks. Now it works like expected.





BTW, how to fit text into a small box if I don't care about where word 
breaks?



can you explain that a bit more?



Something like this:

| There are so |
| me rather lo |
| ng titles th |
| a needs to b |
| e typeset.   |


Originally I wanted this in table headers and such things.

--
Radhelorn <[EMAIL PROTECTED]>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] About paragraph columns in table environment

2005-12-21 Thread Hans Hagen

Radhelorn wrote:


Hello all!

I've tried to fit wide table (with paragraphs and vertical lines) into 
page width. Following example don't work as expected:


\SetTableToWidth{\textwidth}
\starttable[|p|p|]
\HL
\VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR
\HL
\stoptable

Text in columns formatted as if table was not widened. What did I miss 
here?


table is not that clever -)

\SetTableToWidth{\textwidth}

\starttable[|p(.45\textwidth)|p(.45\textwidth)|]
\HL
\VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR
\HL
\stoptable

\stoptext



BTW, how to fit text into a small box if I don't care about where word 
breaks?



can you explain that a bit more?

Hans

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] About paragraph columns in table environment

2005-12-20 Thread Radhelorn

Hello all!

I've tried to fit wide table (with paragraphs and vertical lines) into 
page width. Following example don't work as expected:


\SetTableToWidth{\textwidth}
\starttable[|p|p|]
\HL
\VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR
\HL
\stoptable

Text in columns formatted as if table was not widened. What did I miss here?

BTW, how to fit text into a small box if I don't care about where word 
breaks?


Thanks.


--
Radhelorn <[EMAIL PROTECTED]>
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context