Re: [NTG-context] Bug in table ?

2015-12-21 Thread Christian Prim

Thanks Hans

works again with latest beta.

Christian

Am Son, 20. Dez, 2015 um 10:56 schrieb Hans Hagen :

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
___
___
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
___

Re: [NTG-context] Bug in table ?

2015-12-20 Thread Hans Hagen

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
___

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim

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







old.pdf
Description: Adobe PDF document


new.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] bug in TABLE when there is a complex head

2010-12-06 Thread Nigel King
Hi Developers,
Enclosed is a piece of code that demonstrates a bug in the NaturalTable 
environment when using a complex head in a multipage case. If you run the 
following code you will notice that not only does the head get repeated but 
also the first row of the body of the table. The cause appears to be [nr=2] in 
the head.

I am using
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 
2010.4.14)  6 DEC 2010 08:32
I do apologise if this is fixed in a later version. Thanks for a great program.

\bTABLE[split=repeat]
\bTABLEhead
\bTR
  \bTH[nr=2] head l\eTH
  \bTH head r\eTH
\eTR
\bTR
  \bTH head r\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD first l\eTD\bTD first r\eTD\eTR
\dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR}
\eTABLEbody
\eTABLE

--
Nigel King



___
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
___


Re: [NTG-context] bug in TABLE when there is a complex head

2010-12-06 Thread notifications
Please resend your email to questi...@arthousecoop.com

--

Hello!

I'm just a mailbox used for sending notifications and other outgoing mail to 
people. No human eyes will ever see the message you sent, and that saddens us! 
Please send your email to questi...@arthousecoop.com and we'll be sure to get 
back to you super duper fast!

Sincerely,

The Art House Co-op Team


___
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
___


Re: [NTG-context] bug in TABLE when there is a complex head

2010-12-06 Thread Taco Hoekwater

On 12/06/2010 09:40 AM, notificati...@arthousecoop.com wrote:

Please resend your email to questi...@arthousecoop.com

--

Hello!

I'm just a mailbox


subscription ended

Best wishes,
Taco
___
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
___


Re: [NTG-context] bug in TABLE when there is a complex head

2010-12-06 Thread Hans Hagen

On 6-12-2010 9:39, Nigel King wrote:

Hi Developers,
Enclosed is a piece of code that demonstrates a bug in the NaturalTable 
environment when using a complex head in a multipage case. If you run the 
following code you will notice that not only does the head get repeated but 
also the first row of the body of the table. The cause appears to be [nr=2] in 
the head.

I am using
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 
2010.4.14)  6 DEC 2010 08:32
I do apologise if this is fixed in a later version. Thanks for a great program.

\bTABLE[split=repeat]
\bTABLEhead
\bTR
   \bTH[nr=2] head l\eTH
   \bTH head r\eTH
\eTR
\bTR
   \bTH head r\eTH
\eTR
\eTABLEhead
\bTABLEbody
\bTR\bTD first l\eTD\bTD first r\eTD\eTR
\dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR}
\eTABLEbody
\eTABLE


put this in cont-new.tex:

\unprotect

\def\endtblrow
  {\kern\dimexpr\tbltblrightmargindistance-\tbltblcolumndistance\relax
   \crcr
   \noalign
 {\nointerlineskip
  \ifnum\tblrow\noftblheadlines
\ifnum\gettblnob\tblrow=\zerocount
  \allowbreak
\fi
  \else
\allowbreak % else no proper head split off
  \fi
  \bgroup % protect local vars
\@@tblsplitafter
  \egroup
  \bgroup % protect local vars
\scratchcounter\numexpr\tblrow+\plusone\relax
\ifnum\scratchcounter\noftblhdnxlines\relax
  \ifnum\scratchcounter\maximumrow\relax

\doifsomething\tbltblspaceinbetween{\blank[\tbltblspaceinbetween]}%
  \fi
\fi
  \egroup}}

\protect

-
  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
___


Re: [NTG-context] bug in TABLE when there is a complex head

2010-12-06 Thread Nigel King
Hans,
Thanks very much. That works perfectly.
Nigel




From: Hans Hagen pra...@wxs.nl
To: mailing list for ConTeXt users ntg-context@ntg.nl
Cc: Nigel King ni...@nigelking.me.uk
Sent: Monday, 6 December, 2010 13:13:39
Subject: Re: [NTG-context] bug in TABLE when there is a complex head

On 6-12-2010 9:39, Nigel King wrote:
 Hi Developers,
 Enclosed is a piece of code that demonstrates a bug in the NaturalTable 
environment when using a complex head in a multipage case. If you run the 
following code you will notice that not only does the head get repeated but 
also 
the first row of the body of the table. The cause appears to be [nr=2] in the 
head.
 
 I am using
 This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 
2010.4.14)  6 DEC 2010 08:32
 I do apologise if this is fixed in a later version. Thanks for a great 
program.
 
 \bTABLE[split=repeat]
 \bTABLEhead
 \bTR
\bTH[nr=2] head l\eTH
\bTH head r\eTH
 \eTR
 \bTR
\bTH head r\eTH
 \eTR
 \eTABLEhead
 \bTABLEbody
 \bTR\bTD first l\eTD\bTD first r\eTD\eTR
 \dorecurse{50}{\bTR\bTD subsequent l\eTD\bTD subsequent r\eTD\eTR}
 \eTABLEbody
 \eTABLE

put this in cont-new.tex:

\unprotect

\def\endtblrow
  {\kern\dimexpr\tbltblrightmargindistance-\tbltblcolumndistance\relax
   \crcr
   \noalign
 {\nointerlineskip
  \ifnum\tblrow\noftblheadlines
\ifnum\gettblnob\tblrow=\zerocount
  \allowbreak
\fi
  \else
\allowbreak % else no proper head split off
  \fi
  \bgroup % protect local vars
\@@tblsplitafter
  \egroup
  \bgroup % protect local vars
\scratchcounter\numexpr\tblrow+\plusone\relax
\ifnum\scratchcounter\noftblhdnxlines\relax
  \ifnum\scratchcounter\maximumrow\relax

\doifsomething\tbltblspaceinbetween{\blank[\tbltblspaceinbetween]}%
  \fi
\fi
  \egroup}}

\protect

-
  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
___