* Labelling with textext
@ 2010-02-13 20:46 Troy Henderson
2010-02-14 7:28 ` Aditya Mahajan
0 siblings, 1 reply; 2+ messages in thread
From: Troy Henderson @ 2010-02-13 20:46 UTC (permalink / raw)
To: ntg-context
I'm trying to typeset a numerical label (in math mode) and have space
for a - sign (but not actually typeset the -) after the number in the
case where the number itself is negative. I am trying this
label.bot(textext("$" & decimal(x) & "\hphantom{-}$"),(x*u,ay*u));
which fails. If I remove the \hphantom command, i.e.,
label.bot(textext("$" & decimal(x) & "$"),(x*u,ay*u));
the command is successful, but the number being labeled is not exactly
horizontally centered below the point in question since the - symbol
preceding the number pushes it a little to the right. Thoughts on how
to achieve my desired \hphantom effect?
Thanks,
--
Troy Henderson
Assistant Professor
Department of Mathematics
University of Mobile
http://www.tlhiv.org
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-14 7:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13 20:46 Labelling with textext Troy Henderson
2010-02-14 7:28 ` Aditya Mahajan
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).