ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Linebrake in a TaBlE cell
@ 1998-10-23 19:33 Tobias Burnus
  0 siblings, 0 replies; 3+ messages in thread
From: Tobias Burnus @ 1998-10-23 19:33 UTC (permalink / raw)


Hi,

I think this is rather simple and strait forward (hopefully),
but how can I have more than one line in a table cell.

I.e.:

------------------------------------------------------------------
This is one line                 | And here is only one line
second                           |
and a third line, which is long  |
------------------------------------------------------------------
Hiere is one long line, which    | Line 1
continues in the next lines, but | Line 2
which has no hard linebrake      |
------------------------------------------------------------------

How can I do so?

Tobias

PS: I just saw the following as a LaTeX question, but the (AMS)MathModul
of ConTeXt should manage this as well:
> |     +-----------------------+          |
> |     |                       |          |
> |     |        m * c^2 = E    |  (1)     |
> |     |                       |          |
> |     |      a^2 + b^2 = c^2  |  (2)     |
> |     |                       |          |
> |     |  m (a^2 + b^2) = E    |  (3)     |
> |     |                       |          |
> |     +-----------------------+          |

I.e. the numbers of the equations are outside the drawn box.
N.B.: TeXperts and TeXnician must not answer, but should keep it
in mind when designing the math modzul.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linebrake in a TaBlE cell
@ 1998-10-24 22:03 Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 1998-10-24 22:03 UTC (permalink / raw)


Tobias Burnus wrote:

> Where \newline makes a linebreake.

Well, try \crlf

> BTW: If I have
> "Peter Sampleman" as an entry in a p{x} field, I get:
> |Peter   Sample-|  with a huge space between the words
> |man            |  Can I for a left flushed entry, since a p{} is
> justified
>                   (per default)

lp(width)

> > (2) add another line
> >
> >    \HL
> >    \VL first line  \VL .... \FR
> >    \VL second line \VL .... \MR
> >    etc
> 
> Very nice approach, but I have a perl script based database,
> I don't want to have a very long and complicated script to do so.

Why not use the 'alineas' (paragraphs) mechanism for a change? That one
does a better job on paragraphs.   

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Linebrake in a TaBlE cell
@ 1998-10-24 20:51 Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 1998-10-24 20:51 UTC (permalink / raw)


Tobias Burnus wrote:

> ------------------------------------------------------------------
> This is one line                 | And here is only one line
> second                           |
> and a third line, which is long  |
> ------------------------------------------------------------------
> Hiere is one long line, which    | Line 1
> continues in the next lines, but | Line 2
> which has no hard linebrake      |
> ------------------------------------------------------------------
> 
> How can I do so?

Two ways: 

(1) use a p(width) entry in the preamble
(2) add another line

   \HL
   \VL first line  \VL .... \FR
   \VL second line \VL .... \MR
   etc 

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl
-----------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1998-10-24 22:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-23 19:33 Linebrake in a TaBlE cell Tobias Burnus
1998-10-24 20:51 Hans Hagen
1998-10-24 22:03 Hans Hagen

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