Trouble using Xstring to edit inputted parameter strings
I am trying to use \StrDel to modify a parameter to use within a command.
For example, say my .tex file contains:
\command{Word Anotherword}
and the .sty file I reference contains:
\newcommand{\dosomething}[1]{
\some{#1}
\thing{\StrDel{#1}{ }}
}
I want it so when the command is called, the commands it contains are
called as follows:
\some{Word Anotherword}
\thing{WordAnotherword}
So, in the second command /StrDel is used to delete the spaces in the
parameter. But this keeps generating an error. Have I made a mistake? And
if not, is there a solution? Thanks.
No comments:
Post a Comment