
この例は、マニュアルpgf
やりたいことは完璧に説明されていますが、長方形の境界線を破線で作成する必要があります。
\begin{tikzpicture}
\pgfsetcornersarced{\pgfpoint{5mm}{5mm}}
\pgfpathrectanglecorners{\pgfpointorigin}{\pgfpoint{3cm}{2cm}}
\pgfusepath{stroke}
\end{tikzpicture}
ありがとう!
答え1
次のサブセクションを読んでください\pgfsetdash
:
\documentclass{article}
\usepackage{pgf}
\begin{document}
\begin{pgfpicture}
\pgfsetcornersarced{\pgfpoint{5mm}{5mm}}
\pgfpathrectanglecorners{\pgfpointorigin}{\pgfpoint{3cm}{2cm}}
\pgfsetdash{{3pt}{2pt}}{0pt}
\pgfusepath{stroke}
\end{pgfpicture}
\end{document}
TikZでも同様です:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[
rounded corners=5mm,
dash pattern=on 3pt off 2pt,
] (0, 0) rectangle (3, 2);
\end{tikzpicture}
\end{document}