5

Hi I would like to insert one of the psvectorian ornaments between the part number and part title.

It should look something like this:

enter image description here Here is my MWE:

\documentclass{scrbook}
\usepackage{psvectorian}
\begin{document}
\part{Part Name}
% \psvectorian[height=1cm]{102}
\end{document}
6

Redefine \partheadmidvskip to insert the ornament:

\renewcommand\partheadmidvskip{%
  \par\nobreak\vspace*{\baselineskip}%
  \psvectorian[height=1cm]{102}%
  \par\nobreak\vspace*{\baselineskip}%
}

enter image description here

Code:

\documentclass{scrbook}
\usepackage{psvectorian}
\renewcommand\partheadmidvskip{%
  \par\nobreak\vspace*{\baselineskip}%
  \psvectorian[height=1cm]{102}%
  \par\nobreak\vspace*{\baselineskip}%
}
\begin{document}
\part{Part Name}
\psvectorian[height=1cm]{102}
\end{document}

Update: If you want to insert the ornament over (o) or under (u) an unnumbered part as mentioned in a comment you can use \setpartpreamble before this \part* command:

\setpartpreamble[o]{%
  \centering\psvectorian[height=1cm]{102}%
  \par\nobreak\vspace*{\baselineskip}%
}
\part*{Unnumbered Part}

enter image description here

Code:

\documentclass{scrbook}
\usepackage{psvectorian}
\renewcommand\partheadmidvskip{%
  \par\nobreak\vspace*{\baselineskip}%
  \psvectorian[height=1cm]{102}%
  \par\nobreak\vspace*{\baselineskip}%
}
\begin{document}
\setpartpreamble[o]{%
  \centering\psvectorian[height=1cm]{102}%
  \par\nobreak\vspace*{\baselineskip}%
}
\part*{Unnumbered Part}
Text
\part{Numbered Part}
Text
\end{document}
  • Thank you, this works perfectly except in the case when part is made with the use of \part*{Part Name}. Do you by any chance know how to change that too? – eklisiarh Jan 4 '16 at 12:01
  • Then you can use \setpartpreamble. I have added an example in my answer. – esdd Jan 4 '16 at 17:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.