
두 장식 사이에 텍스트를 수직 중앙에 배치하려면 어떻게 해야 합니까? 세 줄을 에 넣으면 \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
간단한 \raisebox
작업은 다음과 같습니다.
\documentclass{article}
\usepackage{pgfornament}
\usepackage{array, makecell}
\usepackage[usestackEOL]{ stackengine}
\begin{document}
\begin{center}
\pgfornament[width=4cm]{88}\\
\raisebox{-0.5\height}{$\mathcal{SP}$}\\
\pgfornament[width=4cm]{88}
\end{center}
\end{document}
답변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}