[texhax] checking if a piece of text stays on one line or more than one line

Vafa Khalighi vafaklg at gmail.com
Mon Oct 10 11:34:22 CEST 2011


Hi

Suppose you create a macro similar to \mytextbf, is there a way that you can
check if the text inside \mytextbf will stay on one line or more than one
(if the text inside \textbf statys on just one line do something , but if
stays on more than one line do something else). I guess this is a bit tricky
because:

1) you could have shorter or longer lines

2) you might start using \textbf at the middle or realy end of a specific
line

So is this checking doable?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20111010/9357c82c/attachment-0001.html>


More information about the texhax mailing list