This is somewhat a follow-up question to xskak: Switching between notation styles.
I would like to create a command for a pawn move that either gives the name of the file in which the pawn is placed or gives the pawn symbol, depending on whether I have invoked the command \usetextfig or \usesymfig in the document.
I hope the following explains what I would like:
\newcommand*\bonde[1]{\if\usetextfig#1\else\figsymbol{P}}
and then use
\bonde{e}
to indicate a pawn in the e-file, but it doesn't work.
Can anyone help me create such a command?
I've tried looking at etoolbox documentation but couldn't figure out if there was anything useful for this.
