On 4/19/07, Vyatcheslav Yatskovsky wrote:
> Hello Mojca,
>
> Is there need for \strut at all? The definitions

No. You get it by default unless you explicitely disable it. I just
didn't understand why you wanted to set the height explicitely.

> \def\hotkey#1{\inframed[corner=00, offset=0pt]{\ #1\ }}
>
> and
>
> \def\hotkey#1{\inframed[corner=00,offset=0pt]{\strut\ #1\ }}
>
> work equally well and I can see no difference.
>
> I (wrongly) supposed that \strut version can prevent the frame from growing 
> in height, but when I set offset more then zero, the height is increased too.

Strut only prevents frame from shinking, not from growing. It's just
an invisible placeholder. If you provide higher material, the box will
grow.

> In your original version, only the offset option was omitted, so that  frames 
> was bigger by default. With offset=0pt they look just pretty.
> (Until there are possibility to control width/height or xoffset/yoffset 
> separately).
>
> Thanks a lot.
>
> Best,
> Vyatcheslav
>
>
>
> > On 4/19/07, Mojca Miklavec <[EMAIL PROTECTED]> wrote:
> >> Hello Hans,
>
> >> I've found the following sentence in core-rul.tex:
>
> >> %D The last conditional takes care of the special situation of
> >> %D in||line \inframed[height=3cm]{framed} boxes. Such boxes have
> >> %D to be \inframed{aligned} with the running text.
>
> >> But the behaviour seems either broken or perhaps I didn't understand
> >> the concept. The text inside bigger \inframed command doesn't seem to
> >> be aligned properly:
>
> >> The last conditional takes care of the special situation of in||line
> >> \inframed[height=3cm]{framed} boxes. Such boxes have to be
> >> \inframed{aligned} with the running text.
>
> >> Thanks a lot,
> >>     Mojca
>
> >> PS to Yatskovsky: I didn't realize that \inframed was indeed only a
> >> synonym for "location=low".
>
> > The culprit most probably lies here:
>
> > \installframedlocator \v!low
> >   {}
> >   {\doprelocframedbox\strutdp
> >    \setbox\framebox\hbox{\lower\scratchdimen\box\framebox}%
> >    \ht\framebox\strutht
> >    \dp\framebox\strutdp
> >    \box\framebox}
>
> > The box is lowered for "strut depth" + line width + offset, without
> > taking the extra parameter "height=..." into account.
>
>
> > For Yatskovsky: you can still use something like
> >     \def\hotkey#1{\inframed[corner=00,offset=5pt]{\strut\ #1\ }}
> > if you need to have bigger offset (offset=...) and if you want all
> > your hotkeys to be equally heigh (\strut, although I believe that
> > strut is already there by default).
>
> > But the "forgotten case" could or should still be solved ...
>
> > Mojca
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to