ラテックスドキュメント\path
内の定義内でコマンドを使用したいと思います。\newcommand
ただし、私の定義は、期待どおりに機能しません。これの最小限の例は
\documentclass[12pt]{article}
\usepackage{path}
\newcommand{\code}[1]{\path!{#1}!}
\begin{document}
Testing the path command with: \code{this.texts.should.not.be.typeseted.on.a.single.line}.
Testing the path command with: \path!this.texts.should.not.be.typeseted.on.a.single.line!.
\end{document}
新しいコマンドを定義するときに発生しているエラーは何ですか?