Open alpenwasser opened 7 years ago
Having optional arguments inside a \def
or a \newcommand
works:
\documentclass[a4paper,11pt]{article}
\usepackage{lipsum}
\def\mytest{\lipsum[2]}
\newcommand*\anothertest{\lipsum[3]}
\begin{document}
\mytest
\anothertest
\end{document}
Various code snippets which might be of use at some point.