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 the following error:
Use of \@item doesn't match its definition. \new@ifnextchar ...served@d = #1\def \reserved@a {#2}\def \reserved@d {#3}\f...
Have I made a mistake? And if not, is there a solution?
\tempis as good as any other (usually undefined) command. It's just used for temporary storage. – egreg Aug 12 '13 at 22:42