Definire nuovi comandi
- What do newcommand, renewcommand, and providecommand do, and how do they differ?
- What is the difference between
\def
and\newcommand
? - What is the difference between Fragile and Robust commands?
Estratto, tradotto e adattatato da Dedicated symbol for [...] in quotations?
Definiamo un comando per stampare un simbolo di omissione ([...]) del testo nelle citazioni:
latex
\newcommand{\omissis}[]{%
[\dots\unkern]%
}
latex
\NewDocumentCommand{\omissis}{}{%
[\dots\unkern]%
}
La prima differenza che possiamo notare è nell'utilizzo di una notazione differente.