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} Thanks in advance for any advice and Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
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 -----------------------------------------------------------------
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}
\showframe \startbuffer \setlocalhsize \dontleavehmode\framed[width=\hsize] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\hsize }} \par \dontleavehmode\framed[width=\localhsize] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\localhsize }} \par \dontleavehmode\framed[width=\textwidth] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\textwidth }} \par \dontleavehmode\framed[width=\makeupwidth]{\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\makeupwidth}} \par \dontleavehmode\framed[width=local] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{local}} \par \dontleavehmode\blackrule[width=\hsize] \par \dontleavehmode\blackrule[width=\localhsize] \par \dontleavehmode\blackrule[width=\textwidth] \par \dontleavehmode\blackrule[width=\makeupwidth] \par \dontleavehmode\ruledhbox to \hsize {x\hss x} \par \dontleavehmode\ruledhbox to \localhsize {x\hss x} \par \dontleavehmode\ruledhbox to \textwidth {x\hss x} \par \dontleavehmode\ruledhbox to \makeupwidth{x\hss x} \par \stopbuffer \starttext \startitemize \startitem \getbuffer \stopitem \stopitemize \getbuffer \stoptext ----------------------------------------------------------------- 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 -----------------------------------------------------------------
This is an *immense* help... Thanks a million!!
Best wishes
Idris
On Fri, 17 May 2013 17:08:15 -0600, Hans Hagen
\showframe \startbuffer \setlocalhsize \dontleavehmode\framed[width=\hsize] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\hsize }} \par \dontleavehmode\framed[width=\localhsize] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\localhsize }} \par \dontleavehmode\framed[width=\textwidth] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\textwidth }} \par \dontleavehmode\framed[width=\makeupwidth]{\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{\makeupwidth}} \par \dontleavehmode\framed[width=local] {\the\hsize,\the\localhsize,\setlocalhsize\the\localhsize,\type{local}} \par \dontleavehmode\blackrule[width=\hsize] \par \dontleavehmode\blackrule[width=\localhsize] \par \dontleavehmode\blackrule[width=\textwidth] \par \dontleavehmode\blackrule[width=\makeupwidth] \par \dontleavehmode\ruledhbox to \hsize {x\hss x} \par \dontleavehmode\ruledhbox to \localhsize {x\hss x} \par \dontleavehmode\ruledhbox to \textwidth {x\hss x} \par \dontleavehmode\ruledhbox to \makeupwidth{x\hss x} \par \stopbuffer \starttext \startitemize \startitem \getbuffer \stopitem \stopitemize \getbuffer \stoptext
-- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523
participants (2)
-
Hans Hagen
-
Idris Samawi Hamid ادريس سماوي حامد