<div dir="ltr">Can you please send a minimal example showing how this works because all my attempts with your package so far failed.<br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 9:40 PM, Heiko Oberdiek <span dir="ltr"><<a href="mailto:heiko.oberdiek@googlemail.com">heiko.oberdiek@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On Mon, Oct 10, 2011 at 08:34:22PM +1100, Vafa Khalighi wrote:<br>
<br>
> Suppose you create a macro similar to \mytextbf, is there a way that you can<br>
> check if the text inside \mytextbf will stay on one line or more than one<br>
> (if the text inside \textbf statys on just one line do something , but if<br>
> stays on more than one line do something else). I guess this is a bit tricky<br>
> because:<br>
><br>
> 1) you could have shorter or longer lines<br>
><br>
> 2) you might start using \textbf at the middle or realy end of a specific<br>
> line<br>
><br>
> So is this checking doable?<br>
<br>
</div></div>Project zref, package zref-savepos.<br>
It uses \pdfsavepos from pdfTeX/LuaTeX/XeTeX (works independent from mode).<br>
<br>
Yours sincerely<br>
  Heiko Oberdiek<br>
_______________________________________________<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
Mailing list archives: <a href="http://tug.org/pipermail/texhax/" target="_blank">http://tug.org/pipermail/texhax/</a><br>
More links: <a href="http://tug.org/begin.html" target="_blank">http://tug.org/begin.html</a><br>
<br>
Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax" target="_blank">http://tug.org/mailman/listinfo/texhax</a><br>
Human mailing list managers: <a href="mailto:postmaster@tug.org">postmaster@tug.org</a><br>
</blockquote></div><br></div>