6

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}

1 Answer 1

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}
2
  • 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?
    – stx932
    Commented Jan 4, 2016 at 12:01
  • Then you can use \setpartpreamble. I have added an example in my answer.
    – esdd
    Commented Jan 4, 2016 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .