ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bug in table ?
@ 2015-12-20 16:30 Christian Prim
  2015-12-20 21:56 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Prim @ 2015-12-20 16:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1967 bytes --]

Dear list

with the latest context I get wrong alignment in table.

MWE: (not so minimal, it's a snippet of my document)

\setuppapersize[A5][A5]
\setuplayout[location=middle, marking=on,
             topspace=1.5cm, margin=1cm,
             headspace=0cm, header=0cm, headerdistance=0.0cm,
             footer=1cm, %bottomspace=1cm,
             width=fit, height=fit]
\setupbodyfont[palatino,10pt]
\definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)m|xp(5cm)s2|lw(2.5cm)m|]

\starttext
\starttable[fosa]
\NC Kräftegleichgewicht \NC\Use3[p(8cm)]{Ein Körper ist im 
Kräftegleichgewicht, wenn die resultierende Kraft $\vec{F}_{\rm res}$ 
Null ist.}\NC\AR
\MR
\NC Drehmoment \NC\Use2[lM]{M=Fr} \NC [M]=\unit{1 Newton meter}\NC\AR
\NC \NC F \NC Kraft ($\perp$\ zur DA) \NC [F]=\unit{1 Newton}\NC\AR
\NC \NC r \NC Kraftarm (Abstand DA – Wirkungslinie) \NC [r]=\unit{1 
meter}\NC\AR
\MR
\NC Momenten-\crlf gleichgewicht \NC\Use3[lM]{\sum M_{\rm 
rechtsdrehend}=\sum M_{\rm linksdrehend}}\NC\AR
\MR
\NC Gleichgewichtsarten \NC\Use3[p(8cm)]{stabil, labil, 
indifferent}\NC\AR
\MR
\NC Hebelgesetz \NC\Use3[lM]{F_1 r_1 = F_2 r_2}\NC\AR
\NC \NC r_i \NC Kraftarme \NC [r_i]=\unit{1 meter} \NC\AR
\MR
\stoptable
\stoptext

What I got before latest beta: old.pdf
What I get with new beta (only snippet): new.pdf

The misalignment is visible.

I know table is deprecated. But I couldn't get xtable to baseline align 
two different cells with display math in the same row.

MWE:
\starttext
\startxtable[frame=off]
\startxrow
 \startxcell[width=5cm] \m{\displaystyle \gamma=\frac{1}{\sqrt{1-\left 
(\frac{v}{c}\right )^2}}}\stopxcell
 \startxcell[width=4cm] Reaktionsprinzip\stopxcell
\stopxrow
\stopxtable
\stoptext

\gamma isn't aligned with the text "Reaktionsprinzip".

Please tell me what I have to change in table or what table-environment 
I have to use to get the desired output.

Thanks
Christian






[-- Attachment #1.2: Type: text/html, Size: 2710 bytes --]

[-- Attachment #2.1: old.pdf --]
[-- Type: application/pdf, Size: 22089 bytes --]

[-- Attachment #2.2: new.pdf --]
[-- Type: application/pdf, Size: 25736 bytes --]

[-- Attachment #3: 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] 3+ messages in thread

* Re: Bug in table ?
  2015-12-20 16:30 Bug in table ? Christian Prim
@ 2015-12-20 21:56 ` Hans Hagen
  2015-12-21 13:14   ` Christian Prim
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2015-12-20 21:56 UTC (permalink / raw)
  To: ntg-context

On 12/20/2015 5:30 PM, Christian Prim wrote:
> Dear list
>
> with the latest context I get wrong alignment in table.

i'll look at it, not so much a table, more some side effect

> I know table is deprecated. But I couldn't get xtable to baseline align

nor really depricated but complemented by other mechanisms that some 
purposes are better

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Bug in table ?
  2015-12-20 21:56 ` Hans Hagen
@ 2015-12-21 13:14   ` Christian Prim
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Prim @ 2015-12-21 13:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1422 bytes --]

Thanks Hans

works again with latest beta.

Christian

Am Son, 20. Dez, 2015 um 10:56 schrieb Hans Hagen <pragma@wxs.nl>:
> On 12/20/2015 5:30 PM, Christian Prim wrote:
> > Dear list
> >
> > with the latest context I get wrong alignment in table.
> 
> i'll look at it, not so much a table, more some side effect
> 
> > I know table is deprecated. But I couldn't get xtable to baseline 
> align
> 
> nor really depricated but complemented by other mechanisms that some
> purposes are better
> 
> Hans
> 
> -----------------------------------------------------------------
>                                            Hans Hagen | PRAGMA ADE
>                Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>      tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                               | www.pragma-pod.nl
> -----------------------------------------------------------------
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 1886 bytes --]

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

end of thread, other threads:[~2015-12-21 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-20 16:30 Bug in table ? Christian Prim
2015-12-20 21:56 ` Hans Hagen
2015-12-21 13:14   ` Christian Prim

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