From: "Yue Wang" <yuleopen@gmail.com>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: math detail
Date: Sun, 14 Dec 2008 12:03:03 +0800 [thread overview]
Message-ID: <68bfdc900812132003n63749akbe322c7d4c62ef1e@mail.gmail.com> (raw)
In-Reply-To: <8843E9C7-9D08-4571-8E26-502D13EE4024@st.estfiles.de>
>
> I see the pictures and they demonstrate how weird the problem is:
> In the case of "V\high{0}" the "0" is higher than in "$V^0$",
> and yet the interline space gets NOT disturbed!!!
>
> Or put it the other way round:
> You use $V^0$, which doesn't move the "0" as high as "\high{0}" would do,
> and nevertheless the distance to the line above gets increased!!!
>
TeX did this quite right, I think.
The bounding box of the inline formula looks ok.
Concerning your \high stuffs:
you can read the code and it is quite clear that the box dimension has
nothing to do with those within \high{}, no matter where the 0 is
placed, the bounding box of "V\high{0}" is still the same:
\def\dodohighlow
{\ifx\fontsize\empty
\ifmmode
\ifnum\fam<0 \tx \else \holamathfont \fi
\else
\tx
\fi
\else
\tx
\fi}
\def\dohighlow#1#2#3#4#5% todo, named fontdimens
{\dontleavehmode
\bgroup
\scratchdimen\ifdim\fontexheight\textfont2=1ex #2\textfont2\else #3ex\fi
\advance\scratchdimen #4ex
\kern.1ex
\setbox\scratchbox\hbox{#1\scratchdimen\hbox{\dodohighlow#5}}%
\ht\scratchbox\strutheight
\dp\scratchbox\strutdepth
\box\scratchbox
\egroup}
\unexpanded\def\high{\dohighlow\raise\mathsupnormal{.86}{0}}
\unexpanded\def\low {\dohighlow\lower\mathsubnormal{.48}{0}}
>
> 1) This doesn't make sense, does it?
> 2) Why gets the line space increased even though the "0" is not that high?!
> 3) How can the behaviour of "$V^0$" be adjusted in such way as "\high{0}"
> does
if it is quite right, why adjust it?
> (i.e. set the "0" but dont move away from the line above)
>
>
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2008-12-14 4:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-13 14:04 Steffen Wolfrum
[not found] ` <68bfdc900812130705y11b6e1ajcf4df53d8517c20c@mail.gmail.com>
[not found] ` <68bfdc900812130711h897f5eah75986f7fafb9bcc0@mail.gmail.com>
2008-12-13 17:06 ` Steffen Wolfrum
2008-12-13 18:19 ` Yue Wang
2008-12-13 20:05 ` Steffen Wolfrum
2008-12-14 4:03 ` Yue Wang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=68bfdc900812132003n63749akbe322c7d4c62ef1e@mail.gmail.com \
--to=yuleopen@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).