From: Christian Prim <christian.prim@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Bug in table ?
Date: Sun, 20 Dec 2015 17:30:52 +0100 [thread overview]
Message-ID: <1450629052.2169.0@smtp.gmail.com> (raw)
[-- 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
___________________________________________________________________________________
next reply other threads:[~2015-12-20 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-20 16:30 Christian Prim [this message]
2015-12-20 21:56 ` Hans Hagen
2015-12-21 13:14 ` Christian Prim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450629052.2169.0@smtp.gmail.com \
--to=christian.prim@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).