
2 つの装飾の間にあるテキストを垂直方向に中央揃えにするにはどうすればよいでしょうか。3 本の線を配置すると、\fbox
ほぼ中央揃えに見えますが、完全に中央揃えにはなっていません。
MWE:
\documentclass{article}
\usepackage{pgfornament}
\begin{document}
\begin{center}
\pgfornament[width=4cm]{88}\\
$\mathcal{SP}$\\
\pgfornament[width=4cm]{88}
\end{center}
\end{document}
答え1
答え2
パッケージに付属するドキュメントの読み方を学ぶ必要があります。後ろの例は、この解決策のヒントになります。
\begin{tikzpicture}
\node at (0,1) {\pgfornament[width=4cm,anchor=north]{88}};
\node at (0,.5) {$\mathcal{SP}$};
\node at (0,0) {\pgfornament[width=4cm,anchor=north]{88}};
\end{tikzpicture}