* Why does every new \setupTABLE add more whitespace to the left of table?
@ 2007-07-02 14:04 Hamid Kamrani
2007-07-03 6:20 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Hamid Kamrani @ 2007-07-02 14:04 UTC (permalink / raw)
To: mailing list for ConTeXt users
What's the reaosn for this behaviour?
Try:
\starttext
\startbuffer
\start
\setupTABLE[frame=on]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\startbuffer
\start
\setupTABLE[frame=on]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE\bTR\bTD text \eTD\eTR\eTABLE
\stop
\stopbuffer
\framed[offset=overlay]{\getbuffer}
\stoptext
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-02 14:04 Why does every new \setupTABLE add more whitespace to the left of table? Hamid Kamrani
@ 2007-07-03 6:20 ` Wolfgang Schuster
2007-07-03 16:28 ` Hamid Kamrani
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-03 6:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/7/2, Hamid Kamrani <hamid.kamrani@gmail.com>:
> What's the reaosn for this behaviour?
>
> Try:
>
> \starttext
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
>
> \startbuffer
> \start
> \setupTABLE[frame=on]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> \stop
> \stopbuffer
> \framed[offset=overlay]{\getbuffer}
> \stoptext
Hi,
you comment chars after your \setupTABLE commands.
Your \start/\stop pair can also be removed in your examples,
\framed keeps the \setups local.
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-03 6:20 ` Wolfgang Schuster
@ 2007-07-03 16:28 ` Hamid Kamrani
2007-07-04 5:36 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Hamid Kamrani @ 2007-07-03 16:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
Got it. Thanks. I didn't know that the chars after setupTABLE could
disturb the alignment.
On 7/3/07, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> 2007/7/2, Hamid Kamrani <hamid.kamrani@gmail.com>:
> > What's the reaosn for this behaviour?
> >
> > Try:
> >
> > \starttext
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> >
> > \startbuffer
> > \start
> > \setupTABLE[frame=on]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \setupTABLE[c][1][align=right]
> > \bTABLE\bTR\bTD text \eTD\eTR\eTABLE
> > \stop
> > \stopbuffer
> > \framed[offset=overlay]{\getbuffer}
> > \stoptext
>
> Hi,
>
> you comment chars after your \setupTABLE commands.
>
> Your \start/\stop pair can also be removed in your examples,
> \framed keeps the \setups local.
>
> 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-03 16:28 ` Hamid Kamrani
@ 2007-07-04 5:36 ` Wolfgang Schuster
2007-07-04 7:19 ` Hamid Kamrani
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-04 5:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/7/3, Hamid Kamrani <hamid.kamrani@gmail.com>:
> Got it. Thanks. I didn't know that the chars after setupTABLE could
> disturb the alignment.
>
only in horizontal mode, e.g. in \hbox or \framed
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-04 5:36 ` Wolfgang Schuster
@ 2007-07-04 7:19 ` Hamid Kamrani
2007-07-04 7:32 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Hamid Kamrani @ 2007-07-04 7:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
Not exactly. I only framed it in order to demonstrate my problem. You
may encounter it even when you don't explicitly frame the table. I
became aware of it when I noticed that my legends under the table were
slightly off to the left. That means that the code that joins the
legend to the table must put an invisible frame around the table.
On 7/4/07, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> 2007/7/3, Hamid Kamrani <hamid.kamrani@gmail.com>:
> > Got it. Thanks. I didn't know that the chars after setupTABLE could
> > disturb the alignment.
> >
>
> only in horizontal mode, e.g. in \hbox or \framed
>
> 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-04 7:19 ` Hamid Kamrani
@ 2007-07-04 7:32 ` Wolfgang Schuster
2007-07-04 7:46 ` Hamid Kamrani
0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-04 7:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/7/4, Hamid Kamrani <hamid.kamrani@gmail.com>:
> Not exactly. I only framed it in order to demonstrate my problem. You
> may encounter it even when you don't explicitly frame the table. I
> became aware of it when I noticed that my legends under the table were
> slightly off to the left. That means that the code that joins the
> legend to the table must put an invisible frame around the table.
\starttext
\showframe
\startbuffer
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\bTABLE
\bTR\bTD text \eTD\eTR
\eTABLE
\stopbuffer
% vertical mode
\getbuffer
% horizontal mode
\dontleavehmode\getbuffer
\stoptext
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-04 7:32 ` Wolfgang Schuster
@ 2007-07-04 7:46 ` Hamid Kamrani
2007-07-04 8:34 ` Wolfgang Schuster
0 siblings, 1 reply; 8+ messages in thread
From: Hamid Kamrani @ 2007-07-04 7:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
This is what I meant:
\starttext
\startbuffer
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[c][1][align=right]
\setupTABLE[r][1][topframe=on,bottomframe=on]
\bTABLE
\bTR\bTD \input knuth \relax \eTD\eTR
\eTABLE
\stopbuffer
% vertical mode
\getbuffer
% horizontal mode
%\dontleavehmode\getbuffer
\placetable[frame=off]
{whow}
{\placelegend[align={right}]
{\dontleavehmode\getbuffer}
{NOTE: hmode or not hmode the legend is still off to the left}
}
\stoptext
On 7/4/07, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:
> 2007/7/4, Hamid Kamrani <hamid.kamrani@gmail.com>:
> > Not exactly. I only framed it in order to demonstrate my problem. You
> > may encounter it even when you don't explicitly frame the table. I
> > became aware of it when I noticed that my legends under the table were
> > slightly off to the left. That means that the code that joins the
> > legend to the table must put an invisible frame around the table.
>
> \starttext
>
> \showframe
>
> \startbuffer
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \bTABLE
> \bTR\bTD text \eTD\eTR
> \eTABLE
> \stopbuffer
>
> % vertical mode
> \getbuffer
>
> % horizontal mode
> \dontleavehmode\getbuffer
>
> \stoptext
>
> 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Why does every new \setupTABLE add more whitespace to the left of table?
2007-07-04 7:46 ` Hamid Kamrani
@ 2007-07-04 8:34 ` Wolfgang Schuster
0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2007-07-04 8:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
2007/7/4, Hamid Kamrani <hamid.kamrani@gmail.com>:
> This is what I meant:
>
> \starttext
> \startbuffer
\startsetups table
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[c][1][align=right]
> \setupTABLE[r][1][topframe=on,bottomframe=on]
> \bTABLE
> \bTR\bTD \input knuth \relax \eTD\eTR
> \eTABLE
> \stopbuffer
\stopsetups
>
> % vertical mode
> \getbuffer
>
> % horizontal mode
> %\dontleavehmode\getbuffer
>
> \placetable[frame=off]
> {whow}
> {\placelegend[align={right}]
> {\dontleavehmode\getbuffer}
{\setups{table}} % the second argument is a hbox
> {NOTE: hmode or not hmode the legend is still off to the left}
> }
>
> \stoptext
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-07-04 8:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-02 14:04 Why does every new \setupTABLE add more whitespace to the left of table? Hamid Kamrani
2007-07-03 6:20 ` Wolfgang Schuster
2007-07-03 16:28 ` Hamid Kamrani
2007-07-04 5:36 ` Wolfgang Schuster
2007-07-04 7:19 ` Hamid Kamrani
2007-07-04 7:32 ` Wolfgang Schuster
2007-07-04 7:46 ` Hamid Kamrani
2007-07-04 8:34 ` Wolfgang Schuster
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).