[NTG-context] Natural Tables

2014-05-12 Thread hwitloc


What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?



\starttext

\bTABLE
  \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
  \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
\eTABLE

\stoptext

  result looks the same to me..?

Thanks
___
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] Natural Tables

2014-05-12 Thread Mikael P. Sundqvist
The only place in the source where bTC is mentioned is in
tabl-ntb.mkiv (and tabl-ntb.mkii), which says says

\unexpanded\def\bTC#1\eTC{\bTD#1\eTD} \let\eTC\relax
\unexpanded\def\bTX#1\eTX{\bTD#1\eTD} \let\eTX\relax
\unexpanded\def\bTY#1\eTY{\bTR#1\eTR} \let\eTY\relax

I guess that means \bTC and \bTD are the same (as is \bTX).

/Mikael


On Mon, May 12, 2014 at 9:42 AM,  hwit...@gmail.com wrote:


 What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?

 

 \starttext

 \bTABLE
   \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
   \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
 \eTABLE

 \stoptext

   result looks the same to me..?

 Thanks
 ___
 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
 ___
___
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] Natural Tables

2014-05-12 Thread Wolfgang Schuster

Am 12.05.2014 um 09:42 schrieb hwit...@gmail.com:

 
 
 What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?
 
 
 
 \starttext
 
 \bTABLE
  \bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
  \bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
 \eTABLE
 
 \stoptext
 
   result looks the same to me..?

The two groups

- \bTC … \eTC and
- \bTX … \eTX

are the same as \bTD … \eTD and the group

- \bTY … \eTY

is the same as \bTR … \eTR.

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] Natural Tables

2014-05-12 Thread hwitloc

Thank you Mikael and also Wolfgang for the response to my query.

Regards,
Whitloc

Mikael P. Sundqvist mic...@gmail.com wrote:

 The only place in the source where bTC is mentioned is in
 tabl-ntb.mkiv (and tabl-ntb.mkii), which says says
 
 \unexpanded\def\bTC#1\eTC{\bTD#1\eTD} \let\eTC\relax
 \unexpanded\def\bTX#1\eTX{\bTD#1\eTD} \let\eTX\relax
 \unexpanded\def\bTY#1\eTY{\bTR#1\eTR} \let\eTY\relax
 
 I guess that means \bTC and \bTD are the same (as is \bTX).
 
 /Mikael
 
 
 On Mon, May 12, 2014 at 9:42 AM,  hwit...@gmail.com wrote:
 
 
  What is the difference between  TD and TC in  \bTD, \bTC , \eTD, and \eTC ?
 
  
 
  \starttext
 
  \bTABLE
\bTR \bTC one \eTC \bTC two \eTC \bTC three \eTC \eTR
\bTR \bTD one \eTD \bTD two \eTD \bTD three \eTD \eTR
  \eTABLE
 
  \stoptext
 
    result looks the same to me..?
 
  Thanks
  ___
  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
  ___
 ___
 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
 ___
___
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] smcp+tlig broken for -- only? -- Libertine

2014-05-12 Thread Hans Hagen

On 5/11/2014 12:23 PM, Philipp Gesang wrote:

Hi Hans,

the fontloader appears to have trouble applying fake ligatures
(“--” - “\endash” and the likes) in conjunction with small
capitals. Both features work well in isolation. The behavior
is limited to Libertine (I tested all versions back to 5.0.0).
Here’s the file I’ve been testing with:

 
https://bitbucket.org/phg/lua-la-tex-tests/src/c2e518e9459ab343fee3d0647c7472c5bf599489/cnt-feature-9-smcp-tlig.tex


(1) for node mode i will shift the feature up front (unless it fails at 
some point)


(2) for base mode we will fall back on regular -- and --- (no fancy 
adaption)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Mobilephone Symbol

2014-05-12 Thread Devendra Ghate

Hello Everyone,

The following minimum example only produces the symbols for Neptune and
Letter. Mobilephone and phone don't work. Am I doing something wrong?

---
%\usesymbols[symb-imp-mvs]
\usesymbols[mvs]
\starttext
 %\showsymbolset
 \symbol[martinvogel 2][Mobilephone]
 \symbol[martinvogel 2][Letter]
 \symbol[martinvogel 2][Phone]
 \symbol[astronomic][Neptune]
\stoptext
---

Many thanks for any suggestions.
--
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
___


Re: [NTG-context] Mobilephone Symbol

2014-05-12 Thread Mikael P. Sundqvist
In symb-imp-mvs.mkiv, there is a (note the spelling!)

\definesymbol [Mobilefone] [\MartinVogelSymbol{Mobilefone}]

and

\definesymbol [Telephone]  [\MartinVogelSymbol{Telefon}]

I don't know if that helps, but it is a(ny) suggestion.

/Mikael


On Mon, May 12, 2014 at 6:35 PM, Devendra Ghate
devendra.gh...@gmail.com wrote:
 Hello Everyone,

 The following minimum example only produces the symbols for Neptune and
 Letter. Mobilephone and phone don't work. Am I doing something wrong?

 ---
 %\usesymbols[symb-imp-mvs]
 \usesymbols[mvs]
 \starttext
  %\showsymbolset
  \symbol[martinvogel 2][Mobilephone]
  \symbol[martinvogel 2][Letter]
  \symbol[martinvogel 2][Phone]
  \symbol[astronomic][Neptune]
 \stoptext
 ---

 Many thanks for any suggestions.
 --
 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
 ___
___
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] Mobilephone Symbol

2014-05-12 Thread Devendra Ghate
Thank you so much. 


Following works.
---
\symbol[martinvogel 2][Mobilefone]  
\symbol[martinvogel 2][Telephone]

---

But this doesn't work.
--
\symbol[martinvogel 2][Mobilephone]  
\symbol[martinvogel 2][Telefon]

--

Regards,
Devendra Ghate


On Mon, May 12, 2014 at 06:49:07PM +0200, Mikael P. Sundqvist wrote:

In symb-imp-mvs.mkiv, there is a (note the spelling!)

\definesymbol [Mobilefone] [\MartinVogelSymbol{Mobilefone}]

and

\definesymbol [Telephone]  [\MartinVogelSymbol{Telefon}]

I don't know if that helps, but it is a(ny) suggestion.

/Mikael


On Mon, May 12, 2014 at 6:35 PM, Devendra Ghate
devendra.gh...@gmail.com wrote:

Hello Everyone,

The following minimum example only produces the symbols for Neptune and
Letter. Mobilephone and phone don't work. Am I doing something wrong?

---
%\usesymbols[symb-imp-mvs]
\usesymbols[mvs]
\starttext
 %\showsymbolset
 \symbol[martinvogel 2][Mobilephone]
 \symbol[martinvogel 2][Letter]
 \symbol[martinvogel 2][Phone]
 \symbol[astronomic][Neptune]
\stoptext
---

Many thanks for any suggestions.
--
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
___

___
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
___


--
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
___


Re: [NTG-context] smcp+tlig broken for -- only? -- Libertine

2014-05-12 Thread Philipp Gesang
···date: 2014-05-12, Monday···from: Hans Hagen···

 On 5/11/2014 12:23 PM, Philipp Gesang wrote:
  Hi Hans,
 
  the fontloader appears to have trouble applying fake ligatures
  (“--” - “\endash” and the likes) in conjunction with small
  capitals. Both features work well in isolation. The behavior
  is limited to Libertine (I tested all versions back to 5.0.0).
  Here’s the file I’ve been testing with:
 
   
  https://bitbucket.org/phg/lua-la-tex-tests/src/c2e518e9459ab343fee3d0647c7472c5bf599489/cnt-feature-9-smcp-tlig.tex
 
 (1) for node mode i will shift the feature up front (unless it fails at 
 some point)

Thanks, I’ll keep an eye on that! For now it looks good.

 (2) for base mode we will fall back on regular -- and --- (no fancy 
 adaption)

Fine by me!

Thanks for the quick fix,
Philipp





pgpGV3l8Lmsnn.pgp
Description: PGP signature
___
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] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
On Mon May 12 22:01:04 2014, Hans Hagen wrote:
 On 5/12/2014 9:48 PM, Aíre Funvake wrote:
 Hi all,

 Trying to select slashed zero and lining figures from a
 font. For Lucida Bright OT, as another example, +scmp works,
 but not for Charter ITC Pro. But the font that concerns me
 the most right now, is TheSansMono Condensed...

 Font URL:
 http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/


 PDF Info:
 https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

 8---minimal example8
 \newdimen\fntcodesz
 \fntcodesz = 11.5pt
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 \kwr
 0123456789
 \bye
 8--8

 sometimes you need to select a script/language combination too or when
 digits are concerned disable oldstyle

I'm too inexperienced to know what that means, or how to apply that.

I've opened the font in FontForge, and can see the glyphs I'm
looking for, but again, it does not carry much applicable meaning
for me. For example, can I use this information?:

Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO
  1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
  ...
Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
  1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
  ...

Also, under Font Info - Lookups, I see something which may help:

...
lookup zeroSlashedZeroinLatinlookup25 {
  lookupflag 0;
sub \zero by \zero.slashed ;
sub \zero.oldstyle by \zero.oldstyle.slashed ;
sub \zero.alt1 by \zero.alt1.slashed ;
sub \zero.lf by \zero.lf.slashed ;
sub \zero.basic by \zero.basic.slashed ;
} zeroSlashedZeroinLatinlookup25;
...

The whole feature set:
https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-W5Regular.fea

Thanks for your time,
Aíre.

___
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] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Hans Hagen

On 5/12/2014 10:46 PM, Aíre Funvake wrote:

On Mon May 12 22:01:04 2014, Hans Hagen wrote:

On 5/12/2014 9:48 PM, Aíre Funvake wrote:

Hi all,

Trying to select slashed zero and lining figures from a
font. For Lucida Bright OT, as another example, +scmp works,
but not for Charter ITC Pro. But the font that concerns me
the most right now, is TheSansMono Condensed...

Font URL:
http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/


PDF Info:
https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

8---minimal example8
\newdimen\fntcodesz
\fntcodesz = 11.5pt
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
\kwr
0123456789
\bye
8--8


sometimes you need to select a script/language combination too or when
digits are concerned disable oldstyle


I'm too inexperienced to know what that means, or how to apply that.


there is some info in font manuals and the context wiki


I've opened the font in FontForge, and can see the glyphs I'm
looking for, but again, it does not carry much applicable meaning
for me. For example, can I use this information?:

Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO
   1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
   ...
Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
   1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
   ...


so you need to select the lnum feature too

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
On Mon May 12 22:52:43 2014, Hans Hagen wrote:
 On 5/12/2014 10:46 PM, Aíre Funvake wrote:
 On Mon May 12 22:01:04 2014, Hans Hagen wrote:
 On 5/12/2014 9:48 PM, Aíre Funvake wrote:
 Hi all,

 Trying to select slashed zero and lining figures from a
 font. For Lucida Bright OT, as another example, +scmp works,
 but not for Charter ITC Pro. But the font that concerns me
 the most right now, is TheSansMono Condensed...

 Font URL:
 http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/



 PDF Info:
 https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

 8---minimal example8
 \newdimen\fntcodesz
 \fntcodesz = 11.5pt
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 \kwr
 0123456789
 \bye
 8--8

 sometimes you need to select a script/language combination too or when
 digits are concerned disable oldstyle

 I'm too inexperienced to know what that means, or how to apply that.

 there is some info in font manuals and the context wiki

 I've opened the font in FontForge, and can see the glyphs I'm
 looking for, but again, it does not carry much applicable meaning
 for me. For example, can I use this information?:

 Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO
1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
...
 Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
...

 so you need to select the lnum feature too

Was this not it?:
...
\font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
...
But thanks; will keep on reading; if solution found, will add it here.
Regards,
Aíre
___
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] LuaTeX-plain OpenType Features Select

2014-05-12 Thread Aíre Funvake
On 2014-05-12, 22:59 , Aíre Funvake wrote:
 On Mon May 12 22:52:43 2014, Hans Hagen wrote:
 On 5/12/2014 10:46 PM, Aíre Funvake wrote:
 On Mon May 12 22:01:04 2014, Hans Hagen wrote:
 On 5/12/2014 9:48 PM, Aíre Funvake wrote:
 Hi all,

 Trying to select slashed zero and lining figures from a
 font. For Lucida Bright OT, as another example, +scmp works,
 but not for Charter ITC Pro. But the font that concerns me
 the most right now, is TheSansMono Condensed...

 Font URL:
 http://www.lucasfonts.com/fonts/thesansmono/thesansmono-condensed/features/



 PDF Info:
 https://dl.dropboxusercontent.com/u/6613992/TheSansMonoCd-info.pdf

 8---minimal example8
 \newdimen\fntcodesz
 \fntcodesz = 11.5pt
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 \kwr
 0123456789
 \bye
 8--8

 sometimes you need to select a script/language combination too or when
 digits are concerned disable oldstyle

 I'm too inexperienced to know what that means, or how to apply that.

 there is some info in font manuals and the context wiki

 I've opened the font in FontForge, and can see the glyphs I'm
 looking for, but again, it does not carry much applicable meaning
 for me. For example, can I use this information?:

 Slash 0, Lining Figures: (0x10120) U+0030 zero.lf.slashed DIGIT ZERO
1, Lining Figures: (0x10121) U+0031 one.lf DIGIT ONE
...
 Slash 0, Basic: (0x1012b) U+0030 zero.basic.slashed DIGIT ZERO
1, Basic: (0x1012c) U+0031 one.basic DIGIT ONE
...

 so you need to select the lnum feature too

 Was this not it?:
 ...
 \font\kwr = name:thesansmonocdw5regular:+lnum;+zero at \fntcodesz
 ...
 But thanks; will keep on reading; if solution found, will add it here.
 Regards,
 Aíre
 
Solution:
\font\tt = name:thesansmonocdw5regular:script=latn;+lnum;+zero} at 12pt
Thank you!

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Centering tabulate env. using \setuptabulate

2014-05-12 Thread Devendra Ghate

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
___


Re: [NTG-context] Centering tabulate env. using \setuptabulate

2014-05-12 Thread Mikael P. Sundqvist
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
___