I want to define a command with the same name, but a different number of parameters.
I'm considering something like this:
\documentclass{article}
\usepackage{hyperref}
\newcommand{\quelle}[1]{\textit{(Quelle: \url{#1})})}
\newcommand{\quelle}[2]{\textit{(Quelle: \url{#1} Absatz: #2)})}
\begin{document}
Test: \quelle{www.wikipedia.de}
Test: \quelle{www.wikipedia.de, sometext}
\end{document}
If I try to compile this, I get the following result:
Command \quelle already defined. ...2]{\textit{(Quelle: \url{#1} Absatz: #2)})}
Thank you for your help!
expl3
you could use\cs_new:Nn
\foo_bar:nn` or\cs_new:Nn \foo_bar:nnnn
for example, but those macros are not meant for user space