ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \definestartstop and \starttabulate
@ 2004-05-06 19:31 Peter Münster
  2004-05-07 16:55 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Münster @ 2004-05-06 19:31 UTC (permalink / raw)


Hello,
how could I create a new start-stop-pair that uses \starttabulate ?
The following example does not seem to work...

\definestartstop[Tab][before={\starttabulate[|c|]},
    after={\stoptabulate}]
\starttext
\startTab
\NC test \NC\AR
\stopTab
\stoptext

TIA for any help, Peter

-- 
http://pmrb.free.fr/contact/
________________________________________________________________
FilmSearch engine with a lot of new features: http://f-s.sf.net/

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

* Re: \definestartstop and \starttabulate
  2004-05-06 19:31 \definestartstop and \starttabulate Peter Münster
@ 2004-05-07 16:55 ` Hans Hagen
  2004-05-07 20:12   ` Peter Münster
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2004-05-07 16:55 UTC (permalink / raw)


At 21:31 06/05/2004, you wrote:
>Hello,
>how could I create a new start-stop-pair that uses \starttabulate ?
>The following example does not seem to work...
>
>\definestartstop[Tab][before={\starttabulate[|c|]},
>     after={\stoptabulate}]
>\starttext
>\startTab
>\NC test \NC\AR
>\stopTab
>\stoptext

\starttext

\definetabulate[test][|l|p|l|]

\starttest
\NC test \NC test \NC test \NC \NR
\NC tst \NC tst \NC tst \NC \NR
\stoptest

\stoptext

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

* Re: \definestartstop and \starttabulate
  2004-05-07 16:55 ` Hans Hagen
@ 2004-05-07 20:12   ` Peter Münster
  0 siblings, 0 replies; 3+ messages in thread
From: Peter Münster @ 2004-05-07 20:12 UTC (permalink / raw)


On Fri, 7 May 2004, Hans Hagen wrote:

> \definetabulate[test][|l|p|l|]

Thank you, Hans!

Here you see, how I use it:

\define[3]\FLine{\NC#1\NC#2\NC#3\NC\AR}% First line
\define[2]\Line{\NC\NC#1\NC#2\NC\AR}   % normal line
\define[3]\SLine{\Line{\hbox{\hbox to 0pt{\hskip-3em #1}#2}}{#3}}% special line
\definetabulate[Loesung][%
  |p(0.3\makeupwidth)|p(0.2\makeupwidth)|p(0.3\makeupwidth)|]
\starttext
\startLoesung
\FLine{2YT-Medium}{5\,g}{NaCl}
\Line{10\,g}{Hefe-Extrakt}
\SLine{(AK:}{0,1\,mg/ml}{Ampicillin}
\Line{0,05\,mg/ml}{Kanamycin)}
\stopLoesung
\stoptext

Would it be easy to make it with key=value mechanism? Is there some
documentation on how to do it?
Something like
\startLoesung[name=2YT-Medium]
...
\stopLoesung
would be great.

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
________________________________________________________________
FilmSearch engine with a lot of new features: http://f-s.sf.net/

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

end of thread, other threads:[~2004-05-07 20:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06 19:31 \definestartstop and \starttabulate Peter Münster
2004-05-07 16:55 ` Hans Hagen
2004-05-07 20:12   ` Peter Münster

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