[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
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 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] Possible bug in core-tab?
Aditya Mahajan wrote: Another bug: \starttext \starttablehead \HL \stoptablehead \starttables[|l|l|] \VL Some text \VL some text \VL \AR \stoptables \stoptext gives Misplaced \noalign. Bugfix: \def\stoptables {\chuckTABLEautorow %AM:Added. before the tail, else noalign problem \ifconditional\tablerepeattail\else\insertTABLEtail\fi \finishTABLE \egroup \dosplittablebox\tablecontentbox \flushnotes \egroup} ok, patched ... i cross my fingers for side effects -) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Possible bug in core-tab?
Another bug: \starttext \starttablehead \HL \stoptablehead \starttables[|l|l|] \VL Some text \VL some text \VL \AR \stoptables \stoptext gives Misplaced \noalign. Bugfix: \def\stoptables {\chuckTABLEautorow %AM:Added. before the tail, else noalign problem \ifconditional\tablerepeattail\else\insertTABLEtail\fi \finishTABLE \egroup \dosplittablebox\tablecontentbox \flushnotes \egroup} 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] Booktabs equivalent in Context
2007/8/9, Hamid Kamrani [EMAIL PROTECTED]: Aditya, In the example you give with CMID you have only two column preambles whereas the table has 3 columns and if one adds the missing preamble then one gets an error. Some how your new code breaks the calculation for number of columns. -Hamid He forgot only to put a \NC before the \AR. The correct code should be \starttable[s0|l|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \NC\AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \NC\AR \HL[3] \stoptable Wolfgang On 8/8/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting Johannes Graumann [EMAIL PROTECTED]: Aditya Mahajan wrote: Hi, The question of how to get tables equivalent to latex's booktabs package has been discussed quite a few times in the past. Booktabs package provides (top|mid|bottom)rule commands and a cmidrule command. The top and bottom rules are 0.08em thick, the midrule is 0.05em thick, and the cmidrules are 0.03em thick. The cmidrules do not extend beyond the columns edge. Here is an example of how to do something similar using tables in context http://wiki.contextgarden.net/Table#Booktabs. To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables? Hello, I'm one of the booktab-equivalent requesters and in my case the request is motivated by the (sadly German-only) http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf Please compare examples on pages 4 and 5 for the cmidrule functionality I'm missing in ConTeXt. The clarity you can give classy looking tables with trimmed cmidrules is even more evident in the example on page 9. There's lots of more use of this in the document, but it gets too esoteric to be easily grasped quickly (IMHO). Here is one attempt, which works correctly. Of course the best solution is to forget about the \omit and set the halign preamble correctly. But I have not been able to figure that out yet. \starttext \def\CMID{\normalTABLEshortrule} \unprotect \def\TableNC {\checkTABLEautorow \nextTABLEgrayline \ifnum\currentTABLEcolumn\maxTABLEcolumn \setTABLEerror\TABLEmissingrow \handleTABLEerror \else \global\advance\currentTABLEcolumn \plusone \ifnum\currentTABLEcolumn=1\relax \normalTABLEquote \else \fancyTABLEquote \fi \fi} \def\fancyTABLEquote {\unskip\!ttRightGlue\omit\hskip2em} % \protect \setuptables[rulethickness=0.03em] \starttable[s0|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \AR \HL[3] \stoptable \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 ___ ___ 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] Booktabs equivalent in Context
On Thu, 9 Aug 2007, Wolfgang Schuster wrote: 2007/8/9, Hamid Kamrani [EMAIL PROTECTED]: Aditya, In the example you give with CMID you have only two column preambles whereas the table has 3 columns and if one adds the missing preamble then one gets an error. Some how your new code breaks the calculation for number of columns. -Hamid He forgot only to put a \NC before the \AR. Sorry about that. I thought I pasted from a correctly running example. Here is another attempt, which I feel is the cleanest way to go about this whole thing. Right now the skip between the columns is not configurable, but it should be possible to use the get the value of the skip. The attached code typesets an example that Wolfgang had sent off-list. I have only changed two lines of the table.tex. Aditya \TracingFormats=2 \starttext \unprotect % SET VRULE: Invoked by the key | \def\!tfSetVrule{% \!thToksEdef\!taRuleColumnTemplate={% \noexpand\hfil \noexpand\vrule \noexpand\!thWidth \ifnum \!tgCode=1 \ifx \!tgValue\empty \the\LineThicknessFactor % Default integer \else \!tgValue % User-specified integer \fi \!taLTU % \LineThicknessUnit \else \!tgValue % User-specified dimension \fi % \noexpand\hfil \the\!taRuleColumnTemplate% % has \tabskips, when column number=0 \ifnum\!taColumnNumber=\zerocount\else\tabskip2em\fi}%ADDED (should be configurable) \!tfAdjoinPriorColumn} \def\!tfAdjoinPriorColumn{% \ifnum \!taColumnNumber=0 \!taPreamble=\!taRuleColumnTemplate % New \tabskip may have been added \ifnum \TracingFormats0 \!tfShowRuleTemplate \fi \else \ifx\!tfRowOfWidths\empty % no w keys specified yet, not even this col \else \!tfUpdateRowOfWidths \fi % Adjoin positioning glues to left and right of template \!thToksEdef\!taDataColumnTemplate={% \the \!taLeftGlue \the \!taDataColumnTemplate \the \!taRightGlue \tabskip\zeropoint}%ADDED \ifnum \TracingFormats0 \!tfShowTemplates \fi % Adjoin data- and rule-column templates to preamble \!thToksEdef\!taPreamble={% \the\!taPreamble \the\!taDataColumnTemplate \the\!taRuleColumnTemplate} \fi % % START NEW COLUMN \advance \!taColumnNumber 1 % Initialize data-column template, restoring last regular tabskip % after a once only tabskip \if!taOnceOnlyTabskip \!thToksEdef\!taDataColumnTemplate={% \tabskip \the\!taLastRegularTabskip} \else \!taDataColumnTemplate{##}% \fi % Remaining initializations \!taRuleColumnTemplate{}% # is inserted by \SetVrule, or \SetAlternateVrule \!taLeftGlue{\hfil}% % Default positioning is center \!taRightGlue{\hfil}% \!taMinimumColumnWidth=0pt \def\!tfWidthText{}% \!taOnceOnlyTabskipfalse% Set true by key o \ReadFormatKeys} \def\CM{\normalTABLEshortrule} \protect \starttable[s0|l|l|c|] \HL[3] % \TABLEnoalign{\unprotect\showthe\!taPreamble\protect} \NC \Use3[c]{Kase-Ubersicht} \NC \AR \HL[2] \NC Kase\NC Herkunftsland \NC Preis (Euro) \NC \AR \NC \CM \NC \CM \NC \CM \NC \DR \NC Edamer \NC Holland \NC 12.23\NC \AR \NC Gouda \NC Holland \NC 9.34 \NC \AR \NC Emmentaler \NC Allgau\NC 2.34 \NC \AR \NC Andechser Bierkase \NC Bayern\NC 1.-- \NC \AR \HL[3] \stoptable \stoptext ___ 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] Booktabs equivalent in Context
Wolfgang, It is not just a matter of forgetting the NC. When you add that NC then the tabbing and alignment is incorrect for the last column. The rules should not extend beyond the last column and in this case they do. Aditya's formatted correctly but had the wrong syntax. Yours has the right syntax but formats incorrectly. -Hamid On 8/9/07, Wolfgang Schuster [EMAIL PROTECTED] wrote: 2007/8/9, Hamid Kamrani [EMAIL PROTECTED]: Aditya, In the example you give with CMID you have only two column preambles whereas the table has 3 columns and if one adds the missing preamble then one gets an error. Some how your new code breaks the calculation for number of columns. -Hamid He forgot only to put a \NC before the \AR. The correct code should be \starttable[s0|l|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \NC\AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \NC\AR \HL[3] \stoptable Wolfgang On 8/8/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting Johannes Graumann [EMAIL PROTECTED]: Aditya Mahajan wrote: Hi, The question of how to get tables equivalent to latex's booktabs package has been discussed quite a few times in the past. Booktabs package provides (top|mid|bottom)rule commands and a cmidrule command. The top and bottom rules are 0.08em thick, the midrule is 0.05em thick, and the cmidrules are 0.03em thick. The cmidrules do not extend beyond the columns edge. Here is an example of how to do something similar using tables in context http://wiki.contextgarden.net/Table#Booktabs. To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables? Hello, I'm one of the booktab-equivalent requesters and in my case the request is motivated by the (sadly German-only) http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf Please compare examples on pages 4 and 5 for the cmidrule functionality I'm missing in ConTeXt. The clarity you can give classy looking tables with trimmed cmidrules is even more evident in the example on page 9. There's lots of more use of this in the document, but it gets too esoteric to be easily grasped quickly (IMHO). Here is one attempt, which works correctly. Of course the best solution is to forget about the \omit and set the halign preamble correctly. But I have not been able to figure that out yet. \starttext \def\CMID{\normalTABLEshortrule} \unprotect \def\TableNC {\checkTABLEautorow \nextTABLEgrayline \ifnum\currentTABLEcolumn\maxTABLEcolumn \setTABLEerror\TABLEmissingrow \handleTABLEerror \else \global\advance\currentTABLEcolumn \plusone \ifnum\currentTABLEcolumn=1\relax \normalTABLEquote \else \fancyTABLEquote \fi \fi} \def\fancyTABLEquote {\unskip\!ttRightGlue\omit\hskip2em} % \protect \setuptables[rulethickness=0.03em] \starttable[s0|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \AR \HL[3] \stoptable \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 ___ ___ 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 ___ ___ If your question
Re: [NTG-context] Booktabs equivalent in Context
Quoting Johannes Graumann [EMAIL PROTECTED]: Aditya Mahajan wrote: Hi, The question of how to get tables equivalent to latex's booktabs package has been discussed quite a few times in the past. Booktabs package provides (top|mid|bottom)rule commands and a cmidrule command. The top and bottom rules are 0.08em thick, the midrule is 0.05em thick, and the cmidrules are 0.03em thick. The cmidrules do not extend beyond the columns edge. Here is an example of how to do something similar using tables in context http://wiki.contextgarden.net/Table#Booktabs. To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables? Hello, I'm one of the booktab-equivalent requesters and in my case the request is motivated by the (sadly German-only) http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf Please compare examples on pages 4 and 5 for the cmidrule functionality I'm missing in ConTeXt. The clarity you can give classy looking tables with trimmed cmidrules is even more evident in the example on page 9. There's lots of more use of this in the document, but it gets too esoteric to be easily grasped quickly (IMHO). Here is one attempt, which works correctly. Of course the best solution is to forget about the \omit and set the halign preamble correctly. But I have not been able to figure that out yet. \starttext \def\CMID{\normalTABLEshortrule} \unprotect \def\TableNC {\checkTABLEautorow \nextTABLEgrayline \ifnum\currentTABLEcolumn\maxTABLEcolumn \setTABLEerror\TABLEmissingrow \handleTABLEerror \else \global\advance\currentTABLEcolumn \plusone \ifnum\currentTABLEcolumn=1\relax \normalTABLEquote \else \fancyTABLEquote \fi \fi} \def\fancyTABLEquote {\unskip\!ttRightGlue\omit\hskip2em} % \protect \setuptables[rulethickness=0.03em] \starttable[s0|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \AR \HL[3] \stoptable \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] Booktabs equivalent in Context
Aditya, In the example you give with CMID you have only two column preambles whereas the table has 3 columns and if one adds the missing preamble then one gets an error. Some how your new code breaks the calculation for number of columns. -Hamid On 8/8/07, Aditya Mahajan [EMAIL PROTECTED] wrote: Quoting Johannes Graumann [EMAIL PROTECTED]: Aditya Mahajan wrote: Hi, The question of how to get tables equivalent to latex's booktabs package has been discussed quite a few times in the past. Booktabs package provides (top|mid|bottom)rule commands and a cmidrule command. The top and bottom rules are 0.08em thick, the midrule is 0.05em thick, and the cmidrules are 0.03em thick. The cmidrules do not extend beyond the columns edge. Here is an example of how to do something similar using tables in context http://wiki.contextgarden.net/Table#Booktabs. To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables? Hello, I'm one of the booktab-equivalent requesters and in my case the request is motivated by the (sadly German-only) http://www.ctan.org/tex-archive/info/german/tabsatz/tabsatz.pdf Please compare examples on pages 4 and 5 for the cmidrule functionality I'm missing in ConTeXt. The clarity you can give classy looking tables with trimmed cmidrules is even more evident in the example on page 9. There's lots of more use of this in the document, but it gets too esoteric to be easily grasped quickly (IMHO). Here is one attempt, which works correctly. Of course the best solution is to forget about the \omit and set the halign preamble correctly. But I have not been able to figure that out yet. \starttext \def\CMID{\normalTABLEshortrule} \unprotect \def\TableNC {\checkTABLEautorow \nextTABLEgrayline \ifnum\currentTABLEcolumn\maxTABLEcolumn \setTABLEerror\TABLEmissingrow \handleTABLEerror \else \global\advance\currentTABLEcolumn \plusone \ifnum\currentTABLEcolumn=1\relax \normalTABLEquote \else \fancyTABLEquote \fi \fi} \def\fancyTABLEquote {\unskip\!ttRightGlue\omit\hskip2em} % \protect \setuptables[rulethickness=0.03em] \starttable[s0|l|l|] \HL[3] \NC Monat \NC 1965 \NC 1966 \AR \NC \CMID \NC \CMID \NC \CMID \DR \NC September \NC 2000 \NC 1700 \AR \HL[3] \stoptable \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 ___ ___ 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] Booktabs equivalent in Context
On Sat, 4 Aug 2007, Patrick Gundlach wrote: Hello Aditya, To me this looks exactly similar to the example in the booktabs manual. Am I missing something, or is it fair to say that context can generate booktabs like tables? Any way to shorten the rule \DL[2]? IMO this is critical for nicely set tables. But the rest looks very, very good! So many thanks for that! I once had to typeset a huge table, with huge in the sense of 'lots of rows and lots of columns' on a A4 single page. This would not have been possible without the help of \cmidrule which is a rule between two rows but restricted to a number of columns and with the ability to trim the rule on the left, the right or both sides. Gnu stuffed --- Emu stuffed So the first rule should be aligned left with the other rules in that table, the two rules must not touch each other (this is the trick to avoid the ugly vertical rules!) In booktabs speak this would be \cmidrule(r){1-1} and \cmidrule(l){2-2}. (booktabs.pdf on a LaTeX installation). Ah. Thank you for the explaination. I now understand the need for cmidrule. It should be possible to get something like this with TaBlE, but in the absense of the original PCTEX manual, I have not been able to understand how to set tables. thrd-tab.tex says that you can actually control the tokens for columns using alternate vrules, but I have not been able to get it to work. Is there something like \arraystretch(?) which is a factor that every vertical whitespace in a table is multiplied with? This way you can increase/decrease the height of a table without big trouble. If you are happy with an integer scaling, and do not use \Lower (it may be possible to do this more correctly, with distance={{a}{b}{c}}, and action for unknown set so that we call \OpenUp{a}{b}\def\LOW{\Lower{c}}). \unprotected\def\defineTABLEunits {\processaction [\@@tidistance] [ \v!none=\OpenUp00\def\LOW{\Lower6 }, \v!small=\OpenUp00\def\LOW{\Lower6 }, % == baseline \v!medium=\OpenUp11\def\LOW{\Lower7 }, \v!big=\OpenUp22\def\LOW{\Lower8 }, \v!unknown=\expandafter\OpenUp\@@tidistance]%AM: Added \doifelse\@@tidistance\v!none {\chardef\TABLErowfactor\zerocount} {\chardef\TABLErowfactor\plustwo }} \setuptables[rulethickness=0.03em] \startbuffer \starttable[s0|l|i2l|i2r|] \HL[3] \NC \Use2[c]{Item} \NC\NC \AR \DL[2] \DC\DR \NC Animal\NC Description \NC Price (\$) \NC \AR \HL[2] \NC Gnat \NC per gram \NC 13.65 \NC \AR \NC \NC each \NC 0.01 \NC \AR \NC Gnu \NC stuffed \NC 92.50 \NC \AR \NC Emu \NC stuffed \NC 33.33 \NC \AR \NC Armadillo \NC frozen \NC 8.99 \NC \AR \HL[3] \stoptable \stopbuffer \starttext \getbuffer \setuptables[distance=big] \getbuffer \setuptables[distance={{1}{10}}] \getbuffer \setuptables[distance=55] \getbuffer \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 ___
[NTG-context] Repeat (*) key in TaBlE
Hi, What is the correct way of using * key with TaBlE? The following does not work \starttext \starttable[|*{2}l|] \HL \NC A \NC B \NC \NR \HL \stoptable \starttable[|l|l|] \HL \NC A \NC B \NC \NR \HL \stoptable \stoptext Thanks, 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] Beautiful source code
Hans, I'm revisiting the metafun manual and I am marveling at the format of the source code. For example: \starttabulate[|lT|l|] \HL \NC \METAPOST\ code \NC mathematical equivalent \NC \NR \HL \NC (x,y) shifted (a,b) \NC $(x+a,y+b)$ \NC \NR \NC (x,y) scaled s \NC $(sx,sy)$ \NC \NR \NC (x,y) xscaled s \NC $(sx,y)$\NC \NR \NC (x,y) yscaled s \NC $(x,sy)$\NC \NR \NC (x,y) zscaled (u,v) \NC $(xu-yv,xv+yu)$ \NC \NR \NC (x,y) slanted s \NC $(x+sy,y)$ \NC \NR \NC (x,y) rotated r \NC $(x\cos(r)-y\sin(r),x\sin(r)+y\cos(r))$ \NC \NR \HL \stoptabulate Pasting into my email program does not do this code snippet justice, as in the Metafun source, all of the \NC's are aligned vertically, as are the \NR's. How do you do this? Does your editor align these for you, or do you painstakenly align them manually with the spacebar? ___ 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] Beautiful source code
David Arnold wrote: Hans, I'm revisiting the metafun manual and I am marveling at the format of the source code. For example: \starttabulate[|lT|l|] \HL \NC \METAPOST\ code \NC mathematical equivalent \NC \NR \HL \NC (x,y) shifted (a,b) \NC $(x+a,y+b)$ \NC \NR \NC (x,y) scaled s \NC $(sx,sy)$ \NC \NR \NC (x,y) xscaled s \NC $(sx,y)$\NC \NR \NC (x,y) yscaled s \NC $(x,sy)$\NC \NR \NC (x,y) zscaled (u,v) \NC $(xu-yv,xv+yu)$ \NC \NR \NC (x,y) slanted s \NC $(x+sy,y)$ \NC \NR \NC (x,y) rotated r \NC $(x\cos(r)-y\sin(r),x\sin(r)+y\cos(r))$ \NC \NR \HL \stoptabulate Pasting into my email program does not do this code snippet justice, as in the Metafun source, all of the \NC's are aligned vertically, as are the \NR's. How do you do this? Does your editor align these for you, or do you painstakenly align them manually with the spacebar? just manually ; the cleaner the ascii text, the less chance of errors (typos or coding); company policy/habit; it hardly takes more time; Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Multipage tables - repeating header
All - I have created a table similar to the example in the wiki \starttext \setuptables[split=repeat] \starttablehead \HL \VL {\bf Head1} \VL {\bf Head2} \VL \AR \HL \stoptablehead \starttables[|l|l|] \dorecurse{50}{% \VL SomeText \VL SomeText \VL \AR \HL} \stoptables Problem: top margin on first page is bigger. \stoptext The header repeats as expected, and the table extends properly across multiple pages. The problem is, the last row on each page is missing the bottom horizontal line, except for the very last row in the table. I have tried numerous variations of \starttabletail ... \stoptabletail, and none seem to have the desired effect. Is there an easy way to get the bottom \HL on the last row of each page to appear? I have tried this both on my system and on the live area of the wiki with the same result; my install is TeXExec | current distribution: web2c TeXExec | context source date: 2007.04.17 12:51 TeXExec | format path: . /home/markea/.texmf-config/web2c /home/markea/.texmf-var/web2c /home/markea/texmf/web2c /usr/local/teTeX/share/texmf-config/web2c /usr/local/teTeX/share/texmf-var/web2c /usr/local/teTeX/share/texmf/web2c /usr/local/teTeX/share/texmf-local/web2c /usr/local/teTeX/share/texmf-dist/web2c TeXExec | start of analysis TeXExec | processing document 'texexec' TeXExec | tex processing method: context TeXExec | writing option file texexec.top TeXExec | using randomseed 1319 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeX, Version 3.141592-1.40.3 (Web2C 7.5.6) (/usr/local/teTeX/share/texmf-local/web2c/natural.tcx) entering extended mode (./texexec.tex ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.5.3 int: english/english Output written on texexec.pdf (1 page, 21611 bytes). Transcript written on texexec.log. TeXExec | runtime: 0.638854 TeXExec | end of analysis TeXExec | TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD TeXExec | TeXUtil | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD TeXExec | TeXExec | testing interface en TeXExec | pdfTeX Version 3.141592-1.40.3 (Web2C 7.5.6) TeXExec | ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.5.3 int: english/english TeXExec | TeXExec | testing interface nl TeXExec | pdfTeX Version 3.141592-1.40.3 (Web2C 7.5.6) TeXExec | ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.5.3 int: dutch/dutch Mark Almeida ___ 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] Can't get header repetition with multipage table
Hello folks, I can't get repeated headers in a multipage table. I tried the following: % \starttext \starttablehead \HL \VL Column 1 \VL Column 2 \VL\SR \HL \stoptablehead \starttabletail \HL \VL Column 1 \VL Column 2 \VL\SR \HL \stoptabletail \starttables[|l|l|] \dorecurse{100}{\VL value \VL value \VL\SR} \VL value \VL value \VL\SR \stoptables \stoptext % I get a multipage table, but the header appears only at the beginning of the table and doesn't repeat itself on each page. Same for the tail part. I believe I am using the last ConTeXt version: TeXExec | TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD TeXExec | TeXUtil | version 9.1.0 - 1997-2005 - PRAGMA ADE/POD TeXExec | CtxTools | version 1.3.3 - 2004/2006 - PRAGMA ADE/POD TeXExec | ConTeXt ver: 2007.04.03 13:01 MKII fmt: 2007.4.7 int: english/english This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) I tried first http://live.contextgarden.net/ but ConTeXt live seems to be down at the moment, I always get the message the file 'texexec' is not found. Any help most welcome. -- Jean-Philippe ReyProfesseur informatique - École Centrale Paris [EMAIL PROTECTED] 92295 Châtenay-Malabry Cedex - France ___ 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] Can't get header repetition with multipage table
On 5/14/07, Jean-Philippe Rey [EMAIL PROTECTED] wrote: Hello folks, I can't get repeated headers in a multipage table. I tried the following: Try with \setuptables[split=repeat] See also http://www.logosrl.it/context/modules/2007-04-17/singles/core-tab_ebook.pdf pag 19, nr 78. % \setuptables[split=repeat] \starttext \starttablehead \HL \VL Column 1 \VL Column 2 \VL\SR \HL \stoptablehead \starttabletail \HL \VL Column 1 \VL Column 2 \VL\SR \HL \stoptabletail \starttables[|l|l|] \dorecurse{100}{\VL value \VL value \VL\SR} \VL value \VL value \VL\SR \stoptables \stoptext % -- luigi 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] The \frac macro.
On Sun, 22 Apr 2007, John R. Culleton wrote: Knuth defines a macro for simple fractions such as 3/4 etc. and calls it \frac: \def\frac#1/#2{\leavevmode \kern.1em \raise .5ex \hbox{\the\scriptfont0 #1}% \kern-.1em $/$% \kern -.15em \lower .25ex \hbox{\the\scriptfont0 #2}}% The call is e.g., \frac 3/4. This works fine in Context. However if I undefine the Knuth macro and still use the same \frac call I don't get an error message but the results are quite different. I get both a stroke and a bar between the 3 and the 4. Is there another macro in Context called \frac and if so how is it called? \frac {a}{b} is equivalent to plain tex's {a \over b}. There is also a command similar to what you want to define in ConTeXt. It is called vulgar fraction. From core-mis.tex %D \starttabulate %D \HL %D \NC \bf method \NC \bf visualization \NC\NR %D \HL %D \NC 0 \NC \chardef\vulgarfractionmethod0\vulgarfraction{1}{2} \NC\NR %D \NC 1 \NC \chardef\vulgarfractionmethod1\vulgarfraction{1}{2} \NC\NR %D \NC 2 \NC \chardef\vulgarfractionmethod2\vulgarfraction{1}{2} \NC\NR %D \NC 3 \NC \chardef\vulgarfractionmethod3\vulgarfraction{1}{2} \NC\NR %D \HL %D \stoptabulate However, if you plan to use such fractions in serious work, do read the introduction of xfrac (ftp://tug.ctan.org/pub/tex-archive/macros/latex/exptl/xfrac/doc/xfrac.pdf) I think that the vigrule vs solidus argument also applies to ConTeXt's definition. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Help with ConTeXt TaBlE
Hi, I have a letterhead defined in latex: \newcommand{\myletterhead}{\noindent {\begin{tabular*}{6.5in}{ @{} l @{} r @{} } \parbox[b]{2.5in}{\huge \sc John Doe} \parbox[b]{4.0in}{\flushright \large \sl MOTTO}\ \ \hline \hline \\[-8pt] \Large WhoIAm\normalsize STREET\\ \Email \it [EMAIL PROTECTED] P.O.~Box ddd\\ \Telefon \it telnumber \FAX faxnumber TOWN, STATE ZIPCODE\\ \end{tabular*}} \normalsize } I'm trying to find the equivalent in ConTeXt But I can't find the equivalent of @{} which removes the padding around cells so that a horizontal line is flush with thee text. I also can't seem to find a way to draw a fine double line: \hline \hline \\[-8pt] \HL \MR \HL skips a whole line and godown[] doesn't seem to work in table context. Thanks for any suggestions. pgpEkcGavP9NR.pgp Description: PGP signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with ConTeXt TaBlE
Jeremy Johnson wrote: But I can't find the equivalent of @{} which removes the padding around cells so that a horizontal line is flush with thee text. s(0pt) See http://wiki.contextgarden.net/Table I also can't seem to find a way to draw a fine double line: \hline \hline \\[-8pt] That, I don't really know. \HL \NC\vadjust{\kern-16pt}\NC\NR \HL seems to work, but is very ugly coding. Best, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] textblocks in tables
Hi list After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX. However it isn't that easy to start with :-) Especially when some advanced functionality is needed... I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them. My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority A \endPriority Description of the requirement. \beginRequirement \Requirement An other requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Additional requirements} \beginRequirement \Requirement An additional requirement \par \endRequirement \beginPriority B \endPriority Description of the requirement. \beginRequirement \subRequirement A sub requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Summary of requirements} % Here I would like to list all requirements with their priorities in a table % I tried something like this but it didn't work \reset[Requirement] \setupblock[Requirement][before=\HL\VL,after=] \setupblock[Priority][before=\VL,after=\VL\MR \starttable[|l|c|] \useblocks[Requirement,Priority] \stoptable \stoptext Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesnt have to be a table necessarily. I need some sort of compact listing. Thanks in advance for your help! Michael ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textblocks in tables
On Fri, 16 Mar 2007 09:41:50 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Hi list After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX. However it isn't that easy to start with :-) Especially when some advanced functionality is needed... I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them. My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority A \endPriority Description of the requirement. \beginRequirement \Requirement An other requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Additional requirements} \beginRequirement \Requirement An additional requirement \par \endRequirement \beginPriority B \endPriority Description of the requirement. \beginRequirement \subRequirement A sub requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Summary of requirements} % Here I would like to list all requirements with their priorities in a table % I tried something like this but it didn't work \reset[Requirement] \setupblock[Requirement][before=\HL\VL,after=] \setupblock[Priority][before=\VL,after=\VL\MR \starttable[|l|c|] \useblocks[Requirement,Priority] \stoptable \stoptext Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesnt have to be a table necessarily. I need some sort of compact listing. Thanks in advance for your help! Michael Hi Michael, using natural tables instead of the normal table environment works. \bTABLE \bTR \bTD\useblocks[Requirement]\eTD \bTD\useblocks[Priority]\eTD \eTR \eTABLE Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textblocks in tables
Wolfgang, thank you for your answer! However I suppose that it doesn't completely solve my problem. I think this solution makes a table with two huge cells. I couldn't make horizontal lines after every line and table splitting doesn't seem to work either (I have a lot of requirements). Is there an other way to solve my problem with tables? I'd really like to automate the process because copy and paste the text is very error prone. I looked at paragraphs as well but I didn't succeed. I thought inserting the necessary commands in the 'begin' and 'after' property of the textblock would 'generate' me correct ConTeXt code. There is an other problem: The command \resetRequirement doesn't work. I need to reset the counter because the numbering must be the same like in the chapters before. I tried the code at live.contextgarden.net. Tanks for your help! Michael Wolfgang Schuster wrote: On Fri, 16 Mar 2007 09:41:50 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Hi list After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX. However it isn't that easy to start with :-) Especially when some advanced functionality is needed... I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them. My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority A \endPriority Description of the requirement. \beginRequirement \Requirement An other requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Additional requirements} \beginRequirement \Requirement An additional requirement \par \endRequirement \beginPriority B \endPriority Description of the requirement. \beginRequirement \subRequirement A sub requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Summary of requirements} % Here I would like to list all requirements with their priorities in a table % I tried something like this but it didn't work \reset[Requirement] \setupblock[Requirement][before=\HL\VL,after=] \setupblock[Priority][before=\VL,after=\VL\MR \starttable[|l|c|] \useblocks[Requirement,Priority] \stoptable \stoptext Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesnt have to be a table necessarily. I need some sort of compact listing. Thanks in advance for your help! Michael Hi Michael, using natural tables instead of the normal table environment works. \bTABLE \bTR \bTD\useblocks[Requirement]\eTD \bTD\useblocks[Priority]\eTD \eTR \eTABLE Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context winmail.dat___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textblocks in tables
On Fri, 16 Mar 2007 15:29:30 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Wolfgang, thank you for your answer! However I suppose that it doesn't completely solve my problem. I think this solution makes a table with two huge cells. I couldn't make horizontal lines after every line and table splitting doesn't seem to work either (I have a lot of requirements). Is there an other way to solve my problem with tables? I'd really like to automate the process because copy and paste the text is very error prone. I looked at paragraphs as well but I didn't succeed. I thought inserting the necessary commands in the 'begin' and 'after' property of the textblock would 'generate' me correct ConTeXt code. There is an other problem: The command \resetRequirement doesn't work. I need to reset the counter because the numbering must be the same like in the chapters before. I tried the code at live.contextgarden.net. Tanks for your help! Michael Hi Michael, another way to place the summary at the end of your document. \starttabulate[|p(8cm)|p(1cm)|] \NC\useblocks[Requirement] \NC\useblocks[Priority] \NC\NR \stoptabulate I saw also the problem with the reset of the enumeration in my file but I don't know where the problem is. Wolfgang Wolfgang Schuster wrote: On Fri, 16 Mar 2007 09:41:50 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Hi list After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX. However it isn't that easy to start with :-) Especially when some advanced functionality is needed... I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them. My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority A \endPriority Description of the requirement. \beginRequirement \Requirement An other requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Additional requirements} \beginRequirement \Requirement An additional requirement \par \endRequirement \beginPriority B \endPriority Description of the requirement. \beginRequirement \subRequirement A sub requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Summary of requirements} % Here I would like to list all requirements with their priorities in a table % I tried something like this but it didn't work \reset[Requirement] \setupblock[Requirement][before=\HL\VL,after=] \setupblock[Priority][before=\VL,after=\VL\MR \starttable[|l|c|] \useblocks[Requirement,Priority] \stoptable \stoptext Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesnt have to be a table necessarily. I need some sort of compact listing. Thanks in advance for your help! Michael Hi Michael, using natural tables instead of the normal table environment works. \bTABLE \bTR \bTD\useblocks[Requirement]\eTD \bTD\useblocks[Priority]\eTD \eTR \eTABLE Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] textblocks in tables
Well, the result looks promising. The page breaking doesn't work however. An other idea: Is it possible to modify the line-spacing, that the 'Priority' block is printed on the same line as the 'Requirement' block. This would preserve the page breaking because there is no \start \stop something. The command \resetRequirement has to work, otherwise the whole effort is useless. Wolfgang, thank you again for your quick answer. Michael Wolfgang Schuster wrote: On Fri, 16 Mar 2007 15:29:30 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Wolfgang, thank you for your answer! However I suppose that it doesn't completely solve my problem. I think this solution makes a table with two huge cells. I couldn't make horizontal lines after every line and table splitting doesn't seem to work either (I have a lot of requirements). Is there an other way to solve my problem with tables? I'd really like to automate the process because copy and paste the text is very error prone. I looked at paragraphs as well but I didn't succeed. I thought inserting the necessary commands in the 'begin' and 'after' property of the textblock would 'generate' me correct ConTeXt code. There is an other problem: The command \resetRequirement doesn't work. I need to reset the counter because the numbering must be the same like in the chapters before. I tried the code at live.contextgarden.net. Tanks for your help! Michael Hi Michael, another way to place the summary at the end of your document. \starttabulate[|p(8cm)|p(1cm)|] \NC\useblocks[Requirement] \NC\useblocks[Priority] \NC\NR \stoptabulate I saw also the problem with the reset of the enumeration in my file but I don't know where the problem is. Wolfgang Wolfgang Schuster wrote: On Fri, 16 Mar 2007 09:41:50 +0100 Bernhard Michael [EMAIL PROTECTED] wrote: Hi list After writing some documents in LaTeX I discovered ConTeX. It's a great macro package for TeX. It gives me the flexibility I missed with LaTeX. However it isn't that easy to start with :-) Especially when some advanced functionality is needed... I write a document where I have to describe requirements. I want to give these requirements a running number over all chapters and I also need to prioritise them. My idea is to describe the requirements in several chapter. At the end I want to list all the requirements together with their priority. I tried the following code but unfortunately it didn't work: \defineenumeration[Requirement][location=left,text=Req,width=broad,after={\blank[small]}] \defineblock[Requirement,Priority] \setupblock[Requirement][after=] \hideblocks[Priority] \starttext \chapter{Description of requirements} \beginRequirement \Requirement A requirement \par \endRequirement \beginPriority A \endPriority Description of the requirement. \beginRequirement \Requirement An other requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Additional requirements} \beginRequirement \Requirement An additional requirement \par \endRequirement \beginPriority B \endPriority Description of the requirement. \beginRequirement \subRequirement A sub requirement \par \endRequirement \beginPriority C \endPriority Description of the requirement. \chapter{Summary of requirements} % Here I would like to list all requirements with their priorities in a table % I tried something like this but it didn't work \reset[Requirement] \setupblock[Requirement][before=\HL\VL,after=] \setupblock[Priority][before=\VL,after=\VL\MR \starttable[|l|c|] \useblocks[Requirement,Priority] \stoptable \stoptext Is it possible to use text blocks within tables or does an other way exists to do the same thing? It doesnt have to be a table necessarily. I need some sort of compact listing. Thanks in advance for your help! Michael Hi Michael, using natural tables instead of the normal table environment works. \bTABLE \bTR \bTD\useblocks[Requirement]\eTD \bTD\useblocks[Priority]\eTD \eTR \eTABLE Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context winmail.dat___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Underfull \vbox (badness 10000) in tables
Hi, I get underfull \vbox badness 1 in start/stoptable. Is this a false alarm, or am I doing something wrong? \starttext \starttable[|ls(1em)|l|p(5cm)|c|] \HL[3] \BL[4] \SR \NC \ReFormat[cB] {Forward Channel} \NC \ReFormat[cB] {Backward Channel} \NC \ReFormat[cB] {Equivalent System } \NC \ReFormat[cB] {Literature } \NC \SR \HL[2] \NC Noiseless \NC Noiseless/Useless \NC Real-Time source coding \NC [7] \NC \FR \NL \NC Noisy \NC Noiseless \NC Real-Time joint source-channel coding over DMC with noiseless feedback \NC [5] \NC \MR \NL \NC Noisy \NC Useless \NC Real-Time joint source-channel coding over DMC with no feedback \NC [2-3,5]\NC \LR \HL[3] \stoptable \stoptext This gives Underfull \vbox (badness 1) detected at line 19 \vbox(43.40007+0.0)x142.26378 .\vbox(8.26648+0.0)x142.26378 ..\hbox(8.26648+2.1)x142.26378, glue set 0.88643 ...\hbox(0.0+0.0)x0.0 ...\*12ptrmtfrm* R ...\*12ptrmtfrm* e ...\*12ptrmtfrm* a ...\*12ptrmtfrm* l ...etc. ..\penalty 2100 ..\glue(\baselineskip) 3.8669 ..\hbox(8.26648+2.1)x142.26378, glue set 0.35889 ...\*12ptrmtfrm* c ...\kern-0.3264 ...\*12ptrmtfrm* h ...\*12ptrmtfrm* a ...\*12ptrmtfrm* n ...etc. ..\penalty 2000 ..etc. Underfull \vbox (badness 1) detected at line 24 \vbox(43.40007+0.0)x142.26378 .\vbox(8.26648+0.0)x142.26378 ..\hbox(8.26648+2.1)x142.26378, glue set 0.88643 ...\hbox(0.0+0.0)x0.0 ...\*12ptrmtfrm* R ...\*12ptrmtfrm* e ...\*12ptrmtfrm* a ...\*12ptrmtfrm* l ...etc. ..\penalty 2100 ..\glue(\baselineskip) 3.8669 ..\hbox(8.26648+2.1)x142.26378, glue set 0.35889 ...\*12ptrmtfrm* c ...\kern-0.3264 ...\*12ptrmtfrm* h ...\*12ptrmtfrm* a ...\*12ptrmtfrm* n ...etc. ..\penalty 2000 ..etc. Lines 19 and 24 are end of rows. What is happening here? Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Indenting tables
All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Professional Services(707)429-0341 Home Office (707)480-5038 Cell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indenting tables
On Mon, 5 Feb 2007, The Wizard wrote: All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. You can use \midaligned{\starttable ... \stoptable} or (untested) \placetable [here][none]{none} {\starttable ... \stoptable} Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Indenting tables
Aditya Mahajan wrote: On Mon, 5 Feb 2007, The Wizard wrote: All - I am creating simple tables like this \starttable[|l|l|l|l|] \HL \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL \AR \HL \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 4500MB/s \VL \AR \HL \stoptable The table is created fine, but I would like it to be centered in the surrounding text. The current table starts at the left page margin, rather than where the text starts. Is there a simple way to indent the left edge of the table to match the surrounding text? I have tried using \setuptables[align=middle], but it seems to have no effect. You can use \midaligned{\starttable ... \stoptable} or (untested) \placetable [here][none]{none} {\starttable ... \stoptable} Aditya Aditya - Thanks so much; the \placetable... form did exactly what I was looking for. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Professional Services(707)429-0341 Home Office (707)480-5038 Cell ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to do something like ^1/_2 with frac?
On Fri, 26 Jan 2007, Taco Hoekwater wrote: Hubertus wrote: Hi all again, I try to do something like 1/2 with an upper 1 and a lower 2. The code below still doesn't quite work. \def\nfrac#1#2{\leavevmode\kern.1em% \raise.5ex\hbox{\scriptsize #1}% \kern-.1em/\kern-.15em% \lower.25ex\hbox{\scriptsize #2}} Such a macro is already present. The command's name is \vulgarfraction, and even is configurable (3 is the default rendering);-) Best, taco % example taken from core-mis.tex \starttext \starttabulate \HL \NC \bf method \NC \bf visualization \NC\NR \HL \NC 0 \NC \chardef\vulgarfractionmethod0\vulgarfraction{1}{2} \NC\NR \NC 1 \NC \chardef\vulgarfractionmethod1\vulgarfraction{1}{2} \NC\NR \NC 2 \NC \chardef\vulgarfractionmethod2\vulgarfraction{1}{2} \NC\NR \NC 3 \NC \chardef\vulgarfractionmethod3\vulgarfraction{1}{2} \NC\NR \HL \stoptabulate \stoptext Be careful. This method does not work correctly inside math mode. I do not know if it is a good idea to use such a construct inside math mode. I am mentioning this because someone added an example on the wiki where \vfrac is used in math mode. Look at the output of $\vulgarfraction{a}{b} (a+b)$ The a and b of the fraction is in text mode rather than math mode. On the LaTeX end, there are two packages that provide such a feature: nicefrac and xfrac. Nicefrac ensures that the height of the fraction is not greater than `M'. It is somewhat cleaver, and works correctly in displaystyle, textstyle, scriptstyle and scriptscriptstyle. See units.dtx for its implementation http://www.ctan.org/tex-archive/macros/latex/contrib/units/ On the other hand, if you want to read what is wrong with nicefrac, read the documentation of xfrac by Morton Høgholm ftp://tug.ctan.org/pub/tex-archive/macros/latex/exptl/xfrac/doc/xfrac.pdf His main objection is that nicefrac uses virglue instead of a solidus to separate fractions --- since a solidus is absent from CM fonts. (What are these things? Is a solidus present in LM?) Another thing is that nicefrac does not work with old style figures. xfrac allows you to configure the font for the numerator, solidus and the denominator, amongst other things. The vulgarfrac in ConTeXt suffers from most of the problems of nicefrac. The best option is for the font to provide more symbols like \onehalf \threequarter etc. Failing that we need to have a macro \vulgarfrac where \vulgrarfrac 12 is same as \onehalf. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to do something like ^1/_2 with frac?
Hubertus wrote: Hi all again, I try to do something like 1/2 with an upper 1 and a lower 2. The code below still doesn't quite work. \def\nfrac#1#2{\leavevmode\kern.1em% \raise.5ex\hbox{\scriptsize #1}% \kern-.1em/\kern-.15em% \lower.25ex\hbox{\scriptsize #2}} Such a macro is already present. The command's name is \vulgarfraction, and even is configurable (3 is the default rendering);-) Best, taco % example taken from core-mis.tex \starttext \starttabulate \HL \NC \bf method \NC \bf visualization \NC\NR \HL \NC 0 \NC \chardef\vulgarfractionmethod0\vulgarfraction{1}{2} \NC\NR \NC 1 \NC \chardef\vulgarfractionmethod1\vulgarfraction{1}{2} \NC\NR \NC 2 \NC \chardef\vulgarfractionmethod2\vulgarfraction{1}{2} \NC\NR \NC 3 \NC \chardef\vulgarfractionmethod3\vulgarfraction{1}{2} \NC\NR \HL \stoptabulate \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] another problem with \starttables
Hello, shouldn't there be a line on the top of each page: \starttext \starttablehead \HL \stoptablehead \starttables[|l|] \NC test \NC\FR \dorecurse{100}{\NC test \NC\MR} \NC test \NC\LR \stoptables \stoptext ? Cheers, 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] Unwanted space before a \HL in tables
Hi, now I have changed to TABLE, and this is very powerful and well functioning. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unwanted space before a \HL in tables
Hi, now I have a new conTeXt, but tables remain tricky. A slight variation of the wiki example with horizontal lines gives unwanted vertical space: \starttext \placetable[here][tab:sample]{sample table}{\start \starttablehead \HL \VL command \VL meaning \VL\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \VL \tex{NC}\VL next column \VL\FR \VL \tex{HL}\VL horizontal line \VL\MR \VL \tex{VL}\VL vertical line \VL\MR \VL \tex{NR}\VL next row\VL\AR \HL \VL \tex{SR}\VL single row \VL\MR \VL \tex{FR}\VL first row \VL\MR \VL \tex{MR}\VL middle row \VL\MR \VL \tex{LR}\VL last row\VL\LR \stoptables \stop} \stoptext -- Gerhard Kugler Psychotherapeut http://www.psychotherapie-kugler.de ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] multipage tables
On Tue, Oct 10, 2006 at 04:58:33PM +0200, Wolfgang Schuster wrote: can you post a minimum example of your problem, because I can't find a solution only with your current describtion. Hi Wolfgang, I have modified the wiki-example only slightly in appendix 1. Appendix 2 is the log-file. Gerhard -- Gerhard Kugler Psychotherapeut Bensheim (Germany) http://www.psychotherapie-kugler.de \starttext \placetable[here][tab:sample]{sample table}{\start \starttablehead \HL \NC \TWO Obertext zum Ganzen \NC\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|p(0.2\textwidth)|p(0.75\textwidth)|] \NC Text1 \NC Text1a \NC\FR \NC \tex{HL} \NC horizontal line \NC\MR \NC \tex{VL} \NC vertical line \NC\MR \NC \tex{NR} \NC next row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \NC \tex{SR} \NC single row \NC\FR \NC \tex{FR} \NC first row \NC\MR \NC \tex{MR} \NC middle row \NC\MR \NC \tex{LR} \NC last row \NC\LR \HL \stoptables \stop} \stoptext This is pdfeTeX, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) (format=cont-en 2006.1.23) 10 OCT 2006 18:03 entering extended mode **cont-en tables2.tex (./tables2.tex{/usr/share/texmf/pdftex/config/pdftex.cfg} ConTeXt ver: 2003.1.31 fmt: 2006.1.23 int: english mes: english language : language en is active protectionstate 0 system : cont-new loaded (/usr/share/texmf/tex/context/base/cont-new.tex systems: beware: some patches loaded from cont-new.tex! system (E-TEX) : [line 726] \ifcsname ) system : cont-old loaded (/usr/share/texmf/tex/context/base/cont-old.tex loading: Context Old Macros ) system : cont-fil loaded (/usr/share/texmf/tex/context/base/cont-fil.tex loading: Context File Synonyms ) bodyfont : 12pt rm is loaded language : patterns 2:2-en-2 4:2-de-2 5:2-fr-2 6:2-es-2 7:2-it-2 8:2-nl-2 loaded specials : tex,postscript,rokicki loaded \openout2 = `tables2.tui'. system : tables2.top loaded (./tables2.top) \openout0 = `mpgraph.mp'. \openout0 = `mprun.mp'. \openout0 = `mpgraph.mp'. \openout0 = `mprun.mp'. pdftex : needs map file: original-context-symbol.map pdftex : needs map file: pl0-ams-cmr.map pdftex : needs map file: original-vogel-symbol.map (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) (./tables2.tuo) systems: begin file tables2 at line 1 TABLE : skipping \HL TABLE : \MR changed into \LR TABLE : change \MR into \LR/\SR TABLE : change \LR into \FR/\SR TABLE : skipping \HL floatblocks: 1 limited floatblocks: 1 placed [1.1] systems: end file tables2 at line 86 ) Here is how much of TeX's memory you used: 347 strings out of 68101 4871 string characters out of 753943 4388269 words of memory out of 5504175 30091 multiletter control sequences out of 1+5 10453 words of font info for 35 fonts, out of 50 for 1000 54 hyphenation exceptions out of 1000 44i,17n,48p,125b,632s stack positions out of 1500i,500n,5000p,20b,5000s 0 PDF objects out of 30 0 named destinations out of 131072 0 words of extra memory for PDF output out of 65536 Output written on tables2
Re: [NTG-context] external table alignment
On Thu, 05 Oct 2006 11:03:09 -0600 Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear knights, I still need help with this one. How do I get the table flush left (no offset)? Best Idris On Wed, 04 Oct 2006 10:14:31 -0600, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Dear consortium, I need to get the argument of \start-stoptable aligned flush left. Even with \setuptables[split=yes,align=left] (a la \setupframed) there is still a small offset of the leftmost column. Please advise === \starttext Some text \starttable[|l|l|] \NC 2001 \NC Fall \NC\SR \stoptable Some text \stoptext === \starttable[o(0pt)|l|l|] \HL \NC 2001 \NC Fall \NC\SR \HL \stoptable The o(xxx) key is your friend. BTW the wiki is a place to find such answers. http://wiki.contextgarden.net/Table There is a example where you can also see the solution for you problem. Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] external table alignment
On Fri, 06 Oct 2006 10:00:50 -0600, Wolfgang Schuster [EMAIL PROTECTED] wrote: \starttable[o(0pt)|l|l|] \HL \NC 2001 \NC Fall \NC\SR \HL \stoptable The o(xxx) key is your friend. Thank you for this, and for the wiki reference. Best Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] split natural table over columns
Peter Rolf wrote: Johan Sandblom wrote: Good point, in the actual case there were two columns, a name and a number. The reason for using the table is align the name to the left and the number to the right. So a more realistic example is something like \starttext \bTABLE \setupTABLE[c][1][align=right] \setupTABLE[c][2][align=left] \dorecurse{10}{ \bTR\bTD foo\eTD\bTD 123\eTD\eTR \bTR\bTD b \eTD\bTD 123456\eTD\eTR} \eTABLE \stoptext So there is no need to split that table. I would suggest to only rearrange it a bit for your column layout. Also TABLE is not the best choise here (I'm no table expert, but I think table is better here). %\SetTableToWidth\hsize \starttable[|l|r|l|r|] \HL \dorecurse{10}{% \VL foo \NC 123 \VL[2] b \NC 12345 \VL\AR} \HL \stoptable For more details about table see http://wiki.contextgarden.net/Table HTH, Peter I missed the horizontal ones :D ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta
Hi Hans, please check the running table-heads producing a table over several pages 1. the running tablehead is only on first page 2. the running tablefoot is only on the last page that was not in version 5.2.4 % -- TestFile \starttext % \SetTableToWidth{\textwidth} \setuptables[split=yes,bodyfont=9pt] \starttablehead \HL % \NC Datum\NC Text\NC\FR % \AR \HL \stoptablehead \starttabletail \HL \stoptabletail % \starttables[|l|l|] % \dorecurse{50}{ \NC 2006-08-18 \NC TestTest 1\NC\AR \NC 1771-12-05 \NC TestTest 2\NC\AR } \NC\NC\NC\LR % Last Row \AR % \stoptables \stoptext thanks Bernd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] beta
Hi Hans, producing a table over several pages 1. the running tablehead is only on first page 2. the running tablefoot is only on the last page that problem is also not fixed. Bernd %%% TestFile % \starttext % \SetTableToWidth{\textwidth} \setuptables[split=yes,bodyfont=9pt] \starttablehead \HL % \NC\use{2}\ReFormat[lp(0.28\textwidth)]{Datum\hfill Ereignis} \NC Person \NC PID \NC {\it PID} \NC\tfx Seite\NC\tfx Beleg\NC\FR % \AR \HL \stoptablehead \starttabletail \HL \stoptabletail % \starttables[|lp(0.2\textwidth)|lp(0.04\textwidth)|lp(0.3\textwidth)|lp(0.05\textwidth)|lp(0.05\textwidth)|rp(0.06\textwidth)|lp(0.05\textwidth)|] % \dorecurse{50}{ \NC 2006-08-18 \NC U \NC Militzer, Bernd\NC 002\NC 003\NC \NC J\NC\AR \NC 1771-12-05 \NC G \NC Rudolph, Johann Heinrich\NC 134\NC 135\NC \NC J\NC\AR } \NC\NC\NC\NC\NC\NC\NC\NC\LR % Last Row \LR % \stoptables \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table questions
-- \|10 as a relacement for \VL gives me thicker vert. lines in that position only. How can I define a thicker vert. Line for the whole column? My attempts in \starttable[..\|10..] doesn't work. -- Is there an other way of changing linethickness of single vertical lines? Why is there so little space between the two rows of the table below? \starttable[|l|p(.7\textwidth)|] \HL \NC bla1 \VL Eins \type{zwei} drei. Eins zwei drei. Eins zwei drei \type{vier} oder \type{sechs}l. Das ist der Leerraum zwischen den Spalten \type{n}. \FR \NC bla2 \VL Eins, zwei \type{drei} \LR \HL \stoptable \NC \FR and \NC \LR you need to finish the column Ahh! This solves most problems with the last example, too. The wiki-example with colored rows should then be corrected. Are there reasons other, than with \BL, \CL, to use \FR, \LR without \NC? -- The two tables in the example below are differing and show, that \SetTableToWidth{0pt} doesn't reset the situation. What is the defaultvalue/resetvalue for \SetTableToWidth{}? i had to look that one up in thrd-tab -) it sets a token list \unprotect [\the\!taTableSpread] \protect This is a better definition than the orginal TaBlE one: \def\SetTableToWidth#1% {\doifelsenothing{#1}{\!taTableSpread\emptytoks}{\!taTableSpread{to #1}}} Yes, this would be a solution! ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table questions
[EMAIL PROTECTED] wrote: Hallo! Has anybody same effects? Or is this me alone? Should this work, or is tableenvironment still experimental and those effects normal? Wolfgang I have studied the table examples at contextgarden and have some questions. -- \|10 as a relacement for \VL gives me thicker vert. lines in that position only. How can I define a thicker vert. Line for the whole column? My attempts in \starttable[..\|10..] doesn't work. -- Why is there so little space between the two rows of the table below? \starttable[|l|p(.7\textwidth)|] \HL \NC bla1 \VL Eins \type{zwei} drei. Eins zwei drei. Eins zwei drei \type{vier} oder \type{sechs}l. Das ist der Leerraum zwischen den Spalten \type{n}. \FR \NC bla2 \VL Eins, zwei \type{drei} \LR \HL \stoptable \NC \FR and \NC \LR you need to finish the column -- The two tables in the example below are differing and show, that \SetTableToWidth{0pt} doesn't reset the situation. What is the defaultvalue/resetvalue for \SetTableToWidth{}? i had to look that one up in thrd-tab -) it sets a token list \unprotect [\the\!taTableSpread] \protect This is a better definition than the orginal TaBlE one: \def\SetTableToWidth#1% {\doifelsenothing{#1}{\!taTableSpread\emptytoks}{\!taTableSpread{to #1}}} \starttable[|l|l|] \VL 11 \VL 12 \VL\FR \VL 21 \VL 22 \VL\LR \stoptable \SetTableToWidth{\textwidth} % some other table stuff \SetTableToWidth{0pt} \starttable[|l|l|] \VL 11 \VL 12 \VL\FR \VL 21 \VL 22 \VL\LR \stoptable -- Look at the example below: Without any \SetTableToWidth{} this table has neither hor. Lines nor green color. The gray is there. Why? Variant 1: This is an combination of two wiki-examples. The first column of the table is about \textwidth (a little bit smaller). Why? Between the gray and the second hor. Line there is a small white area. Same between green and fourth hor. Line. Hmm! colors in those tables are a bit of a hack; i need to reimplement this (i.e. merge the original and the patches) aftwr which i can improve the code Variant 2: Hor. Line and green area are .2\textwidth as expected. But gray area is about .6\textwidth and so is the column as a whole. Why that? Variant 3: All ok now. Even the spacing between coloured areas and lines is ok. \setupcolors[state=start] \starttext %\SetTableToWidth{.2\textwidth} % Variant 2 \SetTableToWidth{\textwidth}% Variant 1 \starttable[|lp(.45\textwidth)|lp(.45\textwidth)|] \HL \BL[1]\SR %\VL Command \VL Meaning \VL\SR % Variant 3 \NC Command \NC Meaning \SR \HL \NC \tex{NC} \NC next column \FR \NC \tex{NR} \NC next row\LR \HL \CL[green]\SR \NC \tex{AR} \NC automatic row \SR \HL \stoptable \stoptext -- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] table questions
Hallo! I have studied the table examples at contextgarden and have some questions. -- \|10 as a relacement for \VL gives me thicker vert. lines in that position only. How can I define a thicker vert. Line for the whole column? My attempts in \starttable[..\|10..] doesn't work. -- Why is there so little space between the two rows of the table below? \starttable[|l|p(.7\textwidth)|] \HL \NC bla1 \VL Eins \type{zwei} drei. Eins zwei drei. Eins zwei drei \type{vier} oder \type{sechs}l. Das ist der Leerraum zwischen den Spalten \type{n}. \FR \NC bla2 \VL Eins, zwei \type{drei} \LR \HL \stoptable -- The two tables in the example below are differing and show, that \SetTableToWidth{0pt} doesn't reset the situation. What is the defaultvalue/resetvalue for \SetTableToWidth{}? \starttable[|l|l|] \VL 11 \VL 12 \VL\FR \VL 21 \VL 22 \VL\LR \stoptable \SetTableToWidth{\textwidth} % some other table stuff \SetTableToWidth{0pt} \starttable[|l|l|] \VL 11 \VL 12 \VL\FR \VL 21 \VL 22 \VL\LR \stoptable -- Look at the example below: Without any \SetTableToWidth{} this table has neither hor. Lines nor green color. The gray is there. Why? Variant 1: This is an combination of two wiki-examples. The first column of the table is about \textwidth (a little bit smaller). Why? Between the gray and the second hor. Line there is a small white area. Same between green and fourth hor. Line. Hmm! Variant 2: Hor. Line and green area are .2\textwidth as expected. But gray area is about .6\textwidth and so is the column as a whole. Why that? Variant 3: All ok now. Even the spacing between coloured areas and lines is ok. \setupcolors[state=start] \starttext %\SetTableToWidth{.2\textwidth} % Variant 2 \SetTableToWidth{\textwidth}% Variant 1 \starttable[|lp(.45\textwidth)|lp(.45\textwidth)|] \HL \BL[1]\SR %\VL Command\VL Meaning \VL\SR % Variant 3 \NC Command \NC Meaning \SR \HL \NC \tex{NC}\NC next column \FR \NC \tex{NR}\NC next row\LR \HL \CL[green]\SR \NC \tex{AR}\NC automatic row \SR \HL \stoptable \stoptext -- Wolfgang ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] synonyms in combination with table(s)
Hi all, using synonyms in combination with table(s) I get an error: systems : begin file FehlerTableSynonyms at line 40 ! Misplaced \omit. \!ttLongHrule -\omit \span \omit \span \!ttShortHrule argument Rudolph, Joha\= {n}e Christiane Friedericke \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \processsynonym ...nonymstyle \c!synonymcolor {#3} \else \explicithmode \doat... \getsynonymmeaning ...meaningtrue \getvalue {#2#3} \egroup l.56 \NC 67\NC \doGetPID{67} \NC Geburt: \getGEB{67}\NC\AR ? ^D ! Emergency stop. \!ttLongHrule -\omit \span \omit \span \!ttShortHrule argument Rudolph, Joha\= {n}e Christiane Friedericke \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \processsynonym ...nonymstyle \c!synonymcolor {#3} \else \explicithmode \doat... \getsynonymmeaning ...meaningtrue \getvalue {#2#3} \egroup l.56 \NC 67\NC \doGetPID{67} \NC Geburt: \getGEB{67}\NC\AR % testfile: % \enableregime[windows] \mainlanguage[de] \setupencoding[default=texnansi] \setuppapersize[a4][a4] % % \definesynonyms[PID][PIDs][\doGetPID] % \def\getPID#1{\doGetPID{#1}~(#1)} \def\getPIDGeb#1{\doGetPID{#1}~(#1) -- Geburt} \def\getPIDHei#1{\doGetPID{#1}~(#1) -- Heirat} \def\getPIDTod#1{\doGetPID{#1}~(#1) -- Tod} % \def\getGEB#1{\doGetPID{Geb#1}} \def\getTAU#1{\doGetPID{Tau#1}} \def\getHEI#1{\doGetPID{Hei#1}} \def\getTOD#1{\doGetPID{Tod#1}} \def\getALT#1{\doGetPID{Alt#1}} % \PID{8}{Militzer, Hermann Paul} \PID{Geb8}{14. Juni 1884} \PID{Tau8}{17. Juni 1884} \PID{Hei8}{16. August 1910} \PID{Tod8}{5. Oktober 1962} \PID{Alt8}{78 Jahre, 3 Monate, 21 Tage} % \PID{67}{Rudolph, Joha\={n}e Christiane Friedericke} \PID{Geb67}{21. Juli 1804} \PID{Tau67}{22. Juli 1804} \PID{Hei67}{} \PID{Tod67}{1. Februar 1880} \PID{Alt67}{75 Jahre, 6 Monate, 20 Tage} % % % \starttext % Die \getPID{67} ist am \getGEB{67} geboren und am \getTOD{67} gestorben; sie wurde \getALT{67} alt. \blank[big] \doGetPID{8} heiratete am \getHEI{8} in Gera.\crlf \getPID{8} starb im Alter von \getALT{8} am \getTOD{8} um 23.20\,Uhr in M¸nchenbernsdorf. % \blank[2*big] % \starttable[|r|lp(0.4\textwidth)|lp(0.4\textwidth)|] \NC PID \NC Person\NC Bemerkung\NC\AR \HL \NC 8\NC \doGetPID{8} \NC Geburt: \getGEB{8}\NC\AR \HL \NC\use{3}{~}\NC\AR % Leerzeile \NC 67\NC \doGetPID{67} \NC Geburt: \getGEB{67}\NC\AR \HL \stoptable % \stoptext % Thanks for help Bernd ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Repeating tabulate head/tail on every page
Tobias Burnus wrote: Hello, I have a long tabulate which spans several pages. I use: \starttabulatehead \HL \NC Energy \NC Temp. \NC Magn. \NC Wavenumb. \NC Wavelength \NC Freq. \NC Energy \NC Energy \NC\NR \HL \stoptabulatehead \starttabulatetail \HL \stoptabulatetail \setuptabulate[header=repeat] may work Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Repeating tabulate head/tail on every page
Hello, Hans Hagen schrieb: \setuptabulate[header=repeat] may work Hmm, it does somehow, but very strangely: See http://www.physik.fu-berlin.de/~tburnus/tmp/energy-tabulate.pdf and http://www.physik.fu-berlin.de/~tburnus/tmp/energy-tabulate.tex Without repeat it looks ok: =page 1=== Header % \HL of head some lines % some \HL . ===page 2 .. ===page 3 . -- % \HL of tail However, If I use repeat: =page 1=== Header % extra vertical spacing % \HL of head some lines % extra spacing % extra HL % some \HL of the tabulate body . .% No \HL of tail ===page 2 % \HL of head Header .. % NO \HL of head .. % \HL of tail (ok) ===page 3 Header % extra spacing % \HL of head . % extra spacing % \HL of tail (ok) * * * In addition I still don't understand why \tables starts on the second page, TeX source: http://www.physik.fu-berlin.de/~tburnus/tmp/energy.tex Tobias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Repeating tabulate head/tail on every page
Hello, I have a long tabulate which spans several pages. I use: \starttabulatehead \HL \NC Energy \NC Temp. \NC Magn. \NC Wavenumb. \NC Wavelength \NC Freq. \NC Energy \NC Energy \NC\NR \HL \stoptabulatehead \starttabulatetail \HL \stoptabulatetail but this only shows the head/tail of the table at the very beginning and very end of the table. (Every row spans only a single line.) Tobias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Fat lines in tables?
Hello, how can I create lines with different widths using the \DL command as I do with \HL[factor] oder \VL[factor]? With \DL the factor is interpreted as a number of columns, not as a multiple of the default linewidth. So how to make thick lines in that case? Thanks and regards, Robert ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] splitting table into columns
Hello, how could I split a table into columns in a clean manner? To show, what I want, I prepared the following example file: - the first page is ok for me, you see just the issue mentioned in http://context.literatesolutions.com/collector/15 - the 5th page looks clean - the 6th page looks also clean but should be balanced - all other pages are not ok... TIA for any hints, Peter \definecolumnset[example][n=3] \starttext \input tufte \section{Try with columns and tables} \startcolumns[n=3] \starttablehead \HL \NC A \NC B \NC\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \dorecurse{200}{\NC bla \NC bla \NC\AR} \stoptables \stopcolumns \page \input tufte \section{Try with columnset and tables} \startcolumnset[example] \starttablehead \HL \NC A \NC B \NC\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|l|] \dorecurse{200}{\NC bla \NC bla \NC\AR} \stoptables \stopcolumnset \page \input tufte \section{Try with columns and TABLE} \startcolumns[n=3] \bTABLE[split=repeat] \bTABLEhead \bTR \bTH A \eTH \bTH B \eTH \eTR \eTABLEhead \bTABLEbody \dorecurse{200}{\bTR \bTD bla \eTD \bTD bla \eTD \eTR} \eTABLEbody \eTABLE \stopcolumns \page \input tufte \section{Try with columnset and TABLE} \startcolumnset[example] \bTABLE[split=repeat] \bTABLEhead \bTR \bTH A \eTH \bTH B \eTH \eTR \eTABLEhead \bTABLEbody \dorecurse{200}{\bTR \bTD bla \eTD \bTD bla \eTD \eTR} \eTABLEbody \eTABLE \stopcolumnset \stoptext -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] alignment problems of units in table
Hello I get the units always left aligned in my table while the rest gets the correct alignement. What do I do wrong? \starttable[|l|r|r|r|r|r|] \HL \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC \Kilo \Gram \Per \Cubic \Meter \LR \HL \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR \HL \NC \NC \NC \NC \NC average \NC 421.3 \SR \HL \stoptable Thanks Wolfgang texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded for mat=cont-en 2006.3.23) 13 APR 2006 11:44 context : ver: 2006.02.15 17:41 cont-en : ver: 2006.02.15 17:41 fmt: 2006.3.23 mes: english ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment problems of units in table
Wolfgang wrote: Hello I get the units always left aligned in my table while the rest gets the correct alignement. What do I do wrong? \starttable[|l|r|r|r|r|r|] \HL \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC \Kilo \Gram \Per \Cubic \Meter \LR \HL \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR \HL \NC \NC \NC \NC \NC average \NC 421.3 \SR \HL \stoptable units act upon signals that they insert in the text, in this case (no quantity given) you need to start the unit sequence using \Unit \NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Gram \NC \Unit \Kilo \Gram \Per \Cubic \Meter \LR needs wikifying - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] alignment problems of units in table
Hello, thanks a lot! I will have a look at the wiki and try to add this (will be my first addition). Wolfgang Hans Hagen schrieb: Wolfgang wrote: Hello I get the units always left aligned in my table while the rest gets the correct alignement. What do I do wrong? \starttable[|l|r|r|r|r|r|] \HL \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC \Kilo \Gram \Per \Cubic \Meter \LR \HL \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR \HL \NC \NC \NC \NC \NC average \NC 421.3 \SR \HL \stoptable units act upon signals that they insert in the text, in this case (no quantity given) you need to start the unit sequence using \Unit \NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Gram \NC \Unit \Kilo \Gram \Per \Cubic \Meter \LR needs wikifying - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Miguel Queiros wrote: Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf). Greets, Peter Thanks for your help! Miguel Queirós \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} This is what I call 'creative usage' of a feature :) Better use \getbuffer for this. \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] P�gina 3. \page P�gina 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context % interface=en output=pdftex % Time-stamp: Dienstag, 11 April 2006 12:14:18; test.tex % \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. \start \startlocal % only setup, no content! \setuppapersize[A4,landscape][A4,landscape] \stoplocal % here comes the content \placetable{Just an expample}{\getbuffer[teste]} \page % !! place it after stop and look what happens \stop P�gina 3. \page P�gina 4. \stoptext %%% Local Variables: %%% mode: context %%% TeX-master: %%% End: ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Peter Rolf wrote: Miguel Queiros wrote: Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Hi Miguel. I have attached a working example (sorry for the crippled output; seems, my emacs is not configured right for utf). Greets, Peter Thanks for your help! Miguel Queirós \starttext P�gina 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page P�gina 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} This is what I call 'creative usage' of a feature :) Better use \getbuffer for this. \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] P�gina 3. \page P�gina 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context enough suffereing ... % for cont-new.tex: \unprotect \def\definepapersize {\dotripleempty\dodefinepapersize} \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]} {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% \else \getparameters[\??pp][#1]% \setuppapersize \fi} \def\dosetuppapersize[#1][#2]% {\doifassignmentelse{#1} {\setuppaper[#1]} {\doifelsenothing{#2} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:2:#1}{}]}} {\doifassignmentelse{#2} {\getparameters[\??pp\executeifdefined{\??pp:1:#1}{#1}][#2]} {\expanded{\dodosetuppapersize [\executeifdefined{\??pp:1:#1}{#1}]% [\executeifdefined{\??pp:1:#2}{#2}]} \let\reinstatepapersize\relax \def\adaptpapersize {\global\let\reinstatepapersize\restorepapersize \setuppapersize} \appendtoks \reinstatepapersize \global\let\reinstatepapersize\relax \to \everyaftershipout \protect \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \starttext \setuppapersize[main] Page 1. \page Page 2. \page \setuppapersize[extra] Page 2 \page \setuppapersize[main] Page 3. \page Page 4. \page \adaptpapersize[extra] Page 5. \page Page 6. \page \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Rows and lines in tables
Robert Engelhardt wrote: Hello all, I'm a new ConTeXt user (started using it a few days ago) and I do have three problems now with tables which I could not solve reading the manual and the content of the ConTeXt wiki. I've created a minimal example (see below) illustrating my problems: 1. How can create lines with different widths using the \DL command as I do with \HL[factor] oder \VL[factor]? This would, in my example, allow to align the dummyx text in the first table with the numbers x in the second table. 2. How can I create a carriage return in the text of a table cell? Neither \crlf nor \\ do work (tried it with the AAA and BBB text in the first table to get them into the same cell. 3. How can I synchronize the height of the first two lines of the first table with those of the second table, no matter if there's a line between the rows (as in the second table, a thin one as in my example or even a fat one) or not (like in the first table which visually has a big cell)? Can I create an invisible line? How do I line up the BBB with the YYY / ZZZ line? Or, another possibility, how do I control the rows independently, having the BBB in the first table very close to the AAA, perhaps even three lines of text there, and at the same time only two rows of text in the second table? What about having only one line of text in the first table, vertically centered to the corresponding two rows of the second table? === [example] === \starttext \define\bold{8} \startcombination[2*1] {\starttable[|c|] \HL[\bold] \VL[\bold] AAA \VL[\bold]\FR \VL BBB \VL\LR \HL[\bold] \VL dummy1 \VL\SR \HL \VL dummy2 \VL\SR \HL \VL dummy3 \VL\SR \HL[\bold] \VL dummy4 \VL\SR \HL \VL dummy5 \VL\SR \HL \VL dummy6 \VL\SR \HL[\bold] \VL dummy7 \VL\SR \HL \VL dummy8 \VL\SR \HL \VL dummy9 \VL\SR \HL[\bold] \stoptable}{} {\starttable[|c|cw(3cm)|] \HL[\bold] \VL[\bold] \use{2} XXX \VL[\bold]\FR \HL \VL YYY \VL[1] ZZZ \VL\LR \HL[\bold] \VL 1 \VL \VL \SR \DL\VL\DR \VL 2 \VL \VL \SR \DL\VL\DR \VL 3 \VL \VL \SR \DL\VL\DR \VL 4 \VL \VL \SR \DL\VL\DR \VL 5 \VL \VL \SR \DL\VL\DR \VL 6 \VL \VL \SR \DL\VL\DR \VL 7 \VL \VL \SR \DL\VL\DR \VL 8 \VL \VL \SR \DL\VL\DR \VL 9 \VL \VL \SR \HL[\bold] \stoptable}{} \stopcombination \stoptext === [/example] === I know, a layout with all these horizontal lines and two tables sitting next to each other is not the best one, but I'm trying to reconstruct an existing document which is designed that way. Thanks for your help! btw, redefining\bold is a bad idea, use \Bold (i.e. capitalize your personal commands) \starttext \def\DummyLine {\VL \blackrule[height=.5\linewidth,depth=.5\linewidth,width=0pt] \VL \NR} \def\DummyBoldT{\VL \blackrule[height=4\linewidth, depth=0\linewidth, width=0pt] \VL \VL \NR} \def\DummyBoldB{\VL \blackrule[height=0\linewidth, depth=3\linewidth, width=0pt] \VL \VL \NR} \define\bold{8} \startcombination[2*1] {\starttable[|c|] \HL[\bold] \VL[\bold] AAA \VL[\bold]\FR \DummyLine \VL BBB \VL\LR \HL[\bold] \VL dummy1 \VL\SR \HL \VL dummy2 \VL\SR \HL \VL dummy3 \VL\SR \HL[\bold] \VL dummy4 \VL\SR \HL \VL dummy5 \VL\SR \HL \VL dummy6 \VL\SR \HL[\bold] \VL dummy7 \VL\SR \HL \VL dummy8 \VL\SR \HL \VL dummy9 \VL\SR \HL[\bold] \stoptable}{} {\starttable[|c|cw(3cm)|] \HL[\bold] \VL[\bold] \use{2} XXX \VL[\bold]\FR \HL \VL YYY \VL[1] ZZZ \VL\LR \HL[\bold] \VL 1 \VL \VL \SR \DL\VL\DR \VL 2 \VL \VL \SR \DL\VL\DR \VL 3 \VL \VL \SR \DummyBoldT \DL\VL\DR \DummyBoldB \VL 4 \VL \VL \SR \DL\VL\DR \VL 5 \VL \VL \SR \DL\VL\DR \VL 6 \VL \VL \SR \DummyBoldT \DL\VL\DR \DummyBoldB \VL 7 \VL \VL \SR \DL\VL\DR \VL 8 \VL \VL \SR \DL\VL\DR \VL 9 \VL \VL \SR \HL[\bold] \stoptable}{} \stopcombination \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Changing page orientation - Landscape/Portrait
Hello Peter, \start ... \stop mark the boundaries of the local (layout) setup, which is defined between \startlocal ... \stoplocal. This way you don't need to redefine your old layout after a local (one page) style change. ConTeXt returns to the prior layout automatically. So deleting them is no good idea (results in extra work for you) :) Yes, I noticed that... :) If you can make a minimal example of your buffer problems... Ok, I'v attached the example. It seems that If I use \start \startlocal and \stop and \stoplocal I get some errors... Thanks for your help! Miguel Queirós \starttext Página 1. \startbuffer[teste] \starttable[|c|c|c|] \HL[2] \NC test \NC test \NC test \NC \FR \NC test \NC test \NC test \NC \MR \NC test \NC test \NC test \NC \LR \stoptable \stopbuffer \page Página 2. % It works if you place a comment \start \startlocal and \stoplocal and \stop % It wont work without the % % \start % \startlocal \placetable{Just an example}{\externalfigure[teste.tmp]} \setuppapersize[A4,landscape][A4,landscape] % \stoplocal % \stop \page \setuppapersize[A4][A4] Página 3. \page Página 4. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Rows and lines in tables
Hello all, I'm a new ConTeXt user (started using it a few days ago) and I do have three problems now with tables which I could not solve reading the manual and the content of the ConTeXt wiki. I've created a minimal example (see below) illustrating my problems: 1. How can create lines with different widths using the \DL command as I do with \HL[factor] oder \VL[factor]? This would, in my example, allow to align the dummyx text in the first table with the numbers x in the second table. 2. How can I create a carriage return in the text of a table cell? Neither \crlf nor \\ do work (tried it with the AAA and BBB text in the first table to get them into the same cell. 3. How can I synchronize the height of the first two lines of the first table with those of the second table, no matter if there's a line between the rows (as in the second table, a thin one as in my example or even a fat one) or not (like in the first table which visually has a big cell)? Can I create an invisible line? How do I line up the BBB with the YYY / ZZZ line? Or, another possibility, how do I control the rows independently, having the BBB in the first table very close to the AAA, perhaps even three lines of text there, and at the same time only two rows of text in the second table? What about having only one line of text in the first table, vertically centered to the corresponding two rows of the second table? === [example] === \starttext \define\bold{8} \startcombination[2*1] {\starttable[|c|] \HL[\bold] \VL[\bold] AAA \VL[\bold]\FR \VL BBB \VL\LR \HL[\bold] \VL dummy1 \VL\SR \HL \VL dummy2 \VL\SR \HL \VL dummy3 \VL\SR \HL[\bold] \VL dummy4 \VL\SR \HL \VL dummy5 \VL\SR \HL \VL dummy6 \VL\SR \HL[\bold] \VL dummy7 \VL\SR \HL \VL dummy8 \VL\SR \HL \VL dummy9 \VL\SR \HL[\bold] \stoptable}{} {\starttable[|c|cw(3cm)|] \HL[\bold] \VL[\bold] \use{2} XXX \VL[\bold]\FR \HL \VL YYY \VL[1] ZZZ \VL\LR \HL[\bold] \VL 1 \VL \VL \SR \DL\VL\DR \VL 2 \VL \VL \SR \DL\VL\DR \VL 3 \VL \VL \SR \DL\VL\DR \VL 4 \VL \VL \SR \DL\VL\DR \VL 5 \VL \VL \SR \DL\VL\DR \VL 6 \VL \VL \SR \DL\VL\DR \VL 7 \VL \VL \SR \DL\VL\DR \VL 8 \VL \VL \SR \DL\VL\DR \VL 9 \VL \VL \SR \HL[\bold] \stoptable}{} \stopcombination \stoptext === [/example] === I know, a layout with all these horizontal lines and two tables sitting next to each other is not the best one, but I'm trying to reconstruct an existing document which is designed that way. Thanks for your help! Regards, Robert ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Multi-page tables
Hi all, I'm having a bit of trouble getting multiple page tables to work when also using \placetable for captions. Essentially, I want: (1) Captions and the ability to reference with \in[]. (2) Alignment within a cell at a decimal point. (3) Span multiple pages with header/footer. I think I would prefer to use the standard 'TABLES' method but it looks like item 2 is only supported in natural tables? Below are two examples. I don't get page breaks in either case and the table runs off the bottom of pages 2 and 3. Thanks, Randall \definepapersize [width=8.5in, height=11in] \setupcaption[table] [location=top] \starttext \section{Testing} This is a silly table test. \placetable[page][tbl:sample] {Sample table caption goes here} {\start \switchtobodyfont[small] \starttablehead \HL \VL command \NC meaning \NC $\lambda$ (deg.) \VL\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|c|l|c|] \VL \tex{NC}\NC next column \NC1.15 \VL\FR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\MR \VL \tex{NC}\NC next column \NC1.15 \VL\MR \VL \tex{HL}\NC horizontal line \NC 10.20 \VL\MR \VL \tex{VL}\NC vertical line \NC -14.30 \VL\MR \VL \tex{NR}\NC next row\NC -100.00 \VL\MR \VL \tex{SR}\NC single row \NC2.35 \VL\MR \VL \tex{FR}\NC first row \NC 159.00 \VL\MR \VL \tex{MR}\NC middle row \NC -1.00 \VL\MR \VL \tex{LR}\NC last row\NCnr \VL\LR \stoptables \stop} \section{Natural Testing} This is a silly natural table test. \placetable[page][tbl:naturalSample] {Sample table caption goes here} {\start \switchtobodyfont[small] \bTABLE[split=repeat, splitmethod=a] % Outside border \setupTABLE[frame=off] \setupTABLE[column][first][leftframe=on] \setupTABLE[column][last][rightframe=on] \setupTABLE[row][first][topframe=on] \setupTABLE[row][last][bottomframe=on] % Heading line bottom rule \setupTABLE[row][first][bottomframe=on] % Alignment \setupTABLE[column][1][width=2.5cm,align=middle] \setupTABLE[column][2][width=2.5cm,align=right] \setupTABLE[column][3][width=2.5cm,alignmentcharacter={.},aligncharacter=yes,align=middle] % Header \bTABLEhead \bTR\bTD command \eTD\bTD meaning \eTD\bTD $\lambda$ (deg.) \eTD\eTR \eTABLEhead % Body \bTABLEbody \bTR\bTD \tex{NC}\eTD\bTD next column \eTD\bTD1.15 \eTD\eTR \bTR\bTD \tex{HL}\eTD\bTD horizontal line \eTD\bTD 10.20 \eTD\eTR \bTR\bTD \tex{VL}\eTD\bTD vertical line \eTD\bTD -14.30 \eTD\eTR \bTR\bTD \tex{NR}\eTD\bTD next row
[NTG-context] table oddities
After Hans vdM's question I'm trying to enhance the table documentation in the wiki. I found the following a bit strange: \starttable[|l|l|] \HL \NC Command \VL Meaning \SR % or \NC\AR \HL \NC \tex{NC}\VL next column \AR \NC \tex{HL}\VL horizontal line \AR \NC \tex{VL}\VL vertical line \AR \NC \tex{NR}\VL next row\LR \HL \NC \tex{SR}\VL single row \AR \NC \tex{FR}\VL first row \AR \NC \tex{MR}\VL middle row \AR \NC \tex{LR}\VL last row \LR % or \NC\AR \HL \NC \tex{AR}\VL automatic row \SR % or \NC\AR \HL \stoptable - You can leave out the \NC before the row command, - but not with \AR in a last or single row. - If you use \AR in this case, you get a missing column error. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer) ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[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] About paragraph columns in table environment
Radhelorn wrote: Hello all! I've tried to fit wide table (with paragraphs and vertical lines) into page width. Following example don't work as expected: \SetTableToWidth{\textwidth} \starttable[|p|p|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable Text in columns formatted as if table was not widened. What did I miss here? table is not that clever -) \SetTableToWidth{\textwidth} \starttable[|p(.45\textwidth)|p(.45\textwidth)|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable \stoptext BTW, how to fit text into a small box if I don't care about where word breaks? can you explain that a bit more? Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] About paragraph columns in table environment
Hans Hagen wrote: Radhelorn wrote: \SetTableToWidth{\textwidth} \starttable[|p(.45\textwidth)|p(.45\textwidth)|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable Thanks. Now it works like expected. BTW, how to fit text into a small box if I don't care about where word breaks? can you explain that a bit more? Something like this: | There are so | | me rather lo | | ng titles th | | a needs to b | | e typeset. | Originally I wanted this in table headers and such things. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About repeated formatting keys in table.
Hello! Acording to WIKI this should work: \starttable[*{3}{|c|}] \HL \NC column1 \NC column2 \NC column3 \NC\NR \HL \stoptable \starttabulate[*{3}{|c|}] \HL \NC column1 \NC column2 \NC column3 \NC\NR \HL \stoptabulate Tabulate works as expected, but table gives errors about missing columns. It seems that |'s is not always multiplied by *{}{} command. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setupheadnumber loses table of contents
All, in the following example, if I uncomment %\setupheadnumber[chapter][2] then I lose my table of contents. Should that be happening? % output=pdf \setupcaptions [location=bottom,width=fit,align=right,headstyle=bold,style=slanted] \setupcaption [figure] [way=bysection] %\setupheadnumber[chapter][2] \setuphead[section][number=no] \starttext \startuseMPgraphic{david} draw unitsquare scaled 2cm withpen pencircle scaled 5mm withcolor red; \stopuseMPgraphic \startbuffer[table] \starttable[|c|c|] \HL \VL This \VL is \VL\FR \VL a\VL table \VL\LR \HL \stoptable \stopbuffer \completecontent \chapter{The Process of\crlf Growing Wheat} \input tufte \startbuffer \startcombination[2*1] {\useMPgraphic{david}}{First caption} {\useMPgraphic{david}}{Second caption} \stopcombination \stopbuffer \placefigure[][fig:11] {This is the caption of the figure.} {\getbuffer} \section{First Section} \input tufte \placefigure[][fig:1] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \placetable[][tab:4] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \section{Second Section} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:3] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \placetable[][tab:2] {A very simple example of a table.} {\getbuffer[table]} In \in{Figure}[fig:1], we on page \at[fig:1] what the figure is \about [fig:1]. \chapter{The Process of Baling Hay} \input tufte \section{First Section} \input tufte \placefigure[][fig:1] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \placetable[][tab:5] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \section{Second Section} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:3] {This is an example of an extended caption.} {\useMPgraphic{david}} \input tufte \placetable[][tab:2] {A very simple example of a table.} {\getbuffer[table]} \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] section prefix=+
Hans et al, We'll have different teachers writing different sections of a multi- chapter, multi-section document. The following use of prefix=+, as far as I can see, will keep them from stumbling over each other's references while they are working independently. I wonder how this will work in the project-product-component structure? % output=pdf \environment bookenv \setuphead[section] [prefix=+] \starttext \startuseMPgraphic{david} draw unitsquare scaled 2cm withpen pencircle scaled 5mm withcolor red; \stopuseMPgraphic \startbuffer[table] \starttable[|c|c|] \HL \VL This \VL is \VL\FR \VL a\VL table \VL\LR \HL \stoptable \stopbuffer \startbuffer[figure] \startcombination[2*1] {\useMPgraphic{david}}{First caption} {\useMPgraphic{david}}{Second caption} \stopcombination \stopbuffer \completecontent \chapter[quadratic]{Quadratic Functions} \input tufte \section[parabola]{The Parabola} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \section[vertex]{Vertex Form} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \chapter[poly]{Polynomial Functions} \input tufte \section[end]{End Behavior} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \section[zeros]{Zeros} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[parabola:fig:1] on \at{page}[parabola:fig:1], we see \ldots. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] section prefix=+ (oops)
Oops. Sorry. You should omit that \environment bookenv. On Dec 21, 2005, at 11:21 PM, David Arnold wrote: Hans et al, We'll have different teachers writing different sections of a multi- chapter, multi-section document. The following use of prefix=+, as far as I can see, will keep them from stumbling over each other's references while they are working independently. I wonder how this will work in the project-product-component structure? % output=pdf \environment bookenv \setuphead[section] [prefix=+] \starttext \startuseMPgraphic{david} draw unitsquare scaled 2cm withpen pencircle scaled 5mm withcolor red; \stopuseMPgraphic \startbuffer[table] \starttable[|c|c|] \HL \VL This \VL is \VL\FR \VL a\VL table \VL\LR \HL \stoptable \stopbuffer \startbuffer[figure] \startcombination[2*1] {\useMPgraphic{david}}{First caption} {\useMPgraphic{david}}{Second caption} \stopcombination \stopbuffer \completecontent \chapter[quadratic]{Quadratic Functions} \input tufte \section[parabola]{The Parabola} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \section[vertex]{Vertex Form} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \chapter[poly]{Polynomial Functions} \input tufte \section[end]{End Behavior} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[fig:1] on \at{page}[fig:1], we see \ldots. \section[zeros]{Zeros} \input tufte \placefigure[][fig:1] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte \placetable[][tab:1] {A very simple example of a table.} {\getbuffer[table]} \input tufte \placefigure[][fig:2] {This is the caption of the figure.} {\getbuffer[figure]} \input tufte In \in{Figure}[parabola:fig:1] on \at{page}[parabola:fig:1], we see \ldots. \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] About paragraph columns in table environment
Hello all! I've tried to fit wide table (with paragraphs and vertical lines) into page width. Following example don't work as expected: \SetTableToWidth{\textwidth} \starttable[|p|p|] \HL \VL foo foo foo foo foo foo \VL bar bar bar bar bar bar \VL\AR \HL \stoptable Text in columns formatted as if table was not widened. What did I miss here? BTW, how to fit text into a small box if I don't care about where word breaks? Thanks. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Floats page?
Monday, November 21, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: How do I tell ConTeXt that I don't mind if the pages are totally filled by floats (two, three, as many as fit) even if there is no text whatsoever? \setupfloats [ntop=100] Doesn't help. \appendix{Test results} \setupfloats[ntop=100] \dorecurse{8}{\input tests/curves-\recurselevel.tex \page } Each file that gets included have some 8 'tables' like the following: \placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269} {\centerline{\startcombination[1*2]{\scantokens{ \setuptable[bodyfont=8pt] \starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|ra.o0|l|ra.o0|l|] \HL \NC\ReFormat[Bc]{Method}% \NC\ReFormat[Bc]{Options}% \NC\ReFormat[Bc]{Iterations}% \NC\use4\ReFormat[Bc]{Lambdas}% \NC\use2\ReFormat[Bc]{Error}% \NC\use2\ReFormat[Bc]{Error\%}% \NC\use2\ReFormat[Bc]{$L^2$}% \SR \HL \CL[lightred]\MR \NC Kinch\NC \NC 0\NC 0\NC 98005\NC 1\NC 09034\NC 0\NC 01891\NC 16\NC 78059\NC0\NC 59899\NC\MR \NC Legendre\NC direct, 16 samples\NC 9\NC 0\NC 98275\NC 1\NC 1018\NC 0\NC 00871\NC 7\NC 7328\NC0\NC 33727\NC\MR \NC Legendre\NC Kinch, 16 samples\NC 10\NC 0\NC 98275\NC 1\NC 1018\NC 0\NC 00871\NC 7\NC 7328\NC0\NC 33727\NC\MR \NC Jacobi (1,1)\NC direct, 16 samples\NC 10\NC 0\NC 98359\NC 1\NC 10323\NC 0\NC 00768\NC 6\NC 81577\NC0\NC 34516\NC\MR \CL[lightgreen]\MR \NC Jacobi (1,1)\NC Kinch, 16 samples\NC 10\NC 0\NC 98359\NC 1\NC 10323\NC 0\NC 00768\NC 6\NC 81577\NC0\NC 34516\NC\MR \NC Jacobi (2,2)\NC direct, 16 samples\NC 9\NC 0\NC 98329\NC 1\NC 10202\NC 0\NC 00874\NC 7\NC 75774\NC0\NC 34391\NC\MR \NC Jacobi (2,2)\NC Kinch, 16 samples\NC 9\NC 0\NC 98329\NC 1\NC 10202\NC 0\NC 00874\NC 7\NC 75774\NC0\NC 34391\NC\MR \NC Chebyshev\NC direct, 16 samples\NC 9\NC 0\NC 98243\NC 1\NC 10117\NC 0\NC 00919\NC 8\NC 15498\NC0\NC 33874\NC\MR \NC Chebyshev\NC Kinch, 16 samples\NC 10\NC 0\NC 98243\NC 1\NC 10117\NC 0\NC 00919\NC 8\NC 15498\NC0\NC 33874\NC\MR \NC Grid\NC direct, 3 scans\NC 70\NC 0\NC 98382\NC 1\NC 10435\NC 0\NC 00703\NC 6\NC 24151\NC0\NC 35264\NC\MR \CL[lightblue]\MR \NC Grid\NC direct, 5 scans\NC 60\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 0069\NC 6\NC 12706\NC0\NC 34982\NC\MR \NC Nelder-Mead\NC direct, to 0\NC 132\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 0069\NC 6\NC 12706\NC0\NC 34982\NC\MR \NC Nelder-Mead\NC direct, to 2\NC 108\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 0069\NC 6\NC 12706\NC0\NC 34982\NC\MR \NC Nelder-Mead\NC Kinch/Legendre\NC 94\NC 0\NC 98373\NC 1\NC 10409\NC 0\NC 0069\NC 6\NC 12706\NC0\NC 34982\NC\MR \HL \stoptable }}{} {\externalfigure[tests/curves-1.1]}{}% \stopcombination}} Sometimes, two table+figure combo would fit in one page, but they are still put in separate pages. Also, the first page has the appendix title but nothing is inserted, not even the first float. Suggestions? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Table problem with ConTeXT 2005.11.16
All - Just downloaded and installed 2005.11.16, and now a document which built fine under the 2005.10.27 version breaks. The code which fails is a simple table \starttext \placetable[here]{none} \starttable[|l|l|l|p(7.0cm)|] \HL \VL \bf Revision \VL \bf Date \VL \bf Author \VL \bf Description \VL \AR \HL \VL 0.9 \VL 11/04/2005 \VL Mark Almeida \VL Initial draft, for review and comment \VL \AR \HL \stoptable \stoptext The errors I get from texexec look like this floatblocks : 1 placed ! Undefined control sequence. \OTRONEsomeherefloat ...\dorechecknextindentation argument ... \placesomeherefloat [\v!here ,here] \else \dosavefloat \fi \fi \secondoftwoarguments #1#2-#2 \dogetfloatbox ... \floatmethod \floatmethod }[#1] \fi \docompletefloat ...egroup \dofloat {#4}{}{#6}{#1} \else \doglobal \convertar... argument ...}{table}{here}{table}{none}\nextbox \else \docompletefloat {ta... ... l.9 \stoptable ? Anyone got any ideas? -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Client Solutions (707)429-0341 Home Office (707)480-5038 Cell Powered by Solaris 10_x86/Evolution 1.4.6 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Table problem with ConTeXT 2005.11.16
The Wizard wrote: All - Just downloaded and installed 2005.11.16, and now a document which built fine under the 2005.10.27 version breaks. The code which fails is a simple table \starttext \placetable[here]{none} \starttable[|l|l|l|p(7.0cm)|] \HL \VL \bf Revision \VL \bf Date \VL \bf Author \VL \bf Description \VL \AR \HL \VL 0.9 \VL 11/04/2005 \VL Mark Almeida \VL Initial draft, for review and comment \VL \AR \HL \stoptable \stoptext The errors I get from texexec look like this floatblocks : 1 placed ! Undefined control sequence. \OTRONEsomeherefloat ...\dorechecknextindentation argument ... \placesomeherefloat [\v!here ,here] \else \dosavefloat \fi \fi \secondoftwoarguments #1#2-#2 \dogetfloatbox ... \floatmethod \floatmethod }[#1] \fi \docompletefloat ...egroup \dofloat {#4}{}{#6}{#1} \else \doglobal \convertar... argument ...}{table}{here}{table}{none}\nextbox \else \docompletefloat {ta... ... l.9 \stoptable ? Anyone got any ideas? you didn't regenerate the format (you load the latest cont-new on top of an old format) texexec --make --all (depending on the age of your system ... locate the cont-en.(e)fmt file and delete it first) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] compiling pdftex docs
Taco Hoekwater wrote: Tobias Wolf wrote: There are loads of errors remaining (in the version from tug.org) like the following, which is also present in the atpragma mode: ! Missing number, treated as zero. to be read again } \tabulatecontent ...NR \HL \NC \type {\pdfoutput } \NC integer \NC 0 \NC \DV... Those are the same errors I got. I just assumed they were a side-effect of the cvs version. in cont-new.tex say: \let\protectedfirsttype\string % \relax by default this problem was introduced when some problems with color were posted; i need to look into it; the tricky thing is that verbatim (always) behaves different in direct and in 'passed as argument' mode, which is the nature of tex; unfortunately there is no easy way around e.g. using scantokens, because reprocessing may introduce spaces, Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] interaction between header texts and typing environments
Marko � wrote: I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error. weird indeed has to do with catcodes and verbatim; for the moment use \setnormalcatcodes \startsetups heading \starttable[|w(.8\textwidth)l|w(.15\textwidth)l|] \HL \VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR \VL \VL \VL \LR \HL \stoptable \stopsetups \starttext \setupheadertexts[\setnormalcatcodes\setups{heading}] . \stoptext Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] interaction between header texts and typing environments
I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error. If I put a \ifprocessingverbatim\else \fi around the table in the header text, I do not get the error. So I should turn off the typing environment temporarily to get the header text out. How should I do that? \stoptyping ... \starttyping do not do it. Thanks, Marko \startproduct test \setupheadertexts[{\starttable[|w(.8\textwidth) l|w(.15\textwidth)l|] \HL \VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR \VL \VL \VL \LR \HL \stoptable}] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test \stoptyping \stopproduct pgpgjJhAvDADS.pgp Description: PGP signature ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Hans Hagen wrote: which tables allow using \noalign and in what places? \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL it all depends on what you want to achieve I want to place a \pdfspecial in front of the \HL. Peter Rolf pointed out correctly (and I had seen that myself as well) that the problem seems to be with \AR only. I'll try and check if I can make the whole thing work transparently with \AR or if I have to ask users to use \FR, \MR, \LR for this usage pattern. (Usage: You build a table line by line in a presentation.) regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Christopher Creutzig wrote: Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? how about \TABLEnoalign (see core-tab.tex for defintion) without any guarantees :) Servus, Peter regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Christopher Creutzig wrote: Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? it all depends on what you want to achieve Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \noalign?
Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie question: background color in single table row
Sebastian Rooks wrote: The Wizard wrote: All - I have a simple table which looks like this: skipped some code I would like to add a background color to the first row only. Try this minimal example (tested on live.contextgarden.net): \starttext \setupcolors[state=start] \placetable[here]{none} \starttable[|c w(3.0cm)|c|c w(2.75cm)|c w(7.0cm)|] \HL \CL[green]\AR \VL \bf Name \VL \bf Location \VL \bf Date \VL \bf Signature \VL \AR \HL \VL \VL \VL \VL \VL \AR \HL \stoptable \stoptext I have only just started using ConTeXT, never used TeX or LaTeX before, so I'm still trying to understand everything I read in the manuals, and searching the list archive. I can not seem to make the more HTML-ish tables work the way I want (e.g, \bTABLE...\eTABLE) so I'd like to be able to get where I want to go using the table I have. The same \bTABLE ... \eTABLE construct could look like the one below (+ the formatting that you want for the remaining rows). However, you get visually different results, mostly different offsets (worse in \bTABLE than in \starttable, but \bTABLE has many other advantages). Width in \bTABLE ... \eTABLE is physical width, I suspect that in \starttable ... \stoptable it stands for the paragraph width, so that the table below is also much narrower. % row 1 \setupTABLE[r][1][style=bold,background=color,backgroundcolor=green,align=middle] \setupTABLE[c][1][width=3cm] % column 1 \setupTABLE[c][3][width=2.75cm] % column 3 \setupTABLE[c][4][width=7cm] \bTABLE \bTR \bTD Name \eTD \bTD Location \eTD \bTD Date \eTD \bTD Signature \eTD \eTR \bTR \bTD\strut \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \eTABLE \stoptext Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Newbie question: background color in single table row
All - I have a simple table which looks like this: \placetable[here]{none} \starttable[|c w(3.0cm)|c|c w(2.75cm)|c w(7.0cm)|] \HL \VL \bf Name \VL \bf Location \VL \bf Date \VL \bf Signature \VL \AR \HL \VL \VL \VL \VL \VL \AR \HL \stoptable I would like to add a background color to the first row only. I tried \CL[colorname], \BR[colorname] and neither gets quite what I want. Is there a simple way to set the background color for only the first row? I have only just started using ConTeXT, never used TeX or LaTeX before, so I'm still trying to understand everything I read in the manuals, and searching the list archive. I can not seem to make the more HTML-ish tables work the way I want (e.g, \bTABLE...\eTABLE) so I'd like to be able to get where I want to go using the table I have. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Client Solutions (707)429-0341 Home Office (707)480-5038 Cell Powered by Solaris 10_x86/Evolution 1.4.6 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie question: background color in single table row
Welcome ! The Wizard wrote: All - I have a simple table which looks like this: skipped some code I would like to add a background color to the first row only. Try this minimal example (tested on live.contextgarden.net): \starttext \setupcolors[state=start] \placetable[here]{none} \starttable[|c w(3.0cm)|c|c w(2.75cm)|c w(7.0cm)|] \HL \CL[green]\AR \VL \bf Name \VL \bf Location \VL \bf Date \VL \bf Signature \VL \AR \HL \VL \VL \VL \VL \VL \AR \HL \stoptable \stoptext I have only just started using ConTeXT, never used TeX or LaTeX before, so I'm still trying to understand everything I read in the manuals, and searching the list archive. I can not seem to make the more HTML-ish tables work the way I want (e.g, \bTABLE...\eTABLE) so I'd like to be able to get where I want to go using the table I have. You missed the wiki: http://wiki.contextgarden.net and in particular Guiseppe Bilotta contribution on TaBlE, less than one day old :-) : http://wiki.contextgarden.net/Table Happy ConTeXting, SeR ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Newbie question: background color in single table row
On Mon, 2005-09-19 at 17:54, Sebastian Rooks wrote: Welcome ! The Wizard wrote: All - I have a simple table which looks like this: skipped some code I would like to add a background color to the first row only. Try this minimal example (tested on live.contextgarden.net): \starttext \setupcolors[state=start] \placetable[here]{none} \starttable[|c w(3.0cm)|c|c w(2.75cm)|c w(7.0cm)|] \HL \CL[green]\AR \VL \bf Name \VL \bf Location \VL \bf Date \VL \bf Signature \VL \AR \HL \VL \VL \VL \VL \VL \AR \HL \stoptable \stoptext I have only just started using ConTeXT, never used TeX or LaTeX before, so I'm still trying to understand everything I read in the manuals, and searching the list archive. I can not seem to make the more HTML-ish tables work the way I want (e.g, \bTABLE...\eTABLE) so I'd like to be able to get where I want to go using the table I have. You missed the wiki: http://wiki.contextgarden.net and in particular Guiseppe Bilotta contribution on TaBlE, less than one day old :-) : http://wiki.contextgarden.net/Table Happy ConTeXting, SeR Sebastian - Thank you so much, that is exactly what I wanted. I am way behind the curve, trying to learn, and I have looked at the Wiki but I didn't see the new section. I will look at it. Thanks again. -- Mark Almeida [EMAIL PROTECTED] Solutions Architect (707)398-9524/x81132 Sun Client Solutions (707)429-0341 Home Office (707)480-5038 Cell Powered by Solaris 10_x86/Evolution 1.4.6 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[3]: [NTG-context] Need more documentation on tables
Monday, September 12, 2005 Giuseppe Bilotta wrote: No, table is actually all right. I seem to have met a bug, though. The key c doesn't seem to work in a \ReFormat \placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269} {\tfxx \starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|] \HL \NC\ReFormat[Bc]{Method}% \NC\ReFormat[Bc]{Options}% \NC\ReFormat[Bc]{Iterations}% \NC\use2\ReFormat[Bc]{Error}% \NC\use2\ReFormat[Bc]{Error\%}% \NC\use2\ReFormat[Bc]{$L^2$}% \SR \HL \NC Kinch\NC \NC 0\NC 0\NC 01891\NC 16\NC 7785\NC 0\NC 00761\%\NC\AR \NC Legendre\NC direct, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \NC Legendre\NC Kinch, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \HL \stoptable \par } Am I supposed to be using a terminator different from \SR? Any news on this? I really need it for my thesis ... -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re[2]: [NTG-context] Need more documentation on tables
Monday, September 12, 2005 Hans Hagen wrote: Giuseppe Bilotta wrote: Ok, even with the wiki and all the manuals around (which are getting obsolete, too) there is definitely too little documentation on the various tabulation formats. The biggest problem is that each table type has its ability, but there is nothing that can do everything. Simplest example, I'm currently having a problem using a start/stoptabulate (which I need because \RC friends don't work in start/stoptable) but I don't know how to span multiple columns (which can be done in start/stoptable with \use, which doesn't work in start/stoptabulate) What am I supposed to do? maybe bTABLE cum suis No, table is actually all right. I seem to have met a bug, though. The key c doesn't seem to work in a \ReFormat \placetable[here][approx-1-0.11269]{Results for curve 1, radius 0.11269} {\tfxx \starttable[|l|l|r|ra.o0|l|ra.o0|l|ra.o0|l|] \HL \NC\ReFormat[Bc]{Method}% \NC\ReFormat[Bc]{Options}% \NC\ReFormat[Bc]{Iterations}% \NC\use2\ReFormat[Bc]{Error}% \NC\use2\ReFormat[Bc]{Error\%}% \NC\use2\ReFormat[Bc]{$L^2$}% \SR \HL \NC Kinch\NC \NC 0\NC 0\NC 01891\NC 16\NC 7785\NC 0\NC 00761\%\NC\AR \NC Legendre\NC direct, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \NC Legendre\NC Kinch, 2 samples\NC 8\NC 0\NC 01468\NC 13\NC 02819\NC 0\NC 0074\%\NC\AR \HL \stoptable \par } Am I supposed to be using a terminator different from \SR? -- Giuseppe Oblomov Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Many thanks for the suggestion Vit. In this case, however, I've split the \starttable and \stoptable commands in the \startAuthors and \stopAuthors definitions which may well be the root of my problem. This means that I cannot easily wrap the whole table with \placeongrid{ }. I cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox to work either. Does anyone have any suggestions on how I can clean this up so that \starttable and \stoptable are not in separate definitions but I can still use variables to define the table elements as is done in the \Authors definition? Cheers, Randall \placeongrid{%or e.g. \placeongrid[{broad,high}]{% your table} %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{ 6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]% \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }% \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Help with \setuplayout[grid=yes]
Randall Skelton wrote: Many thanks for the suggestion Vit. In this case, however, I've split the \starttable and \stoptable commands in the \startAuthors and \stopAuthors definitions which may well be the root of my problem. This means that I cannot easily wrap the whole table with \placeongrid{ }. I cannot see a way of getting the \domoveongrid and/or \snaptogrid\vbox to work either. OK, in this case use in \startAuthor \placeongrid[...]\bgroup and in \stopAuthor \egroup cheers vit Does anyone have any suggestions on how I can clean this up so that \starttable and \stoptable are not in separate definitions but I can still use variables to define the table elements as is done in the \Authors definition? Cheers, Randall \placeongrid{%or e.g. \placeongrid[{broad,high}]{% your table } %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{ 6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]% \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }% \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% } ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- === Ing. Vít Zýka, Ph.D. TYPOkvítek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com === ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Help with \setuplayout[grid=yes]
Hi all, Attached is an example showing my misunderstanding about grid alignment. The attached works as expected when \setuplayout[grid=no] is used or the 'Author table' is commented out. The inclusion of the little table in the text is really just to convince myself that I can have a table with the grid enabled. Any and all suggestions are greatly appreciated. Cheers, Randall \showframe %\showmakeup %\showgrid %%% Dimensions \newdimen\PaperWidth \PaperWidth=8.5in \newdimen\PaperHeight \PaperHeight=11.0in \newdimen\TextWidth \TextWidth=5.5in \newdimen\TextHeight \TextHeight=10.0in \setuppapersize[letter][letter] % paper size \definepapersize[width=\PaperWidth,height=\PaperHeight] \setuplayout [location=doublesided, % double-sided printing grid=yes, WHY DOES THIS CAUSE AN ERROR? topspace=0.50in, % the space at the very top of the page backspace=1.5in, % the space in the gutter header=0.75in, % the space for headers footer=0.50in, % the space for footers leftmargin=1in, % the space for margin notes rightmargin=1in, % the space for right margin notes width=\TextWidth, % the width of the body text height=\TextHeight] % the height of the body text %%% Authors and Approvals \def\AuthorsTitle{\midaligned{\sc{Authors and Approvals}}} \def\startAuthors{% \blank[2*big]\AuthorsTitle\\\blank[2*big]% \hbox to \hsize\bgroup\hss\SetTableToWidth{6.5in}% \starttable[|c|c|c|c|c|] \HL \VL \VL Function\VL Name\VL Signature\VL Date\VL\SR\HL} \def\stopAuthors{\stoptable\hss\egroup} def\Author[#1]{% \getgparameters[Author][#1]% \doifundefined{AuthorRole}{\gdef\AuthorRole{Prepared by:}}% \doifundefined{AuthorFunction}{\gdef\AuthorFunction{-}}% \doifundefined{AuthorName}{\gdef\AuthorName{-}}% \doifundefined{AuthorSignature}{\gdef\AuthorSignature{}}% \doifundefined{AuthorDate}{\gdef\AuthorDate{-}}% \VL\AuthorRole \VL\AuthorFunction% \VL\AuthorName \VL\AuthorSignature% \VL\AuthorDate% \VL\SR\HL% \gdef\AuthorFunction{ }\gdef\AuthorName{ }% \gdef\AuthorSignature{ }\gdef\AuthorDate{ }% } \starttext %%% Start: Front \startfrontmatter \startAuthors \Author [Role={Prepared by:}, Function={Scientist}, Name={John Smith}, Date={2005-08-24}] \Author [Role={Checked by}:, Date={2005-08-24}] \Author [Role={Approved by:}, Date={2005-08-24}] \stopAuthors %%% Stop: Front \stopfrontmatter %%% Start: Body \startbodymatter \section{One} \dorecurse{3}{\input knuth} \starttable[|c|c|] \HL \VL One \VL Two \VL\FR \VL Three \VL Four \VL\LR \HL \stoptable \section{Two} \dorecurse{4}{\input knuth} %%% Stop: Body part \stopbodymatter \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]
Taco Hoekwater wrote: Hi all, Forwarding this from c.t.t. It looks like perhaps the OP's code is correct and something in ConTeXt is wrong (at least I cannot find anything wrong with the example code, even with \setupcolors[state=start], I get no background color). Perhaps somebody who has actually used table backgrounds can help? I hope this can help; see chapter Color and background in cont-eni.pdf %-- \setupcolors[state=start] %% useful: default=stop \setupbackground[state=start] %% useless: default=start \starttext \placetable {Just a table.} %% from cont-eni.pdf :``The command \background expects %% an argument. Because a table is `grouped' it will generate %% by itself and no extra braces are necessary.`` \background \starttable[|c|c|c|] \HL \VL red\VL green\VL blue\VL \AR \VL cyan \VL magenta \VL yellow \VL \AR \HL \stoptable \stoptext %--- luigi ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] [Fwd: ConTEXt Newbie: Column/table background color - which table model/command?]
Hi all, Forwarding this from c.t.t. It looks like perhaps the OP's code is correct and something in ConTeXt is wrong (at least I cannot find anything wrong with the example code, even with \setupcolors[state=start], I get no background color). Perhaps somebody who has actually used table backgrounds can help? Taco Original Message Subject: ConTEXt Newbie: Column/table background color - which table model/command? Date: 26 Aug 2005 08:39:16 -0700 From: A. Lucas [EMAIL PROTECTED] Organization: http://groups.google.com Newsgroups: comp.text.tex I've only recently discovered ConTEXt and grabbed all the documentation I could find (but not quite read it). My question: If I want column background and line color, do I need METAPOST or is there a simpler way to do it? I need a multi-page table with continuous, but different columns widths and running headers on every new page - could/must I use btable (XML environment)? The \backgroundcolor and \background commands don't seem to work with \setuptables and \starttable(s). Example: - \placetable[here][tab:setuptables]{Ships that moored at Hasselt.} {\setuptables[bodyfont=10pt,rulethickness=6pt,background=color,backgroundcolor=red] \starttable[|cw(5cm)|cTw(3cm)|]%'|' wird hier nicht gedruckt, dient als column separator; mit w(...) width festsetzen \HL%horizontal line \VL \bf Year \DC \bf Number of ships \VL\SR%new colum bold font seperate row \HL \VL 1645 \DC 450 \VL\FR%first row \VL 1671 \DC 480 \VL\MR%mid row \VL 1676 \DC 500 \VL\MR \VL 1695 \DC 930 \VL\LR%last row \HL \stoptable} -- I get the thick border but no colors. Maybe I'm just to dumb yet and will know more after a weekend of reading up, but I'd be thankful for a hint. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \starttabulate vertical spacing
Hello! i want to put some space between lines in a tabulate environment. \starttext \starttabulate[|l|p(1cm)|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \crlf\NC\NR \NC Some Text \NC Other Text \NC \stoptabulate \stoptext i did it with \crlf, but this is too much for me. \godown doesnt work either. Half of a line in space would be great. I tried that with starttable too, but the \HL command in tabulate works better. The text is aligned directly under the ends of the line. So i use tabulate. And the other problem is, crlf only works if tab is set to |p|. thanks! Christoph ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \starttabulate vertical spacing
Christoph Czarnetzki wrote: Hello! i want to put some space between lines in a tabulate environment. \starttext \starttabulate[|l|p(1cm)|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \crlf\NC\NR \NC Some Text \NC Other Text \NC \stoptabulate \stoptext i did it with \crlf, but this is too much for me. \godown doesnt work either. Half of a line in space would be great. I tried that with starttable too, but the \HL command in tabulate works better. The text is aligned directly under the ends of the line. So i use tabulate. And the other problem is, crlf only works if tab is set to |p|. starttext \starttabulate[|l|p(1cm)|] \NC Some Text \NC Other Text \NC\NR\HL \TB \NC Some Text \NC Other Text \crlf\NC\NR \NC Some Text \NC Other Text \NC \stoptabulate \stoptext (table blank) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \starttabulate vertical spacing
Hello Hans, it's better, but not the space value i want. To see the difference: \starttext \starttabulate[|l|p|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \NC\NR \TB \NC Some Text \NC Other Text \NC\NR \NC Some Text \NC Other Text \NC\NR \stoptabulate \godown[3cm] \starttable[|l|p|] \NC Some Text \NC Other Text \NC\FR\HL \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC \stoptable \stoptext The best look gives \SR or \MR, but as you see, the table doesn't start at left side, and the rule isn't aligned to the text and is too short. :-( Maybe there is an \TB/2? Or redefine the \TB command? thanks for help, christoph Hans Hagen schrieb: Christoph Czarnetzki wrote: Hello! i want to put some space between lines in a tabulate environment. \starttext \starttabulate[|l|p(1cm)|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \crlf\NC\NR \NC Some Text \NC Other Text \NC \stoptabulate \stoptext i did it with \crlf, but this is too much for me. \godown doesnt work either. Half of a line in space would be great. I tried that with starttable too, but the \HL command in tabulate works better. The text is aligned directly under the ends of the line. So i use tabulate. And the other problem is, crlf only works if tab is set to |p|. starttext \starttabulate[|l|p(1cm)|] \NC Some Text \NC Other Text \NC\NR\HL \TB \NC Some Text \NC Other Text \crlf\NC\NR \NC Some Text \NC Other Text \NC \stoptabulate \stoptext (table blank) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \starttabulate vertical spacing
Christoph Czarnetzki wrote: Hello Hans, it's better, but not the space value i want. To see the difference: \starttext \starttabulate[|l|p|] \NC Some Text \NC Other Text \NC\NR\HL \NC Some Text \NC Other Text \NC\NR \TB \NC Some Text \NC Other Text \NC\NR \NC Some Text \NC Other Text \NC\NR \stoptabulate \godown[3cm] \starttable[|l|p|] \NC Some Text \NC Other Text \NC\FR\HL \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC\SR \NC Some Text \NC Other Text \NC \stoptable \stoptext The best look gives \SR or \MR, but as you see, the table doesn't start at left side, and the rule isn't aligned to the text and is too short. :-( Maybe there is an \TB/2? Or redefine the \TB command? well, it's called blank for a reason -) \TB[5*big] - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] TABLE feature wishes
Hi again, as dicussed some time ago, here comes the reminder of what context lacks concerning table typesetting. I will concentrate on \bTABLE .. \eTABLE, since it is much more powerful than the older ones (and I do not know much about linetables). In order to be able to typeset tables with satisfactory results, I personally need at least the following missing features: - Control over horizontal cell spacing and vertical row spacing, independently of each other. This can not be done currently, since the rulethickness parameter affects all frames of a cell. - Better support for horizontal rules, without affecting the actual cells. I would like to say e.g. \HL between rows to get a line. A command to span just a selection of columns is also necessary. Although I have tricked TABLE into doing what I want with dummy rows and metapost graphics, this is not a very nice solution. Concerning rules, I would suggest further options like trimming, but maybe this can be postponed to prevent this message from becoming too lengthy. For those interested, my ideal table in this respect is what the latex booktabs package provides: ftp://ftp.dante.de/pub/tex/macros/latex/contrib/booktabs/booktabs.pdf. In addition, it would be highly desirable to have the possibility - to insert material before and after the entry of a cell, eg have \bTD[before=(,after=)]x\eTD typeset (x). - to have hooks which do something with entries, eg \bTD[hook=\framed]x\eTD gives a framed x. How are the chances that the above will be supported by context in the near future, or ever? Greetings, -- Eckhart ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Escaping tabulate
On Fri, 15 Jul 2005, Radhelorn wrote: I've solved aligning problem with \hfill\vbox or \rightaligned, but this needs to be done for each table. Did I miss something important? Hello, you can define a macro. For example: \def\startMyMidAlignedTable{\hbox to \hsize\bgroup\hss\vbox \bgroup\starttable} \def\stopMyMidAlignedTable{\stoptable\egroup\hss\egroup} \starttext \input tufte \startMyMidAlignedTable[|l|l|] \HL \NC this \NC is\NC\AR \NC a\NC table \NC\AR \HL \stopMyMidAlignedTable \input knuth \stoptext Cheers, 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] aligning of tables and tabulate
Radhelorn wrote: Mojca Miklavec wrote: Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] This aligns cell contents but not tables themselves. Sorry, I didn't understand the question. If you need the solution: \rightaligned{\starttable[|l|l|] \HL \NC testxxx \NC test \NC\AR \NC test \NC testxxx \NC\AR \HL \stoptable} If you need the reason, why \setuptabulate[align=...] doesn't work, someone else has to answer it. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] aligning of tables and tabulate
Mojca Miklavec wrote: Radhelorn wrote: Mojca Miklavec wrote: Radhelorn wrote: Maybe this is a stupid question, but according to manual this should align tables right: \setuptabulate[align=right] some text before \starttabulate[|l|l|] I've tried left, right, middle, center... to no effect. Both tables remain left aligned. \starttabulate[|r|r|] and \starttable[|r|r|] This aligns cell contents but not tables themselves. Sorry, I didn't understand the question. If you need the solution: \rightaligned{\starttable[|l|l|] \HL \NC testxxx \NC test \NC\AR \NC test \NC testxxx \NC\AR \HL \stoptable} If you need the reason, why \setuptabulate[align=...] doesn't work, someone else has to answer it. Thanks. This will do as temporal solution, but with many tables this quickly get out of hand. Maybe someone look into this problem. I've found out that \startalignment \stopalignment not influences tables too. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] aligning of tables and tabulate
Hello! Maybe this is a stupid question, but according to manual this should align tables right: \starttext \setuptabulate[align=right] some text before \starttabulate[|l|l|] \HL \NC test \NC test \NR \NC test \NC test \NR \HL \stoptabulate in the middle \setuptables[align=right] \starttable[|l|l|] \HL \NC test \NC test \NC\AR \NC test \NC test \NC\AR \HL \stoptable after after \stoptext I've tried left, right, middle, center... to no effect. Both tables remain left aligned. Thanks for your patience. -- Radhelorn [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tables, etc.
Dear list members, I have the following questions: 1) I want a table at textwidth. The contents of the boxes don't fit on one line. When I use |lp|lp| etc., the width of the table is a fraction of textwidth, and the contents of the columns overlay each other (with long, unhyphenated words). I found \SetTableToWidth{} in the beginner's manual (Table 11.3), but no matter where I placed that, it didn't do anything, nor did all my other attempts. I finally adjusted the table by hand (|lp(4cm)| etc). Is there a way of setting the width of the table and let ConTEXt do the rest? 2) The horizontal rules (\HL) are a bit longer than the the text in the table. How does one adjust them such that they are flush on both sides? I tried with \DL, but didn't get what I hoped for. 3) I am using uncaptioned figures in the margin. When they are too close, they overlap. Is there a way of making them know of each other's existence (I sometimes want them as close as possible), or do I have to place the code at an appropriate position myself? Thank you for your patience, Jörg ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spurious text produced by TABLE
Idris Samawi Hamid wrote: Dear posse, TABLE produces a spurious dot in the following (look closely at the center of the big box on the right). How can I get rid of this? If this is a bug, Is there a workaround? Best Idris = % output=pdf interface=en \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placetable [here][tab:sciences]{There is a spurious dot in the big box.} \starttable{|c|c|c|} \HL \VL {test} \VL \TWO{} \VL\FR \DL[1] \VL\VL\DR \VL {test} \VL \TWO{} \VL\FR \HL \stoptable \stoptext i really need to reimplement tables -) patch in core-tab.tex: \def\!ttuse#1% {\ifnum#1\plusone \omit \global\TABLEdivisionfalse % added for idris \scratchcounter\currentTABLEcolumn% added \advance\scratchcounter #1% % added \advance\scratchcounter \minusone % added \ifnum\scratchcounter\maxTABLEcolumn % added \def\next % added {\setTABLEerror\TABLEspanoverflow % added \handleTABLEerror}% % added \else % added \def\next % added {\global\advance\currentTABLEcolumn #1% % added \global\advance\currentTABLEcolumn \minusone % added \mscount#1% \mscount is in Plain \advance\mscount \minusone \advance\mscount \mscount \!thLoop \ifnum\mscount\plusone [EMAIL PROTECTED] % from Plain (\span\omit [EMAIL PROTECTED]) \repeat \span}% \fi % added \else % added \def\next % conflicts with possible next \omit % added {\global\advance\currentTABLEcolumn \plusone}%% added \fi \next}% added \starttext \starttable[|c|c|c|c|] \HL \VL {test} \VL \TWO{} \VL test \VL\FR \DL \DC \DL\DR \VL {test} \VL \TWO{} \VL test \VL\LR \HL \stoptable \stoptext Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] spurious text produced by TABLE
Hi Hans = Original Message From Hans Hagen [EMAIL PROTECTED] = TABLE produces a spurious dot in the following (look closely at the center of the dot is a division line between your span I replaced \VL with \DC and the dot disappears. There is still something wrong with \DL \DC \DR. Look very closely at the right edge of the attached table: There is a gap between 2 stacked vertical lines instead of one. If you exchange the commented line with the one below it disappears (I suspect that \VL overwrites the \DR). Interestingly, the gap appears to be the same size as the spurious dot-) See also absolute page 42 of the ConTeXt excursion. In the typeset table, to the right of `Table', the same gap appears. (I have not tested your new code yet to see if this resolves that) Thanks as always for your help! Idris % output=pdf interface=en \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placetable [here][tab:sciences]{There is a spurious dot in the big box.} \starttable{|c|c|c|} \HL \VL {test} \VL \TWO{} \VL\FR %\DL \DC\VL\DR \DL \DC\DR \VL {test} \VL \TWO{} \VL\FR \HL \stoptable \stoptext Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context