On 5/17/2013 5:03 PM, Idris Samawi Hamid ادريس   سماوي حامد wrote:
Dear gang,

Is there a \dimen variable for the local key for the width of a text
column? Take a look at the attached pdf: Clearly local is different from
\textwidth and \makeupwidth.

=============
\starttext
\framed[width=\textwidth,frame=on]{\type{\textwidth}}
\framed[width=\makeupwidth,frame=on]{\type{\makeupwidth}}
\framed[width=local,frame=on]{\type{local}}

\startitemize
\item \framed[width=\textwidth,frame=on]{\type{\textwidth}}
\framed[width=\makeupwidth,frame=on]{\type{\makeupwidth}}
\item \framed[width=local,frame=on]{\type{local}}
\stopitemize
\stoptext
=============

I'm working on a macro that depends on the local width and I need to be
able to do work with fractions of the local width, e.g.

\framed[width=0.9\localwidth]{local width}

sometimes you can use \localhsize, in some cases \hsize is ok, and there's also \setlocalhsize that calculates \localhsize

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to