I'd like to be able to define a macro, say, \def\testit{<something>} and then test to see what <something> is. If <something> is a dimension (e.g, 4in) then I can do
\resizebox{4in}{<thing to be resized>}
otherwise (e.g,. <something>=0.75) I'll do
\scalebox{0.75}{<thing to be scaled>}
\testitis defined? In a boolean flag, for example. – GuM Jul 17 '16 at 00:23\testit. Also unsure what is meant by 'in a boolean flag'. – sgmoye Jul 17 '16 at 00:43ifthenpackage: if you have a TeXLive distribution, just open a terminal emulator window and typetexdoc ifthen. After that, I suggest reading the documentation of thexifthenpackage, too (texdoc xifthen). – GuM Jul 17 '16 at 01:08ifthendocumentation earlier today. Fortunately I found an answer in A. Ellet's answer to http://tex.stackexchange.com/questions/138737/test-whether-passed-parameter-is-a-number-possibly-floating-point-or-dimension?rq=1 – sgmoye Jul 17 '16 at 01:38