ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* p in tables
@ 1999-09-08 10:09 Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-09-08 10:09 UTC (permalink / raw)


Sorry, it should be \s!default and \s!unknown !!!!!!!!!!!!

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.nl
-----------------------------------------------------------------


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

* p in tables
@ 1999-09-08 10:06 Hans Hagen
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 1999-09-08 10:06 UTC (permalink / raw)


Hi Matt, 

Add this to cont-new.tex (hooks in to TaBlE): 

\unprotect

\letvalue{!tk<\string l>}=\undefined
\letvalue{!tk<\string c>}=\undefined
\letvalue{!tk<\string r>}=\undefined

\NewFormatKey c%
  {\prependtoks\raggedcenter\to\!taDataColumnTemplate
   \ReadFormatKeys \LeftGlue\hfil \RightGlue\hfil}

\NewFormatKey l%
  {\prependtoks\raggedright\to\!taDataColumnTemplate
   \ReadFormatKeys \LeftGlue{} \RightGlue\hfil}

\NewFormatKey r%
  {\prependtoks\raggedleft\to\!taDataColumnTemplate
   \ReadFormatKeys \LeftGlue\hfil \RightGlue{}}

\appendtoks \TABLEparalignment \to \EveryTableParBox

\def\dosteltabellenin[#1]%
  {\getparameters[\??ti][#1]%
   \processaction
     [\@@tiuitlijnen]
     [ \v!rechts=>\def\TABLEparalignment{\raggedright},
        \v!links=>\def\TABLEparalignment{\raggedleft},
       \v!midden=>\def\TABLEparalignment{\raggedcenter},
      \v!default=>\def\TABLEparalignment{\notragged},
      \v!unknown=>\def\TABLEparalignment{\notragged}]%
   \assignalfadimension{\@@tiVL}{\@@tiVLwidth} {2}{4}{6}%
   \assignalfadimension{\@@tiHL}{\@@tiHLheight}{2}{4}{6}}

\steltabellenin[\c!uitlijnen=\v!rechts]

\protect 

And you will be happy. You can change the default in your cont-sys file
or document: 

  \setuptables[align=normal]

I can hardly make this the default, because people expect their old docs
to be the way they were. 

I'll think about an extra key for normal alignment (n is already used),
maybe x. 

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.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~1999-09-08 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-08 10:09 p in tables Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
1999-09-08 10:06 Hans Hagen

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).