Steffen Wolfrum wrote:
Hi,
in order to write a command=... for \setuphead I am fighting with the following \framed:
\starttext \showframe
\def\TestFrame% {\hbox to \hsize\bgroup% \tbox{\midaligned\framed[frame=on,align=middle,width=0.85\textwidth]{{\kern0.75em}Test}}%
\egroup}
\TestFrame
%Test% <-
\stoptext
I only want the framed "Test" to be at the same vertical position as the plain "Test" (please compare).
Just how???
i'm not sure what you mean but \starttext \def\TestFrame {\dontleavehmode \inframed[align=middle,width=0.85\textwidth]{{\kern0.75em}Test}}% \TestFrame Test \stoptext puts them along side when making head commands, it often helps to put #1 as well as #2 in a framed and then box the whole a framed ends up as just a vbox with no depth (unless set) ----------------------------------------------------------------- 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 -----------------------------------------------------------------