Re: [NTG-context] Centering tabulate env. using \setuptabulate
On May 27, 2014, at 15:37 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Is there also an equivalent of \placetable for use with Natural Tables? You can use \placetable for all table environments. Thank you! Now another one: (a) I want to create a table using 'p' cells that does not use the full width of the paper (b) it is a long table, crossing a page end (c) the whole table should be centered I tried the source below and obviously made a mistake somewhere. Any suggestions? Robert Test source: \starttext \input knuth \setuptabulate[split=yes] \midaligned { %%% -- THIS DOES NOT WORK -- it does not center the entire table \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR \NR \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR \NR } % end of \dorecurse \stoptabulate } % end of \midaligned \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On 5/28/2014 10:46 AM, Robert Zydenbos wrote: On May 27, 2014, at 15:37 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Is there also an equivalent of \placetable for use with Natural Tables? You can use \placetable for all table environments. Thank you! Now another one: (a) I want to create a table using 'p' cells that does not use the full width of the paper (b) it is a long table, crossing a page end (c) the whole table should be centered I tried the source below and obviously made a mistake somewhere. Any suggestions? maybe bTABLE ... tabulate p's get a distibuted width ... pretty hard to do otherwise Robert Test source: \starttext \input knuth \setuptabulate[split=yes] \midaligned { %%% -- THIS DOES NOT WORK -- it does not center the entire table \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR \NR \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR why xetex ... mkii is frozen \NR } % end of \dorecurse \stoptabulate } % end of \midaligned \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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
Am 28.05.2014 um 10:46 schrieb Robert Zydenbos cont...@zydenbos.net: On May 27, 2014, at 15:37 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Is there also an equivalent of \placetable for use with Natural Tables? You can use \placetable for all table environments. Thank you! Now another one: (a) I want to create a table using 'p' cells that does not use the full width of the paper (b) it is a long table, crossing a page end (c) the whole table should be centered I tried the source below and obviously made a mistake somewhere. Any suggestions? Robert Test source: \starttext \input knuth \setuptabulate[split=yes] \midaligned { %%% -- THIS DOES NOT WORK -- it does not center the entire table \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR \NR \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR \NR } % end of \dorecurse \stoptabulate } % end of \midaligned \stoptext Use \placetable with the keywords “none” to disabled the counter/caption and “split” to enable page breaks. \starttext \input knuth \startplacetable[location={none,split}] \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR \NR \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR \NR} \stoptabulate \stopplacetable \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On May 28, 2014, at 13:51 , Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 10:46 AM, Robert Zydenbos wrote: [...] why xetex ... mkii is frozen Sorry, Hans, but I need to use odd fonts for Indian languages that are not (yet?) supported by mkiv. But the combination ConTeXt mkii+XeTeX gives me beautiful results, so for the time being I'm trying to solve my few remaining problems and to produce my book that way. Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On 5/28/2014 8:25 PM, Robert Zydenbos wrote: On May 28, 2014, at 13:51 , Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 10:46 AM, Robert Zydenbos wrote: [...] why xetex ... mkii is frozen Sorry, Hans, but I need to use odd fonts for Indian languages that are not (yet?) supported by mkiv. But the combination ConTeXt mkii+XeTeX gives me beautiful results, so for the time being I'm trying to solve my few remaining problems and to produce my book that way. you mean devanagari? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On May 28, 2014, at 22:10 , Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 8:25 PM, Robert Zydenbos wrote: On May 28, 2014, at 13:51 , Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 10:46 AM, Robert Zydenbos wrote: [...] why xetex ... mkii is frozen Sorry, Hans, but I need to use odd fonts for Indian languages that are not (yet?) supported by mkiv. But the combination ConTeXt mkii+XeTeX gives me beautiful results, so for the time being I'm trying to solve my few remaining problems and to produce my book that way. you mean devanagari? Also, but mainly Kannada, and also Tamil. XeTeX (and therefore also mkii) deals with all of them very well. Robert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
Is there also an equivalent of \placetable for use with Natural Tables? Robert On May 23, 2014, at 5:05 , Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 23.05.2014 um 04:17 schrieb Robert Zydenbos cont...@zydenbos.net: You have you use the “split” keyword when you want your tables to be broken across pages, i.e. \starttext \placetable[split]{Table caption} {\starttabulate \NC Knuth \NC \input knuth \NC\NR \NC Tufte \NC \input tufte \NC\NR \NC Zapf \NC \input zapf \NC\NR \NC Knuth \NC \input knuth \NC\NR \NC Tufte \NC \input tufte \NC\NR \NC Zapf \NC \input zapf \NC\NR \stoptabulate} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
Am 27.05.2014 um 10:57 schrieb Robert Zydenbos cont...@zydenbos.net: Is there also an equivalent of \placetable for use with Natural Tables? You can use \placetable for all table environments. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
This is a topic that is of great interest to me. I have been trying to make tables in mkii (because I need XeTeX for my Indic fonts) that span across pages and in which cells are more than one line (so I use the 'p' parameter). I'm enclosing a test file below. Any suggestions? RZ ---start of test source--- % !TEX TS-program = ConTeXt (XeTeX) \starttext \input knuth \setuptabulate[split=yes] % --- *** I WANT THIS TABLE TO BE CENTERED *** --- \starttabulate [|p(.5\textwidth)|p(.2\textwidth)|] \dorecurse{4}{ \NC Nu laat ik je iets zien in een tabel, die met tabulate gemaakt is. \NC Het is overigens maar een experiment, maar we zullen zien wat er gebeurt. {\bf And I want all this to be centered.} \NC \NR \NR \NC Als dit werkt, dan gaan we heel fanatiek hiermee verder. \NC Dan gaan we allerlei prachtige zaken in ConTeXt zetten, met XeTeX. \NC \NR \NR } % end of \dorecurse \stoptabulate En nu iets met een ander mechanisme. Maar we moeten zien in hoeverre al deze mooie dingen formatteerbaar zijn. \blank % --- *** I WANT THIS TABLE TO BE CENTERED TOO, AND SPLIT ACROSS PAGES *** --- \dorecurse{5}{ \setupTABLE[row][each][rulethickness=.5pt,distance=1.5em,offset=\dimexpr3mm,split=repeat] \bTABLE \bTR \bTD Dit is iets in een TABLE. Of ik het begrepen heb? \eTD \bTD Misschien wel. \eTD \eTR \bTR \bTD \eTD \bTD En als ik nu maar éen cel schrijf? Het zou namelijk kunnen, dat hiermee tegen de een of andere regel gezondigd wordt, die in documentatie niet te vinden is. En in dat geval gaat het hele experiment niet op, of, nou ja, slechts ten dele. {\bf But drat, I want this box to be split across pages!}\eTD \eTR \eTABLE \blank } % end of \dorecurse \midaligned { \setupTABLE[row][each][rulethickness=1.5pt,distance=1mm,offset=\dimexpr2mm+2pt,split=repeat] \startTABLE \NC Text 1 \NC Text 2 \NC\NR \NC Text 3 \NC Text 4 \NC\NR \stopTABLE } \stoptext ---end of test source--- ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
Am 23.05.2014 um 04:17 schrieb Robert Zydenbos cont...@zydenbos.net: This is a topic that is of great interest to me. I have been trying to make tables in mkii (because I need XeTeX for my Indic fonts) that span across pages and in which cells are more than one line (so I use the 'p' parameter). I'm enclosing a test file below. Any suggestions? You have you use the “split” keyword when you want your tables to be broken across pages, i.e. \starttext \placetable[split]{Table caption} {\starttabulate \NC Knuth \NC \input knuth \NC\NR \NC Tufte \NC \input tufte \NC\NR \NC Zapf \NC \input zapf \NC\NR \NC Knuth \NC \input knuth \NC\NR \NC Tufte \NC \input tufte \NC\NR \NC Zapf \NC \input zapf \NC\NR \stoptabulate} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
... Wikified: http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page Lukas On Tue, 13 May 2014 07:03:58 +0200, Mikael P. Sundqvist mic...@gmail.com wrote: I'd do such things with \starttext \input knuth\par \placetable[force,none]{none}{% \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate } \input knuth \stoptext (the knuths are there only not to make the page look so empty, and the force makes it non-floating, and the nones are there to not have any caption (or even Table title)) but maybe there are better solutions? /Mikael -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 241 096 751 Fax: +420 244 461 038 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: ... Wikified: http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page Lukas I realized that the second none is not needed. It is sufficient with empty {} (or they could include any text). I updated the wiki. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On 13 mai 2014, at 08:30, Mikael P. Sundqvist mic...@gmail.com wrote: On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: ... Wikified: http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page Lukas I realized that the second none is not needed. It is sufficient with empty {} (or they could include any text). I updated the wiki. Actually the « none » in \placetable[force,none] means you don’t want a caption and the first braces enclose the caption, while the second braces enclose what is going to be « placed »: compare \placetable[force]{This is a centered tabulation}{ \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate} with \placetable[force,none]{This is a centered tabulation}{ \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate} Best regards: OK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On Tue, May 13, 2014 at 10:36 AM, Otared Kavian ota...@gmail.com wrote: Actually the « none » in \placetable[force,none] means you don’t want a caption and the first braces enclose the caption, while the second braces enclose what is going to be « placed »: compare \placetable[force]{This is a centered tabulation}{ \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate} with \placetable[force,none]{This is a centered tabulation}{ \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate} Best regards: OK I think this agrees (with what I meant). Do you know how how to do this with \startplacetable and \stopplacetable? \startplacetable%[force,none] \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate \stopplacetable gives a Table 1 below the table. And uncommenting the [force,none] part does not seem to help... /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On Tue, May 13, 2014 at 10:49 AM, Mikael P. Sundqvist mic...@gmail.com wrote: \startplacetable%[force,none] \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate \stopplacetable Sorry for the spamming, according to older examples on the list, this seems to work: \startplacetable[location=force,number=no] \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate \stopplacetable There is also a location=nonumber. I don't know what is the difference. /Mikael PS: I'll try to add this to the \startplacefloat page (which seems to be absent) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
Am 13.05.2014 um 09:30 schrieb Mikael P. Sundqvist mic...@gmail.com: On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote: ... Wikified: http://wiki.contextgarden.net/Tabulate#Horizontal_centering_table_on_the_page Lukas I realized that the second none is not needed. It is sufficient with empty {} (or they could include any text). I updated the wiki. When you write “none” in the caption this is now handled as a normal string and no longer as a keyword to disable the caption. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Centering tabulate env. using \setuptabulate
On Tue, May 13, 2014 at 5:28 AM, Devendra Ghate devendra.gh...@gmail.com wrote: I expect follow MWE to produce a centered table. But it does not. Am I making any obvious mistake. --- \definetabulate[centeredTable][|r|l|] \setuptabulate [centeredTable] [align={middle}] \starttext \startcenteredTable \HL \NC I want this table \NC aligned in the center.\NR \HL \stopcenteredTable \stoptext This also *doesn't* work. --- \setuptabulate [align={middle}] \starttext \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate \stoptext -- Devendra Ghate ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ I'd do such things with \starttext \input knuth\par \placetable[force,none]{none}{% \starttabulate[|r|l|] \HL \NC I want this table \NC aligned in the center.\NR \HL \stoptabulate } \input knuth \stoptext (the knuths are there only not to make the page look so empty, and the force makes it non-floating, and the nones are there to not have any caption (or even Table title)) but maybe there are better solutions? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___