0

I am using scrartcl and I want to create a part in the center of a page like this

enter image description here

What should I do?

Maryà
  • 4,830

2 Answers2

1

I think this is what you need,

\documentclass{article}
\usepackage{color}


\begin{document}

\thispagestyle{empty}

\null\vfill
\begin{center}
\textbf{Part II} \\ \vspace{1\baselineskip}
\textcolor{red}{\textbf{BEAUTIFUL RESULTS}}
\end{center}
\vfill\clearpage

\end{document}

You may see this question.

ddas
  • 1,205
  • I thin this is not a good solution, since it is fully manual. What if the order of the part changes? What if you want to change the layout of the parts later? What if you want them in the ToC. I’d say it’s way better to use the appropriate sectioning command \part and adapt the layout (see my answer). – Tobi Mar 25 '16 at 07:56
  • @ddas: But I need this to appear on the content section. Do you have any idea? – Maryà Mar 25 '16 at 08:00
  • yes @Tobi you are absolutely right. @Sucre you should try @Tobi 's answer. There you can add the command \tableofcontents after \begin{document} to get it in the content section. – ddas Mar 25 '16 at 08:08
1

You should use the \part sectioning command and since you need parts and likely have a bigger document I’d say it is better to use scrbook or scrartcl:

\documentclass{scrbook}

\usepackage{xcolor}

% roman numbering
\renewcommand{\thepart}{\Roman{part}}
% remove dot after number
\renewcommand{\partformat}{\partname~\thepart}
% font for "Part X"
\setkomafont{partnumber}{\normalsize\rmfamily}
% font for part title
\setkomafont{part}{\Large\rmfamily\color{red}\MakeUppercase}

\begin{document}
\part{Beautiful result}
Test
\end{document}

If you want a part page in scrartcl see Make \part in scrartcl.

Tobi
  • 56,353