How can I detect if I am at a point in the source where I can end a text line, for example, with \\[5pt]?
I would like to have something like
\ifTEST \\[5pt]\else\vspace*{5pt}\fi
but I do not know what "TEST" might be.
|
How can I detect if I am at a point in the source where I can end a text line, for example, with I would like to have something like
but I do not know what "TEST" might be. |
||||
|
|
|
You can test for horizontal mode like so:
although it's often a sign that something else is wrong if you are needing to do this? |
|||||||||||
|
|
You can also use the primitive |
|||
|
|