I am using various macros that I have fine-tuned with units like pt and cm. I use those macros normally in certain places (say, in main body text or in footnote text). To properly generalize those macros, I would like to replace the absolute units by relative ones.
Say I have a macro \newcommand*{\aalso}{\textsl{and also}\hspace{1.1pt}}. Say I normally use that macro in footnotes. But now I realize that I made a mistake and would like to change the length 1.1pt to something of the form ...em so that I can use the macro elsewhere. How do I get the right number? I assume that the right way is to define some macro like \emConverter{1.1pt} that, if issued in a footnote context, gives me the length of 1.1pt in a footnote context converted to a relative length in em. It doesn't need to be a LaTeX-parsable value; it's okay if this is just printed out directly into the document, for me to then manually write the new em-value into the source code.
Some relevant questions:




em,exthey should be correct independent of if they are in the footnote. I don't think it makes sense to convert based on the actual footnote value as then they won't scale if the fonts are changed. – Peter Grill Feb 23 '13 at 07:09\begin{document} In text \verb|\hspace{1.0em}| is x\hspace{1.0em}x. \footnote{In footnote this space is smaller: x\hspace*{1.0em}x.} \end{document}`.
– Peter Grill Feb 23 '13 at 07:13em-value that is exactly right in the original context where I fine-tuned the (say)pt-value). – Lover of Structure Feb 23 '13 at 15:21