ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: TABLE in item
       [not found] <mailman.1.1161943202.25312.ntg-context@ntg.nl>
@ 2006-10-27 10:28 ` Duncan Hothersall
  2006-10-28 11:07   ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Duncan Hothersall @ 2006-10-27 10:28 UTC (permalink / raw)


I said:

> \starttext
> \startitemize[n,broad]
> \item Hello world!
> \bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
> First item continues.
> \item Second item.
> \stopitemize
> \stoptext

What I *meant* (sorry!) was

\starttext
\startitemize[n,broad]
\item Hello world!
\bTABLE[split=yes]\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
First item continues.
\item Second item.
\stopitemize
\stoptext

I know that in the first example I can put \dontleavehmode before the
table and things work okay.

In the second example (with split=yes) this doesn't work. Is there a way
of making things line up when split=yes? (I'm typesetting an accounting
book...).

Thanks again,

Duncan

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

* Re: TABLE in item
  2006-10-27 10:28 ` TABLE in item Duncan Hothersall
@ 2006-10-28 11:07   ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2006-10-28 11:07 UTC (permalink / raw)


Duncan Hothersall wrote:
> I said:
>
>   
>> \starttext
>> \startitemize[n,broad]
>> \item Hello world!
>> \bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
>> First item continues.
>> \item Second item.
>> \stopitemize
>> \stoptext
>>     
>
> What I *meant* (sorry!) was
>
> \starttext
> \startitemize[n,broad]
> \item Hello world!
> \bTABLE[split=yes]\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
> First item continues.
> \item Second item.
> \stopitemize
> \stoptext
>
> I know that in the first example I can put \dontleavehmode before the
> table and things work okay.
>
> In the second example (with split=yes) this doesn't work. Is there a way
> of making things line up when split=yes? (I'm typesetting an accounting
> book...).
>   
\let\beforeTABLEsplitbox\relax
\let\afterTABLEsplitbox \relax
\let\beforeTABLEbox     \relax
\let\afterTABLEbox      \relax

you can play with these macros since they are the formal hooks

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.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* Re: TABLE in item
       [not found] <mailman.1.1162119602.3415.ntg-context@ntg.nl>
@ 2006-10-29 13:23 ` Duncan Hothersall
  0 siblings, 0 replies; 5+ messages in thread
From: Duncan Hothersall @ 2006-10-29 13:23 UTC (permalink / raw)


> \let\beforeTABLEsplitbox\relax
> \let\afterTABLEsplitbox \relax
> \let\beforeTABLEbox     \relax
> \let\afterTABLEbox      \relax
> 
> you can play with these macros since they are the formal hooks

Hans,

I played with

\let\beforeTABLEsplitbox\dontleavehmode
\def\afterTABLEsplitbox{\relax\dontleavehmode}
\let\beforeTABLEbox\dontleavehmode
\let\afterTABLEbox\relax

which gives the right indents but stops the tables splitting.

I think I will just have to live with non-splitting tables for now,
unless you can suggest a better redefinition?

Thanks very much for the help anyway.

Duncan

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

* Re: TABLE in item
  2006-10-27  9:53 Duncan Hothersall
@ 2006-10-28 11:04 ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2006-10-28 11:04 UTC (permalink / raw)


Duncan Hothersall wrote:
> Very simple question which has suddenly stumped me:
>
> \starttext
> \startitemize[n,broad]
> \item Hello world!
> \bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
> First item continues.
> \item Second item.
> \stopitemize
> \stoptext
>
> How to get the TABLE inside the first item to align with the item
> content, rather than flush left?
>
> T
\starttext

\installframedlocator {table}
  {}
  {\hbox{\lower\dimexpr\dp\strutbox+.25ex+.4pt\relax\box\framebox}}

\defineframed
  [inlinetable]
  [location=table,
   offset=overlay,
   frame=off]

\startitemize[n,broad]
\item Hello world!
\inlinetable{\bTABLE\bTR\bTD \strut Little\eTD \bTD \strut table\eTD\eTR\eTABLE}
First item continues.
\item Second item.
\stopitemize
\stoptext


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

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

* TABLE in item
@ 2006-10-27  9:53 Duncan Hothersall
  2006-10-28 11:04 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Duncan Hothersall @ 2006-10-27  9:53 UTC (permalink / raw)


Very simple question which has suddenly stumped me:

\starttext
\startitemize[n,broad]
\item Hello world!
\bTABLE\bTR\bTD Little\eTD \bTD table\eTD\eTR\eTABLE
First item continues.
\item Second item.
\stopitemize
\stoptext

How to get the TABLE inside the first item to align with the item
content, rather than flush left?

Thanks,

Duncan

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

end of thread, other threads:[~2006-10-29 13:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1161943202.25312.ntg-context@ntg.nl>
2006-10-27 10:28 ` TABLE in item Duncan Hothersall
2006-10-28 11:07   ` Hans Hagen
     [not found] <mailman.1.1162119602.3415.ntg-context@ntg.nl>
2006-10-29 13:23 ` Duncan Hothersall
2006-10-27  9:53 Duncan Hothersall
2006-10-28 11:04 ` 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).