Tag Info

New answers tagged

3

Parameters can be used only in the scope of a macro definition, so your ##2 in the file is meaningless. \begin{filecontents}{test-disputeUS} \section{Governing law. Arbitration} \label{sec:dispute} The parties agree that the Agreement shall be governed by the laws of the State of \ifstr{\control}{DE}{Delaware}{New York}, USA, without giving effect to its ...


3

You could use the xparse package which offers great possibilities for defining user commands: My First attempt: \usepackage{xparse} \DeclareDocumentCommand{\mymat}{o m o} {% \IfNoValueTF{#1} {\IfNoValueTF{#3}{\mathbf{#2}}{\mathbf{#2}^{#3}}} {\IfNoValueTF{#3}{\mathbf{#2}_{#1}}{\mathbf{#2}_{#1}^{#3}}} } Egregs simpler solution with IfValueT ...



Top 50 recent answers are included