ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Centering tabulate env. using \setuptabulate
@ 2014-05-13  3:28 Devendra Ghate
  2014-05-13  5:03 ` Mikael P. Sundqvist
  0 siblings, 1 reply; 18+ messages in thread
From: Devendra Ghate @ 2014-05-13  3:28 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  3:28 Centering tabulate env. using \setuptabulate Devendra Ghate
@ 2014-05-13  5:03 ` Mikael P. Sundqvist
  2014-05-13  7:22   ` Procházka Lukáš Ing. - Pontex s. r. o.
  0 siblings, 1 reply; 18+ messages in thread
From: Mikael P. Sundqvist @ 2014-05-13  5:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, May 13, 2014 at 5:28 AM, Devendra Ghate
<devendra.ghate@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  5:03 ` Mikael P. Sundqvist
@ 2014-05-13  7:22   ` Procházka Lukáš Ing. - Pontex s. r. o.
  2014-05-13  7:30     ` Mikael P. Sundqvist
  0 siblings, 1 reply; 18+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2014-05-13  7:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... 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 <mickep@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:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  7:22   ` Procházka Lukáš Ing. - Pontex s. r. o.
@ 2014-05-13  7:30     ` Mikael P. Sundqvist
  2014-05-13  8:36       ` Otared Kavian
  2014-05-13 10:23       ` Wolfgang Schuster
  0 siblings, 2 replies; 18+ messages in thread
From: Mikael P. Sundqvist @ 2014-05-13  7:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
o. <LPr@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  7:30     ` Mikael P. Sundqvist
@ 2014-05-13  8:36       ` Otared Kavian
  2014-05-13  8:49         ` Mikael P. Sundqvist
  2014-05-13 10:23       ` Wolfgang Schuster
  1 sibling, 1 reply; 18+ messages in thread
From: Otared Kavian @ 2014-05-13  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


On 13 mai 2014, at 08:30, Mikael P. Sundqvist <mickep@gmail.com> wrote:

> On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
> o. <LPr@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  8:36       ` Otared Kavian
@ 2014-05-13  8:49         ` Mikael P. Sundqvist
  2014-05-13  9:00           ` Mikael P. Sundqvist
  0 siblings, 1 reply; 18+ messages in thread
From: Mikael P. Sundqvist @ 2014-05-13  8:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, May 13, 2014 at 10:36 AM, Otared Kavian <otared@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  8:49         ` Mikael P. Sundqvist
@ 2014-05-13  9:00           ` Mikael P. Sundqvist
  0 siblings, 0 replies; 18+ messages in thread
From: Mikael P. Sundqvist @ 2014-05-13  9:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, May 13, 2014 at 10:49 AM, Mikael P. Sundqvist <mickep@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13  7:30     ` Mikael P. Sundqvist
  2014-05-13  8:36       ` Otared Kavian
@ 2014-05-13 10:23       ` Wolfgang Schuster
  2014-05-23  2:17         ` Robert Zydenbos
  1 sibling, 1 reply; 18+ messages in thread
From: Wolfgang Schuster @ 2014-05-13 10:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.05.2014 um 09:30 schrieb Mikael P. Sundqvist <mickep@gmail.com>:

> On Tue, May 13, 2014 at 9:22 AM, Procházka Lukáš Ing. - Pontex s. r.
> o. <LPr@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-13 10:23       ` Wolfgang Schuster
@ 2014-05-23  2:17         ` Robert Zydenbos
  2014-05-23  3:05           ` Wolfgang Schuster
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Zydenbos @ 2014-05-23  2:17 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-23  2:17         ` Robert Zydenbos
@ 2014-05-23  3:05           ` Wolfgang Schuster
  2014-05-27  8:57             ` Robert Zydenbos
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfgang Schuster @ 2014-05-23  3:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 23.05.2014 um 04:17 schrieb Robert Zydenbos <context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-23  3:05           ` Wolfgang Schuster
@ 2014-05-27  8:57             ` Robert Zydenbos
  2014-05-27 13:37               ` Wolfgang Schuster
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Zydenbos @ 2014-05-27  8:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Is there also an equivalent of \placetable for use with Natural Tables?

Robert

On May 23, 2014, at 5:05 , Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:

> Am 23.05.2014 um 04:17 schrieb Robert Zydenbos <context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-27  8:57             ` Robert Zydenbos
@ 2014-05-27 13:37               ` Wolfgang Schuster
  2014-05-28  8:46                 ` Robert Zydenbos
  0 siblings, 1 reply; 18+ messages in thread
From: Wolfgang Schuster @ 2014-05-27 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.05.2014 um 10:57 schrieb Robert Zydenbos <context@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-27 13:37               ` Wolfgang Schuster
@ 2014-05-28  8:46                 ` Robert Zydenbos
  2014-05-28 11:51                   ` Hans Hagen
  2014-05-28 13:53                   ` Wolfgang Schuster
  0 siblings, 2 replies; 18+ messages in thread
From: Robert Zydenbos @ 2014-05-28  8:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On May 27, 2014, at 15:37 , Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-28  8:46                 ` Robert Zydenbos
@ 2014-05-28 11:51                   ` Hans Hagen
  2014-05-28 18:25                     ` Robert Zydenbos
  2014-05-28 13:53                   ` Wolfgang Schuster
  1 sibling, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2014-05-28 11:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 5/28/2014 10:46 AM, Robert Zydenbos wrote:
> On May 27, 2014, at 15:37 , Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-28  8:46                 ` Robert Zydenbos
  2014-05-28 11:51                   ` Hans Hagen
@ 2014-05-28 13:53                   ` Wolfgang Schuster
  1 sibling, 0 replies; 18+ messages in thread
From: Wolfgang Schuster @ 2014-05-28 13:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.05.2014 um 10:46 schrieb Robert Zydenbos <context@zydenbos.net>:

> On May 27, 2014, at 15:37 , Wolfgang Schuster <schuster.wolfgang@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-28 11:51                   ` Hans Hagen
@ 2014-05-28 18:25                     ` Robert Zydenbos
  2014-05-28 20:10                       ` Hans Hagen
  0 siblings, 1 reply; 18+ messages in thread
From: Robert Zydenbos @ 2014-05-28 18:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On May 28, 2014, at 13:51 , Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-28 18:25                     ` Robert Zydenbos
@ 2014-05-28 20:10                       ` Hans Hagen
  2014-05-28 20:33                         ` Robert Zydenbos
  0 siblings, 1 reply; 18+ messages in thread
From: Hans Hagen @ 2014-05-28 20:10 UTC (permalink / raw)
  To: ntg-context

On 5/28/2014 8:25 PM, Robert Zydenbos wrote:
> On May 28, 2014, at 13:51 , Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Centering tabulate env. using \setuptabulate
  2014-05-28 20:10                       ` Hans Hagen
@ 2014-05-28 20:33                         ` Robert Zydenbos
  0 siblings, 0 replies; 18+ messages in thread
From: Robert Zydenbos @ 2014-05-28 20:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On May 28, 2014, at 22:10 , Hans Hagen <pragma@wxs.nl> wrote:

> On 5/28/2014 8:25 PM, Robert Zydenbos wrote:
>> On May 28, 2014, at 13:51 , Hans Hagen <pragma@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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-05-28 20:33 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13  3:28 Centering tabulate env. using \setuptabulate Devendra Ghate
2014-05-13  5:03 ` Mikael P. Sundqvist
2014-05-13  7:22   ` Procházka Lukáš Ing. - Pontex s. r. o.
2014-05-13  7:30     ` Mikael P. Sundqvist
2014-05-13  8:36       ` Otared Kavian
2014-05-13  8:49         ` Mikael P. Sundqvist
2014-05-13  9:00           ` Mikael P. Sundqvist
2014-05-13 10:23       ` Wolfgang Schuster
2014-05-23  2:17         ` Robert Zydenbos
2014-05-23  3:05           ` Wolfgang Schuster
2014-05-27  8:57             ` Robert Zydenbos
2014-05-27 13:37               ` Wolfgang Schuster
2014-05-28  8:46                 ` Robert Zydenbos
2014-05-28 11:51                   ` Hans Hagen
2014-05-28 18:25                     ` Robert Zydenbos
2014-05-28 20:10                       ` Hans Hagen
2014-05-28 20:33                         ` Robert Zydenbos
2014-05-28 13:53                   ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).