Why does every new \setupTABLE add more whitespace to the left of table?
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
2007/7/2, Hamid Kamrani
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
Got it. Thanks. I didn't know that the chars after setupTABLE could
disturb the alignment.
On 7/3/07, Wolfgang Schuster
2007/7/2, Hamid Kamrani
: 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 ___________________________________________________________________________________
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
2007/7/3, Hamid Kamrani
: 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 ___________________________________________________________________________________
2007/7/4, Hamid Kamrani
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
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
2007/7/4, Hamid Kamrani
: 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 ___________________________________________________________________________________
2007/7/4, Hamid Kamrani
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
participants (2)
-
Hamid Kamrani
-
Wolfgang Schuster