macros - \newcommand: Using one parameter as the default for the other - TeX - LaTeX Stack Exchange
Commands with optional arguments - Wiki
The Use of newcommand in GELLMU
auto completion - Autocompletion of new command with zero arguments with LaTeXTools - TeX - LaTeX Stack Exchange
8. Defining Commands
macros - naming argument and optional-argument for \def, \newcommand and newenvironment - TeX - LaTeX Stack Exchange
Part 4 - Overleaf, Editor de LaTeX online
TEX マクロプログラミング
latex – Water Programming: A Collaborative Research Blog
macros - naming argument and optional-argument for \def, \newcommand and newenvironment - TeX - LaTeX Stack Exchange
Advanced latex
macros - How to create a new command whose single parameter is able to apply to both "caption" and "path" parameters of `lstinputlisting` - TeX - LaTeX Stack Exchange
latex – Water Programming: A Collaborative Research Blog
TeXのカスタマイズをnewcommandでのりきる方法 - Qiita
LaTeX Programming | Chiu Yu Ko
macros - Bugs in conditional structure in a newcommand definition with optional arguments - TeX - LaTeX Stack Exchange