I'm pretty new to Latex and I'm not shure if this is the right Section, so please be gentle to me and my questions

Is it possible to declare options as a newcommand or similar to use it multiple times.
I have some TextFields in my document defined like this:
\TextField[name=name,borderwidth=0.5pt,bordercolor={0.2 0.1 0.4},width=35mm]{}
The Options
borderwidth
, bordercolor
and width
are always be the same. How can I define this Options as a \newcommand
?If I define a
Code: Select all
\newcommand{borderwidth=0.5pt,bordercolor={0.2 0.1 0.4},width=35mm}
Code: Select all
package kvsetkeys error undefined key borderwidth=0.5pt,bordercolor={0.2 0.1 0.4},width=35mm