Re: [NTG-context] Problems with TABLE
On 30-9-2010 4:13, Patrick Gundlach wrote: \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow] \externalfigure[cow][width=.2\textwidth] \eTD 2 options: - The cow gets smaller: \externalfigure[cow][width=\localhsize] (does not work, I don't know why...) in the second pass the localhsize can be different and as a result the final result somewhat unexpected - The table cells get bigger. You have to define the width. If you want to span the cow 50%/50%, then \setupTABLE[c][2,3][width=0.1\textwidth] I hope that this is a bug and not a feature some day soon I'll rewrite the code and add more configurability (i think I started already but probably lost the code) 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 ___
Re: [NTG-context] Problems with TABLE
Am 30.09.2010 um 15:43 schrieb Peter Münster: > 2 options: > > - The cow gets smaller: \externalfigure[cow][width=\localhsize] > (does not work, I don't know why...) Use \hsize, \localhsize is the current width in a narrower environment or in a itemze. Wolfgang ___ 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] Problems with TABLE
>> \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow] >> \externalfigure[cow][width=.2\textwidth] \eTD > > 2 options: > > - The cow gets smaller: \externalfigure[cow][width=\localhsize] > (does not work, I don't know why...) > > - The table cells get bigger. You have to define the width. If you want to > span the cow 50%/50%, then > \setupTABLE[c][2,3][width=0.1\textwidth] I hope that this is a bug and not a feature Thanks! Patrick ___ 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] Problems with TABLE
On Thu, Sep 30 2010, Patrick Gundlach wrote: > > I still have some problems with TABLE: > > \bTABLE[frame=on] We need to know the values for rulethickness and offset, so let's define them: \bTABLE[frame=on, rulethickness=0.5pt, offset=0.1em] > \bTD[frame=off,rightframe=on,rulethickness=1mm] abc \eTD Now, it gets ugly: \bTD[frame=off,rightframe=on,rulethickness=1mm, offset=\dimexpr 0.1em + 0.5pt - 1mm \relax, roffset=0.1em] abc \eTD See also: http://tracker.luatex.org/view.php?id=427 > \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow] > \externalfigure[cow][width=.2\textwidth] \eTD 2 options: - The cow gets smaller: \externalfigure[cow][width=\localhsize] (does not work, I don't know why...) - The table cells get bigger. You have to define the width. If you want to span the cow 50%/50%, then \setupTABLE[c][2,3][width=0.1\textwidth] I wonder, why there is no such problem with the height... ? Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Problems with TABLE
Hi, I still have some problems with TABLE: \bTABLE[frame=on] \bTR \bTD abc \eTD \bTD abc \eTD \bTD[frame=off,rightframe=on,rulethickness=1mm] abc \eTD \bTD abc \eTD \eTR \bTR \bTD[background=color, backgroundcolor=yellow] abc \eTD \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow] \externalfigure[cow][width=.2\textwidth] \eTD \bTD abc \eTD \eTR \bTR \bTD abc \eTD \bTD abc \eTD \eTR \bTR \bTD abc \eTD \bTD abc \eTD \bTD abc \eTD \bTD abc \eTD \eTR \eTABLE 1) the cow sticks out of the cell. How can I pen the cow to the cell? 2) the third cell in the first row: when I turn on the right rule, the "abc" goes down. How can I have the abc on the baseline with the other ones in the first row _and_ have a right rule like that? Patrick ___ 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] Problems with table and Division Line
Hi Hans, > An \DL has an explicit DC in it, so you have to leave out the next \DC as in: thanks for help! Bernd ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with table and Division Line
An \DL has an explicit DC in it, so you have to leave out the next \DC as in: \starttext \starttable[|c|c|c|c|c|c|] %\starttables[|c|c|c|c|c|c|] % \HL \NC one \NC two \NC three \NC four \NC five \NC six \NC\AR % \DL[2]\DC \DC \DC\DR \VL \TWO{one + two} \VL three \NC four \NC five \NC six \NC\AR % \DC \NC \DL[3] \DR \NC one \NC two \NC three \VL \THREE{four + five + six} \VL\AR % the next line does not work!! \DL[2]\DC \DL[2] \DR % \VL \TWO{one + two} \VL three \NC four \VL \TWO{five + six}\VL\AR \stoptable \stoptext Hi all, using \DL[2] only once in a row, the function works well, but using \DL[2] twice in a row, I get a error-message: +-- ! Extra alignment tab has been changed to \cr. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR ? ! Emergency stop. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR End of file on the terminal! +-- \starttext \starttable[|c|c|c|c|c|c|] %\starttables[|c|c|c|c|c|c|] % \HL \NC one \NC two \NC three \NC four \NC five \NC six \NC\AR % \DL[2] \DC \DC \DC \DC\DR \VL \TWO{one + two} \VL three \NC four \NC five \NC six \NC\AR % \DC \DC \DC \DL[3] \DR \NC one \NC two \NC three \VL \THREE{four + five + six} \VL\AR % the next line does not work!! \DL[2] \DC \DC \DL[2] \DR % \VL \TWO{one + two} \VL three \NC four \VL \TWO{five + six}\VL\AR \stoptable \stoptext What ist here to do? Any hints will be welcome! Bernd ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context Deze e-mail is door E-mail VirusScanner van Planet Internet gecontroleerd op virussen. Op http://www.planet.nl/evs staat een verwijzing naar de actuele lijst waar op wordt gecontroleerd. - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with table and Division Line
Hi Willi, > > It is quite tricky to get the dummy columns right! > > If you withdraw one of the \DC in the line which causes the error, the > table compiles just fine. thanks for help! Bernd ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems with table and Division Line
Hi Bernd, I tried the \starttable It is quite tricky to get the dummy columns right! If you withdraw one of the \DC in the line which causes the error, the table compiles just fine. I was playing with another table first, where I added several \DL[2]. When I messed up the \DC I got similar errors as you. Kind regards Willi At 19:01 18.11.2003,Bernd wrote: Hi all, using \DL[2] only once in a row, the function works well, but using \DL[2] twice in a row, I get a error-message: +-- ! Extra alignment tab has been changed to \cr. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR ? ! Emergency stop. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR End of file on the terminal! +-- \starttext \starttable[|c|c|c|c|c|c|] %\starttables[|c|c|c|c|c|c|] % \HL \NC one \NC two \NC three \NC four \NC five \NC six \NC\AR % \DL[2] \DC \DC \DC \DC\DR \VL \TWO{one + two} \VL three \NC four \NC five \NC six \NC\AR % \DC \DC \DC \DL[3] \DR \NC one \NC two \NC three \VL \THREE{four + five + six} \VL\AR % the next line does not work!! \DL[2] \DC \DC \DL[2] \DR % \VL \TWO{one + two} \VL three \NC four \VL \TWO{five + six}\VL\AR \stoptable \stoptext What ist here to do? Any hints will be welcome! Bernd ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problems with table and Division Line
Hi all, using \DL[2] only once in a row, the function works well, but using \DL[2] twice in a row, I get a error-message: +-- ! Extra alignment tab has been changed to \cr. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR ? ! Emergency stop. \endtemplate \!ttLongHrule ->\omit \span \omit \span \!ttShortHrule \normalTABLEmultirule ...{#1}\normalTABLElongrule & \complexTableDL ...handleTABLEerror \fi \fi \next \fi l.31 \DL[2] \DC \DC \DL[2] \DR End of file on the terminal! +-- \starttext \starttable[|c|c|c|c|c|c|] %\starttables[|c|c|c|c|c|c|] % \HL \NC one \NC two \NC three \NC four \NC five \NC six \NC\AR % \DL[2] \DC \DC \DC \DC\DR \VL \TWO{one + two} \VL three \NC four \NC five \NC six \NC\AR % \DC \DC \DC \DL[3] \DR \NC one \NC two \NC three \VL \THREE{four + five + six} \VL\AR % the next line does not work!! \DL[2] \DC \DC \DL[2] \DR % \VL \TWO{one + two} \VL three \NC four \VL \TWO{five + six}\VL\AR \stoptable \stoptext What ist here to do? Any hints will be welcome! Bernd ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context