I have a document with many \description
environments. All of them are defined like this:
\begin{description}[leftmargin=2.5cm,style=sameline]
\item[\texttt{foo}] bar
\item[\hspace{7mm}\texttt{sub}] inner
\end{description}
How can I use \renewcommand
(or something similar) to not always have to write [leftmargin=2.5cm,style=sameline]
and also have the argument of \item
automatically be in \texttt
and optionally be preceded by some space \hspace{7mm}
?
Other solutions are also greatly appreciated.