Are there any commands containing "if", similar to \ifnum, preferably in LaTeX (rathar than TeX)?
For example, is there anything like \ifstring? (I am not after \ifstring only, I want to know which options are available, if any).
|
|
||||
|
|
The There is something like
or
In XeTeX there's In the pseudocodes above "string1" and "string2" can be also macros, which will be expanded similarly to what happens with |
|||||||||||||||
|
|
The |
|||
|
|
An alternative is
|
||||
|
|
|
I have been using the xstring package for these kind of situations. See for example Using xstring to check .tex file name. |
|||
|
|