[NTG-context] Re: \starttable questions
On Fri, Jan 26, 2024 at 09:55 (+0100), Aditya Mahajan wrote: > On Thu, 25 Jan 2024, Jim wrote: >> The nice thing about your setup above is that it is nice and structured. >> But if a table calls for some row, column or cell to be treated >> differently, I guess I am in for some more reading. > You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2 > (or the other way around ... always forget). In the worst case, you can > always do > ... > \NC .. \NC[options] ... \NC \NR > > Each cell is just a \framed[...]; so all options for \framed[...] work for > Natural Tables. Aditya thanks very much for that information. I still appreciate the conciseness of the TaBlE macros (and thus \starttable ... \endtable), but I also appreciate the power of the TABLE macros. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On Thu, 25 Jan 2024, Jim wrote: > The nice thing about your setup above is that it is nice and structured. > But if a table calls for some row, column or cell to be treated > differently, I guess I am in for some more reading. You can do: \setupTABLE[2][3] to select the formatting for row 3 and column 2 (or the other way around ... always forget). In the worst case, you can always do ... \NC .. \NC[options] ... \NC \NR Each cell is just a \framed[...]; so all options for \framed[...] work for Natural Tables. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On 26/01/2024 01:52, Jim wrote: I won't argue with you about readability of tables, but if I am typesetting something for someone and they want it a certain way, I don't want to get into an argument about it with them either. :-) It all depends on the level of ignorance of your client. e.g. there is a difference between not doing something because you are unable to do it, or that you don't want to do it (for a reason). In both cases nothing happens, but there is still a difference in the outcome. .F ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On Thu, Jan 25, 2024 at 22:22 (+0100), Wolfgang Schuster wrote: > Jim schrieb am 25.01.2024 um 22:01: >> Hi Henning, >> On Thu, Jan 25, 2024 at 17:16 (+0100), Henning Hraban Ramm wrote: >>> Am 25.01.24 um 16:12 schrieb Jim: >>> > Hi, I was wondering if anyone here could help me with these three things: >>> > For a long time I have been using Wichura's TaBle macros (i.e., what one >>> > gets with >>> > \input table >>> > in plain TeX) and would like to use what appears to be ConTeXt's version >>> > of >>> > those (i.e., what one gets with \starttable ... \stoptable). >>> > However, https://wiki.contextgarden.net/Command/starttable says >>> > The environment \starttable ... \stoptable is and (sic) old and >>> > nearly obsolete way to handle tabular material >>> > Q1: are there plans to remove \starttable ... \endtable from ConTeXt any >>> > time "soon", or is that wiki comment gratuitously pessimistic? >>> Hans suggests to use tabulate as long as it fits. >> I just gave that a try, using the same syntax as \starttable: >> \starttable[|c|c|] >> \HL >> \VL \bf Year \VL \bf Citizens \VL\SR >> \HL >> \VL 1675 \VL ˜428 \VL\FR >> \VL 1795 \VL 1124 \VL\MR >> \VL 1880 \VL 2405 \VL\MR >> \VL 1995 \VL 7408 \VL\LR >> \HL >> \stoptable >> \starttabulate[|c|c|] >> \HL >> \VL \bf Year \VL \bf Citizens \VL\SR >> \HL >> \VL 1675 \VL ˜428 \VL\FR >> \VL 1795 \VL 1124 \VL\MR >> \VL 1880 \VL 2405 \VL\MR >> \VL 1995 \VL 7408 \VL\LR >> \HL >> \stoptabulate >> While tabulate produced a table with the above input, it needs some work to >> make the table look good. (The columns are too narrow, the vrules don't >> meet the hrules, ...). >> Perhaps these can be fixed with some tweaking, but I notice that in all of >> https://wiki.contextgarden.net/Command/starttabulate >> and >> https://wiki.contextgarden.net/Tabulate >> and >> http://www.ntg.nl/maps/22/28.pdf >> there is a conspicuous lack of examples with vrules. And the tables in the >> (at least) the starttabulate wiki page which use vrules don't use tabulate >> to create the tables. >> Coincidence? I think not. :-) > Table which rely on rules to make the content readable have a serious > problem > (read Edward Tufte books how you can improve the visual style) but the > better > alternative in this case are either natural tables or extreme tables. > Below is a example which uses the table like wrapper for natural tables > which makes adding rules and changing the padding around text very > simple because each table cell is a \framed block with all its options. > \starttext > \startsetups[ruledtable] > \setupTABLE [frame=off,align=middle,loffset=.5em,roffset=.5em] > \setupTABLE [column] [each] [leftframe=on,rightframe=on] > \setupTABLE [row] [first] > [topframe=on,bottomframe=on,foregroundstyle=bold] > \setupTABLE [row] [last] [bottomframe=on] > \stopsetups > \startTABLE[setups=ruledtable] > \NC Year \NC Citizens \NC\NR > \NC 1675 \NC ˜428 \NC\NR > \NC 1795 \NC 1124 \NC\NR > \NC 1880 \NC 2405 \NC\NR > \NC 1995 \NC 7408 \NC\NR > \stopTABLE > \stoptext Wolfgang, thanks for the response and the sample code. [ Note to anyone else trying out this example: there are non-breakable spaces above, and depending on your system if you copy and paste them into a file, they will cause this code to fail. ] I won't argue with you about readability of tables, but if I am typesetting something for someone and they want it a certain way, I don't want to get into an argument about it with them either. :-) The nice thing about your setup above is that it is nice and structured. But if a table calls for some row, column or cell to be treated differently, I guess I am in for some more reading. Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On Thu, 25 Jan 2024, Jim wrote: > On Thu, Jan 25, 2024 at 17:30 (+0100), Aditya Mahajan wrote: > > > I haven't looked at starttable in well over a decade, but I did document > > some of it: > > > https://www.tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf > > https://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf > > Aditya, > > thanks for those links. Would you mind if I added them to the "See also" > section of the \starttable wiki page (notwithstanding someone's claim at the > top of the page saying they are obsolete)? Of course that's okay. It's a wiki1 Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On Thu, Jan 25, 2024 at 17:30 (+0100), Aditya Mahajan wrote: > On Thu, 25 Jan 2024, Jim wrote: >> In a recent answer on this list, Mikael helped someone by pointing out the >> \HF[...] command. The \HF command is not listed in the \starttable wiki >> page. >> Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those >> document(s)? >> Perhaps an answer to Q2 will answer this one too, but in case it doesn't... >> When using Wichura's \BeginTable ... \EndTable macros, I occasionally >> use the \\+nm feature to add n points above the current line and/or m >> points below the current line. >> Q3: Does ConTexT's \starttable ... \endtable have this feature? >> If so, how does one access this feature? > I haven't looked at starttable in well over a decade, but I did document some > of it: > https://www.tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf > https://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf Aditya, thanks for those links. Would you mind if I added them to the "See also" section of the \starttable wiki page (notwithstanding someone's claim at the top of the page saying they are obsolete)? Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
Jim schrieb am 25.01.2024 um 22:01: Hi Henning, On Thu, Jan 25, 2024 at 17:16 (+0100), Henning Hraban Ramm wrote: Am 25.01.24 um 16:12 schrieb Jim: Hi, I was wondering if anyone here could help me with these three things: For a long time I have been using Wichura's TaBle macros (i.e., what one gets with \input table in plain TeX) and would like to use what appears to be ConTeXt's version of those (i.e., what one gets with \starttable ... \stoptable). However, https://wiki.contextgarden.net/Command/starttable says The environment \starttable ... \stoptable is and (sic) old and nearly obsolete way to handle tabular material Q1: are there plans to remove \starttable ... \endtable from ConTeXt any time "soon", or is that wiki comment gratuitously pessimistic? Hans suggests to use tabulate as long as it fits. I just gave that a try, using the same syntax as \starttable: \starttable[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptable \starttabulate[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptabulate While tabulate produced a table with the above input, it needs some work to make the table look good. (The columns are too narrow, the vrules don't meet the hrules, ...). Perhaps these can be fixed with some tweaking, but I notice that in all of https://wiki.contextgarden.net/Command/starttabulate and https://wiki.contextgarden.net/Tabulate and http://www.ntg.nl/maps/22/28.pdf there is a conspicuous lack of examples with vrules. And the tables in the (at least) the starttabulate wiki page which use vrules don't use tabulate to create the tables. Coincidence? I think not. :-) Table which rely on rules to make the content readable have a serious problem (read Edward Tufte books how you can improve the visual style) but the better alternative in this case are either natural tables or extreme tables. Below is a example which uses the table like wrapper for natural tables which makes adding rules and changing the padding around text very simple because each table cell is a \framed block with all its options. \starttext \startsetups[ruledtable] \setupTABLE [frame=off,align=middle,loffset=.5em,roffset=.5em] \setupTABLE [column] [each] [leftframe=on,rightframe=on] \setupTABLE [row] [first] [topframe=on,bottomframe=on,foregroundstyle=bold] \setupTABLE [row] [last] [bottomframe=on] \stopsetups \startTABLE[setups=ruledtable] \NC Year \NC Citizens \NC\NR \NC 1675 \NC ˜428 \NC\NR \NC 1795 \NC 1124 \NC\NR \NC 1880 \NC 2405 \NC\NR \NC 1995 \NC 7408 \NC\NR \stopTABLE \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
Hi Henning, On Thu, Jan 25, 2024 at 17:16 (+0100), Henning Hraban Ramm wrote: > Am 25.01.24 um 16:12 schrieb Jim: >> Hi, I was wondering if anyone here could help me with these three things: >> For a long time I have been using Wichura's TaBle macros (i.e., what one >> gets with >> \input table >> in plain TeX) and would like to use what appears to be ConTeXt's version of >> those (i.e., what one gets with \starttable ... \stoptable). >> However, https://wiki.contextgarden.net/Command/starttable says >> The environment \starttable ... \stoptable is and (sic) old and >> nearly obsolete way to handle tabular material >> Q1: are there plans to remove \starttable ... \endtable from ConTeXt any >> time "soon", or is that wiki comment gratuitously pessimistic? > Hans suggests to use tabulate as long as it fits. I just gave that a try, using the same syntax as \starttable: \starttable[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptable \starttabulate[|c|c|] \HL \VL \bf Year \VL \bf Citizens \VL\SR \HL \VL 1675 \VL ˜428 \VL\FR \VL 1795 \VL 1124 \VL\MR \VL 1880 \VL 2405 \VL\MR \VL 1995 \VL 7408 \VL\LR \HL \stoptabulate While tabulate produced a table with the above input, it needs some work to make the table look good. (The columns are too narrow, the vrules don't meet the hrules, ...). Perhaps these can be fixed with some tweaking, but I notice that in all of https://wiki.contextgarden.net/Command/starttabulate and https://wiki.contextgarden.net/Tabulate and http://www.ntg.nl/maps/22/28.pdf there is a conspicuous lack of examples with vrules. And the tables in the (at least) the starttabulate wiki page which use vrules don't use tabulate to create the tables. Coincidence? I think not. :-) > tabulate uses mostly the same syntax as table(s), but as far as I looked > into the sources, it’s a different (and probably better) implementation. > I’m quite sure \starttable will stay, it’s just discouraged since > \startTABLE (natural tables) is better if you need more than \starttabulate. I looked at that and played with it (briefly), but when I saw there was something to make tables (i.e., \starttable) which used a syntax close to what I already know, I thought I'd go with what I know. At this point my ConTeXt learning curve is pretty steep already, but perhaps at some point in the future I'll be able to heed your advice. >> In a recent answer on this list, Mikael helped someone by pointing out the >> \HF[...] command. The \HF command is not listed in the \starttable wiki >> page. >> Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those >> document(s)? > I also don’t know anything about \HF and didn’t find it in the source. > Are you sure it wasn’t just used in a math context? It was indeed used in a math context. Unfortunately, that knowledge doesn't bring me any closer to finding the documentation. (Which gets me back to my learning curve. :-) >> Perhaps an answer to Q2 will answer this one too, but in case it doesn't... >> When using Wichura's \BeginTable ... \EndTable macros, I occasionally >> use the \\+nm feature to add n points above the current line and/or m >> points below the current line. >> Q3: Does ConTexT's \starttable ... \endtable have this feature? >> If so, how does one access this feature? > Probably not, you don’t use \\ in a ConTeXt table. That I already knew. > There’s \TB[] that understands the same parameters as \blank Thanks for that information. Unfortunately, it doesn't work well for tables with vrules, in either \starttabulate or \starttable. However, thanks for mentioning it, not all tables have vrules. Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
On Thu, 25 Jan 2024, Jim wrote: > In a recent answer on this list, Mikael helped someone by pointing out the > \HF[...] command. The \HF command is not listed in the \starttable wiki page. > > Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those > document(s)? > > > > Perhaps an answer to Q2 will answer this one too, but in case it doesn't... > > When using Wichura's \BeginTable ... \EndTable macros, I occasionally > use the \\+nm feature to add n points above the current line and/or m > points below the current line. > > Q3: Does ConTexT's \starttable ... \endtable have this feature? > If so, how does one access this feature? I haven't looked at starttable in well over a decade, but I did document some of it: https://www.tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf https://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: \starttable questions
Am 25.01.24 um 16:12 schrieb Jim: Hi, I was wondering if anyone here could help me with these three things: For a long time I have been using Wichura's TaBle macros (i.e., what one gets with \input table in plain TeX) and would like to use what appears to be ConTeXt's version of those (i.e., what one gets with \starttable ... \stoptable). However, https://wiki.contextgarden.net/Command/starttable says The environment \starttable ... \stoptable is and (sic) old and nearly obsolete way to handle tabular material Q1: are there plans to remove \starttable ... \endtable from ConTeXt any time "soon", or is that wiki comment gratuitously pessimistic? Hans suggests to use tabulate as long as it fits. tabulate uses mostly the same syntax as table(s), but as far as I looked into the sources, it’s a different (and probably better) implementation. I’m quite sure \starttable will stay, it’s just discouraged since \startTABLE (natural tables) is better if you need more than \starttabulate. In a recent answer on this list, Mikael helped someone by pointing out the \HF[...] command. The \HF command is not listed in the \starttable wiki page. Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those document(s)? I also don’t know anything about \HF and didn’t find it in the source. Are you sure it wasn’t just used in a math context? Perhaps an answer to Q2 will answer this one too, but in case it doesn't... When using Wichura's \BeginTable ... \EndTable macros, I occasionally use the \\+nm feature to add n points above the current line and/or m points below the current line. Q3: Does ConTexT's \starttable ... \endtable have this feature? If so, how does one access this feature? Probably not, you don’t use \\ in a ConTeXt table. There’s \TB[] that understands the same parameters as \blank Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] \starttable questions
Hi, I was wondering if anyone here could help me with these three things: For a long time I have been using Wichura's TaBle macros (i.e., what one gets with \input table in plain TeX) and would like to use what appears to be ConTeXt's version of those (i.e., what one gets with \starttable ... \stoptable). However, https://wiki.contextgarden.net/Command/starttable says The environment \starttable ... \stoptable is and (sic) old and nearly obsolete way to handle tabular material Q1: are there plans to remove \starttable ... \endtable from ConTeXt any time "soon", or is that wiki comment gratuitously pessimistic? In a recent answer on this list, Mikael helped someone by pointing out the \HF[...] command. The \HF command is not listed in the \starttable wiki page. Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those document(s)? Perhaps an answer to Q2 will answer this one too, but in case it doesn't... When using Wichura's \BeginTable ... \EndTable macros, I occasionally use the \\+nm feature to add n points above the current line and/or m points below the current line. Q3: Does ConTexT's \starttable ... \endtable have this feature? If so, how does one access this feature? Thanks. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] \starttable ... \stoptable padding
How do I adjust the margin/padding of \starttable ... \stoptable? In particular, can I make cells immediately next to one another without any padding? Troy Henderson ___ 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] Error with \placetable ... \starttable
On Thu, 6 Jan 2011, Khaled Hosny wrote: Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext This is still present in the latest beta. Aditya ___ 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] Error with \placetable ... \starttable
Looks like \stattable ... \stoptable no longer do grouping, the following is broken unless \stattable ... \stoptable is grouped. \starttext \placetable[here,nonumber]{foo} \starttable[|r|r|] \NC foo \NC bar \AR \stoptable \stoptext Regards, Khaled -- Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer ___ 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] \starttable ... \stoptable part II
On Wednesday 24 November 2010 14:57:36 Hans Hagen wrote: On 24-11-2010 2:54, Herbert Voss wrote: works with mkii, but not with mkiv example is from the documentation: \starttext \starttable[|l|c|c|] \DC\DL[2] \DR \NC\VL Mickey \VL Goofy \VL\SR \HL \VL Donald \VL $\star$ \VL \VL\SR \HL \VL Pluto \VL \VL $\star$ \VL\SR \HL \stoptable \stoptext ! Undefined control sequence. \next -\setTABLEerror \TABLEspanoverflow \handleTABLEerror \normalTABLEmultirule #1-\use {#1} \normalTABLElongrule \complexTableDL ...lTABLEmultirule {#1}}\fi \next \fi l.4 \DC\DL[2] \DR ok, i'll fix it Still broken... Alan ___ 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] \starttable ... \stoptable III
On 24-11-2010 7:20, Alan BRASLAU wrote: On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote: ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such \CL[color] % colored line \BL[number_cells] % grey background (BL = ?) They are useful. What should replace them? tabulate and bTABLE if colors shows up again in table then it's as in tabulate now but i need some strong motivation for that 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] \starttable ... \stoptable III
On Thursday 25 November 2010 09:49:39 Hans Hagen wrote: On 24-11-2010 7:20, Alan BRASLAU wrote: On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote: ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such \CL[color] % colored line \BL[number_cells] % grey background (BL = ?) They are useful. What should replace them? tabulate and bTABLE if colors shows up again in table then it's as in tabulate now but i need some strong motivation for that The logic behind table (tables, and tabulate) differs greatly from that of bTABLE. Their use is different and one may be more natural than the other, depending on one's point of view. Both mechanisms have their legitimate place in ConTeXt. I see that tabulate is recommended (http://wiki.contextgarden.net/Tables_Overview) and that table and tables are deprecated. I suppose that this is due to an internal re-write. What remains to be implemented in tabulate in order to fully replace table and tables? According to the wiki: vertical lines. The wiki is out-of-date, however, for in mkiv \VL is % present but not yet 100% ok So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Alan ___ 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] \starttable ... \stoptable III
Am 25.11.2010 um 11:16 schrieb Alan BRASLAU: So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Tables has different spacing between the rows (\FL, \ML, etc.) than tabulate and you can span columns which isn’t supported by tabulate. What tables miss is the indent feature from tabulate in narrower environments and itemize. 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] \starttable ... \stoptable III
On Thursday 25 November 2010 13:16:38 Wolfgang Schuster wrote: Am 25.11.2010 um 11:16 schrieb Alan BRASLAU: So if tabulate is indeed to replace table and tables, perhaps they should be eliminated. For backward compatibility, perhaps starttable and starttables could be synonymes for starttabulate? Or perhaps I am missing something. Tables has different spacing between the rows (\FL, \ML, etc.) than tabulate and you can span columns which isn’t supported by tabulate. What tables miss is the indent feature from tabulate in narrower environments and itemize. Would it be logical to merge table, tables, and tabulate? The choice can be a bit confusing. Alan ___ 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] \starttable ... \stoptable
what is wrong with the \em? With \bf or {\em ...} it is fine ! Misplaced \omit. recently read \omit \normalTABLEquote -\unskip \!ttRightGlue \omit \tablepos l.5 \NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL % didn't work ? \starttext \starttable[|l|r|]\HL \NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works %\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL % didn't work \NC $alfa$ \NC $beta$ \NC \MR \NC Links\NC Rechts \NC \LR \HL \stoptable \stoptext Herbert ___ 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] \starttable ... \stoptable part II
works with mkii, but not with mkiv example is from the documentation: \starttext \starttable[|l|c|c|] \DC\DL[2] \DR \NC\VL Mickey \VL Goofy \VL\SR \HL \VL Donald \VL $\star$ \VL \VL\SR \HL \VL Pluto \VL \VL $\star$ \VL\SR \HL \stoptable \stoptext ! Undefined control sequence. \next -\setTABLEerror \TABLEspanoverflow \handleTABLEerror \normalTABLEmultirule #1-\use {#1} \normalTABLElongrule \complexTableDL ...lTABLEmultirule {#1}}\fi \next \fi l.4 \DC\DL[2] \DR ? Herbert ___ 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] \starttable ... \stoptable
On 24-11-2010 12:20, Herbert Voss wrote: what is wrong with the \em? With \bf or {\em ...} it is fine ! Misplaced \omit. recently read \omit \normalTABLEquote -\unskip \!ttRightGlue\omit \tablepos l.5 \NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL % didn't work ? \starttext \starttable[|l|r|]\HL \NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works %\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL % didn't work \NC $alfa$ \NC $beta$ \NC \MR \NC Links\NC Rechts \NC \LR \HL \stoptable \stoptext in font-ini.mkiv: \def\emphasiscorrection {\ifhmode\ifnum\currentgrouptype=\@@aligngroup\else \expandafter\expandafter\expandafter\emphasislook \fi\fi} - 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] \starttable ... \stoptable
Am 24.11.2010 18:27, schrieb Hans Hagen: On 24-11-2010 12:20, Herbert Voss wrote: what is wrong with the \em? With \bf or {\em ...} it is fine \starttext \starttable[|l|r|]\HL \NC \bf Spalte 1 \NC \bf Spalte 2 \NC \FR \HL% works %\NC \em Spalte 1 \NC \em Spalte 2 \NC \FR \HL % didn't work \NC $alfa$ \NC $beta$ \NC \MR \NC Links\NC Rechts \NC \LR \HL \stoptable \stoptext in font-ini.mkiv: \def\emphasiscorrection {\ifhmode\ifnum\currentgrouptype=\@@aligngroup\else \expandafter\expandafter\expandafter\emphasislook \fi\fi} thanks Hans, works now. Herbert ___ 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] \starttable ... \stoptable III
Next problem with \NL, works with mkii but not mkiv ! Misplaced \noalign. \TABLEnoalign -\noalign \bgroup \let \noalign \relax \let \next = \complexTableNL [#1]-\TABLEnoalign {\edef \@@tiNL {#1}\simpleTableNL } l.5 ...\VL $\star$ \VL \VL\SR \HL\NL[30pt] ? \starttext \starttable[|l|c|c|] \NC\VL Mickey \VL Goofy \VL\SR \HL \VL Donald \VL $\star$ \VL \VL\SR \HL\NL[30pt] \VL Pluto \VL \VL $\star$ \VL\SR \HL \stoptable \stoptext Herbert ___ 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] \starttable ... \stoptable III
On 24-11-2010 6:50, Herbert Voss wrote: Next problem with \NL, works with mkii but not mkiv ! Misplaced \noalign. \TABLEnoalign -\noalign \bgroup \let \noalign \relax \let \next = \complexTableNL [#1]-\TABLEnoalign {\edef \@@tiNL {#1}\simpleTableNL } l.5 ...\VL $\star$ \VL \VL\SR \HL\NL[30pt] ? \starttext \starttable[|l|c|c|] \NC\VL Mickey \VL Goofy \VL\SR \HL \VL Donald \VL $\star$ \VL \VL\SR \HL\NL[30pt] \VL Pluto \VL \VL $\star$ \VL\SR \HL \stoptable \stoptext ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such - 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] \starttable ... \stoptable III
On Wednesday 24 November 2010 19:06:19 Hans Hagen wrote: ok, thanks for testing it ... I'm stripping that old code so bugs can creep in; I'm also considering removing the CL and such \CL[color] % colored line \BL[number_cells] % grey background (BL = ?) They are useful. What should replace them? Alan ___ 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] starttabulate vs starttable
hi there, please consider the following minimal examples: \starttext \starttable[|l|l|l|] \NC MidE \VL early ModE \VL ModE \NC \SR \HL \NC ge:s \VL gi:s \VL geese \NC \FR \NC na:m \VL ne:minimal \VL name \NC \MR \NC mi:s \VL mays \VL mice \NC \LR \stoptable \starttabulate[|l|l|l|] \NC MidE \NC early ModE \NC ModE \NC \NR \HL \NC ge:s \NC gi:s \NC geese \NC \NR \NC na:m \NC ne:minimal \NC name \NC \NR \NC mi:s \NC mays \NC mice \NC \NR \stoptabulate \stoptext the tabulate example is basicly the same without the vertical lines, which it seems like it can't do, i get an ! Undefined control sequence. but \HL seems to work (and \VL not). tabulate is very lightly documented so i am not sure which table command works there and which not. i'd like to use tabulate instead of table because of the spacing. i dont need to stretch the content like table does. this is a small inline table between 2 paragpraphs, tabulate seems more elegant to me here. Han, it would be nice if tabulate could handle VL, that would make tabulate even more useful. pretty please :D -f -- what we do not understand we do not possess. -- goethe ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] starttabulate vs starttable
the tabulate example is basicly the same without the vertical lines, which it seems like it can't do, i get an ! Undefined control sequence. I really don't know much about tabular material in ConTeXt, but from the very first line of http://wiki.contextgarden.net/Tabulate I would assume that this is indeed a feature (no vertical lines in tabulate). Arthur ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] starttabulate vs starttable
On Fri, 5 Oct 2007, frantisek holop wrote: hi there, please consider the following minimal examples: \starttext \starttable[|l|l|l|] \NC MidE \VL early ModE \VL ModE \NC \SR \HL \NC ge:s \VL gi:s \VL geese \NC \FR \NC na:m \VL ne:minimal \VL name \NC \MR \NC mi:s \VL mays \VL mice \NC \LR \stoptable \starttabulate[|l|l|l|] \NC MidE \NC early ModE \NC ModE \NC \NR \HL \NC ge:s \NC gi:s \NC geese \NC \NR \NC na:m \NC ne:minimal \NC name \NC \NR \NC mi:s \NC mays \NC mice \NC \NR \stoptabulate \stoptext the tabulate example is basicly the same without the vertical lines, which it seems like it can't do, i get an ! Undefined control sequence. Right now, tabulate does not support vertical lines. It is a nice feature to have. I know that the style guide says that one should not use vertical rules, but I feel that there I cases when I need them. but \HL seems to work (and \VL not). tabulate is very lightly documented so i am not sure which table command works there and which not. i'd like to use tabulate instead of table because of the spacing. i dont need to stretch the content like table does. this is a small inline table between 2 paragpraphs, tabulate seems more elegant to me here. Actually, table also works for this kind of thing. The place where tabulate is really needed is when you want automatic width for paragraphs. You can make table squeeze content vertically by saying \setuptables[depth=0.3,height=0.6] The default is height=0.8, depth=0.4. Play around with these values. Han, it would be nice if tabulate could handle VL, that would make tabulate even more useful. +1. Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] starttabulate vs starttable
On Fri, 5 Oct 2007, Arthur Reutenauer wrote: the tabulate example is basicly the same without the vertical lines, which it seems like it can't do, i get an ! Undefined control sequence. I really don't know much about tabular material in ConTeXt, but from the very first line of http://wiki.contextgarden.net/Tabulate I would assume that this is indeed a feature (no vertical lines in tabulate). Actually, core-tbl.tex says % \VLas soon as needed % color as soon as needed Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] starttabulate vs starttable
On Thu, 4 Oct 2007, Aditya Mahajan wrote: On Fri, 5 Oct 2007, frantisek holop wrote: i'd like to use tabulate instead of table because of the spacing. i dont need to stretch the content like table does. Compare: \setuptables[depth=0.2,height=0.8] %\tracetablestrue \starttext \starttable[s(1em)o0|l|l|l|] % And I thought that regex were hard to read :) \NC MidE \NC early ModE \NC ModE \NC \AR \HL \NC ge:s \NC gi:s \NC geese \NC \AR \NC na:m \NC ne:minimal \NC name \NC \AR \NC mi:s \NC mays \NC mice \NC \AR \stoptable \starttabulate[|l|l|l|] \NC MidE \NC early ModE \NC ModE \NC \NR \HL \NC ge:s \NC gi:s \NC geese \NC \NR \NC na:m \NC ne:minimal \NC name \NC \NR \NC mi:s \NC mays \NC mice \NC \NR \stoptabulate \stoptext Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \starttable \stoptable and some math
Compiles fine here, using the old I know it compiles, that is not the problem. But look closely at the output, in the starttable/stoptable the \oiint is ''ignored but in the startformula/stopformula it is shown. So the starttable/stoptable is doing something , what I don't know. That is what I observed Wim ConTeXt ver: 2007.08.24 14:18 MKII fmt: 2007.8.24 int: english/english So maybe something that changed recently. I cannot test with the current version right now (have a hard deadline, do not want to mess with the system...) Aditya ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \starttable \stoptable and some math
On Fri, 31 Aug 2007, WN wrote: Compiles fine here, using the old I know it compiles, that is not the problem. But look closely at the output, in the starttable/stoptable the \oiint is ''ignored but in the startformula/stopformula it is shown. So the starttable/stoptable is doing something , what I don't know. I see. I do not have the oiint in the the table, so something is wrong. The plain tex alignment works, so must be something that table is changing. \halign{\tabskip 3cm ## \cr $\oiint \vec{E}$ ${\rm div} \: \vec{E}$ \cr} \loggingall suggests that math collection is reset to default inside tables. So, a quick workaround: Change the collection from extra to default. Aditya ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] problem with starttable and subscript
Hello, the problem with the following example is, that the last X touches the line. \starttext \starttable[|p(2em)|] \NC $X^X$ $X_X^-$ \NC\AR \HL \stoptable \stoptext TIA for any help! Greetings, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \starttable...\stoptable
Bernd wrote: Hi, is there a function like cline{1-2} in LaTeX to produce a frame around a special cell? thanks This environment has colorsupport. I doubt that the line thickness can be influenced for indidual cells. I suggest that you have a look into the bTABLE -- eTABLE environment, which has many more possibilities. Willi ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context