ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* midaligned tabulate?
@ 2004-01-07 22:28 Patrick Gundlach
  2004-01-08  8:03 ` Willi Egger
  0 siblings, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2004-01-07 22:28 UTC (permalink / raw)


Hi,

I just wonder how to center a table.... 
--------------------------------------------------
\starttext

\startalignment[middle]
this is centered?
\stopalignment

\startalignment[middle]
\starttabulate[|l|l|]
\FL
\NC Platz 1--12 \NC Block A\NC\NR
\NC Platz 7--18 \NC Block B\NC\NR
\NC Platz 13--24 \NC Block C\NC\NR
\NC Ab Platz 19 \NC Block D\NC\NR
\LL
\stoptabulate
\stopalignment
\stoptext
--------------------------------------------------


Patrick
-- 
Es wird kein Wunder geschehen

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

* Re: midaligned tabulate?
  2004-01-07 22:28 midaligned tabulate? Patrick Gundlach
@ 2004-01-08  8:03 ` Willi Egger
  2004-01-08  8:36   ` Hans Hagen
  2004-01-08  8:37   ` midaligned tabulate? Patrick Gundlach
  0 siblings, 2 replies; 10+ messages in thread
From: Willi Egger @ 2004-01-08  8:03 UTC (permalink / raw)


Hi Patrick,

I would try to place this in the \placefloat environment

\placetable[here,middle][]
    {centered table}
    {\starttabulate
       your actual table ...
    \stoptabulate}

Cheers Willi

Patrick Gundlach wrote:

>Hi,
>
>I just wonder how to center a table.... 
>--------------------------------------------------
>\starttext
>
>\startalignment[middle]
>this is centered?
>\stopalignment
>
>\startalignment[middle]
>\starttabulate[|l|l|]
>\FL
>\NC Platz 1--12 \NC Block A\NC\NR
>\NC Platz 7--18 \NC Block B\NC\NR
>\NC Platz 13--24 \NC Block C\NC\NR
>\NC Ab Platz 19 \NC Block D\NC\NR
>\LL
>\stoptabulate
>\stopalignment
>\stoptext
>--------------------------------------------------
>
>
>Patrick
>  
>

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

* Re: midaligned tabulate?
  2004-01-08  8:03 ` Willi Egger
@ 2004-01-08  8:36   ` Hans Hagen
  2004-01-08  8:52     ` Patrick Gundlach
  2004-01-13 12:56     ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
  2004-01-08  8:37   ` midaligned tabulate? Patrick Gundlach
  1 sibling, 2 replies; 10+ messages in thread
From: Hans Hagen @ 2004-01-08  8:36 UTC (permalink / raw)


At 09:03 08/01/2004, you wrote:
>Hi Patrick,
>
>I would try to place this in the \placefloat environment
>
>\placetable[here,middle][]
>    {centered table}
>    {\starttabulate
>       your actual table ...
>    \stoptabulate}

or:

\definefloat[centered][table]

\setupfloat[centered][default={none}]

\starttext

\input ward

\placecentered
   {just a comment}
   {\starttabulate[|l|l|]
    \NC test \NC test \NC \NR
    \stoptabulate}

\input tufte

\setuptabulate[margin=3cm]

\starttabulate[|l|l|]
\NC test \NC test \NC \NR
\stoptabulate

\input davis

\stoptext

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

* Re: midaligned tabulate?
  2004-01-08  8:03 ` Willi Egger
  2004-01-08  8:36   ` Hans Hagen
@ 2004-01-08  8:37   ` Patrick Gundlach
  1 sibling, 0 replies; 10+ messages in thread
From: Patrick Gundlach @ 2004-01-08  8:37 UTC (permalink / raw)


Hello Willi,

> I would try to place this in the \placefloat environment

hmm, but I don't want it to float nor do I need a caption. 

> \placetable[here,middle][]
>     {centered table}
>     {\starttabulate
>        your actual table ...
>     \stoptabulate}

Patrick
-- 
Es wird kein Wunder geschehen

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

* Re: midaligned tabulate?
  2004-01-08  8:36   ` Hans Hagen
@ 2004-01-08  8:52     ` Patrick Gundlach
  2004-01-08  9:58       ` Hans Hagen
  2004-01-13 12:56     ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
  1 sibling, 1 reply; 10+ messages in thread
From: Patrick Gundlach @ 2004-01-08  8:52 UTC (permalink / raw)


Hello Hans,

> \definefloat[centered][table]
> \setupfloat[centered][default={none}]

would this ever float (I don't want it to).

rest looks fine.

Patrick

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

* Re: Re: midaligned tabulate?
  2004-01-08  8:52     ` Patrick Gundlach
@ 2004-01-08  9:58       ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2004-01-08  9:58 UTC (permalink / raw)


At 09:52 08/01/2004, you wrote:
>Hello Hans,
>
> > \definefloat[centered][table]
> > \setupfloat[centered][default={none}]
>
>would this ever float (I don't want it to).

{here,always,none} or {fixed,none} should do that

Hans  

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

* \reference[mark]{(\the\equationnumber)}
  2004-01-08  8:36   ` Hans Hagen
  2004-01-08  8:52     ` Patrick Gundlach
@ 2004-01-13 12:56     ` Albrecht Kauffmann
  2004-01-13 13:05       ` \reference[mark]{(\the\equationnumber)} Tobias Burnus
       [not found]       ` <Pine.GSO.4.30.0401131346360.24069-100000@persius.rz.uni-po tsdam.de>
  1 sibling, 2 replies; 10+ messages in thread
From: Albrecht Kauffmann @ 2004-01-13 12:56 UTC (permalink / raw)


Hi all,

in a former paper I used

\newcount\equationnumber
\equationnumber=0
\def\eq{\advance\equationnumber by 1}%Formelzähler erhöhen
\starttext
\eq\reference[a]{(\the\equationnumber)}
$$a\eqno(\the\equationnumber)$$%an equation
\eq\reference[b]{(\the\equationnumber)}
$$b\eqno(\the\equationnumber)$$%another equation
Eq. \ref[t][a] and \ref[t][b] are only simple characters, because this is
a test.
\stoptext

with the Context version 2003.9.17 this doesn't work: Only the largest
Equationnumber appears as reference text, and in the *.tui and *.tuo-file
is written "\the \equationnumber" instead of the value of
\the\equationnumber.

Would it be able to revive this mechanism?

With many thanks for any hint,
Albrecht

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

* Re: \reference[mark]{(\the\equationnumber)}
  2004-01-13 12:56     ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
@ 2004-01-13 13:05       ` Tobias Burnus
  2004-01-13 13:28         ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
       [not found]       ` <Pine.GSO.4.30.0401131346360.24069-100000@persius.rz.uni-po tsdam.de>
  1 sibling, 1 reply; 10+ messages in thread
From: Tobias Burnus @ 2004-01-13 13:05 UTC (permalink / raw)


Hi,

On Tue, Jan 13, 2004 at 01:56:55PM +0100, Albrecht Kauffmann wrote:
> in a former paper I used
[...]

How about

\placeformula[one]
\startformula
\eqalignno{
   a &= b & \formulanumber[one-a]{a}\cr
   c &= d & \subformulanumber[one-b]{b}\cr
}\stopformula

\in[one],  \in[one-a], \in[one-b]


Regards,

Tobias

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

* Re: \reference[mark]{(\the\equationnumber)}
  2004-01-13 13:05       ` \reference[mark]{(\the\equationnumber)} Tobias Burnus
@ 2004-01-13 13:28         ` Albrecht Kauffmann
  0 siblings, 0 replies; 10+ messages in thread
From: Albrecht Kauffmann @ 2004-01-13 13:28 UTC (permalink / raw)




On Tue, 13 Jan 2004, Tobias Burnus wrote:

> Hi,
>
> On Tue, Jan 13, 2004 at 01:56:55PM +0100, Albrecht Kauffmann wrote:
> > in a former paper I used
> [...]
>
> How about
>
> \placeformula[one]
> \startformula
> \eqalignno{
>    a &= b & \formulanumber[one-a]{a}\cr
>    c &= d & \subformulanumber[one-b]{b}\cr
> }\stopformula
>
> \in[one],  \in[one-a], \in[one-b]
>
>
> Regards,
>
> Tobias

This is the placeformula mechanism. The problem is, that I used the
described way with \the\equationnumber in my earlier papers, with hundreds
of formulas. It would be needed to rewrite them all.

Greetings,
Albrecht


> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

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

* Re: \reference[mark]{(\the\equationnumber)}
       [not found]       ` <Pine.GSO.4.30.0401131346360.24069-100000@persius.rz.uni-po tsdam.de>
@ 2004-01-13 16:56         ` Hans Hagen
  0 siblings, 0 replies; 10+ messages in thread
From: Hans Hagen @ 2004-01-13 16:56 UTC (permalink / raw)


At 13:56 13/01/2004, you wrote:
>Hi all,
>
>in a former paper I used
>
>\newcount\equationnumber
>\equationnumber=0
>\def\eq{\advance\equationnumber by 1}%Formelzähler erhöhen
>\starttext
>\eq\reference[a]{(\the\equationnumber)}
>$$a\eqno(\the\equationnumber)$$%an equation

\expanded{\reference[a]{(\the\equationnumber)}}

or

\setupreferencing[expansion=command]

test file:

\starttext

\setupreferencing[expansion=command]

\typefile{\jobname.tuo}

\textreference[x]{\the\pageno}

\stoptext 

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

end of thread, other threads:[~2004-01-13 16:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-07 22:28 midaligned tabulate? Patrick Gundlach
2004-01-08  8:03 ` Willi Egger
2004-01-08  8:36   ` Hans Hagen
2004-01-08  8:52     ` Patrick Gundlach
2004-01-08  9:58       ` Hans Hagen
2004-01-13 12:56     ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
2004-01-13 13:05       ` \reference[mark]{(\the\equationnumber)} Tobias Burnus
2004-01-13 13:28         ` \reference[mark]{(\the\equationnumber)} Albrecht Kauffmann
     [not found]       ` <Pine.GSO.4.30.0401131346360.24069-100000@persius.rz.uni-po tsdam.de>
2004-01-13 16:56         ` \reference[mark]{(\the\equationnumber)} Hans Hagen
2004-01-08  8:37   ` midaligned tabulate? Patrick Gundlach

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