At this point I usually recommend the
titlesec package. But in this case this won't help because the package doesn't support formatting the
\part command. So we have to pick up the corresponding code from the »article« class and modify it (see code below).
From the typographical point of view it is not a good idea to have hyphenation in headings. And the definition of the
\part command respects that as it includes
\raggedright. However, you can dot it (see comments in the code below). But the result in this case is still a part title with no hyphenation.
Code: Select all
\documentclass[11pt,a4paper,danish]{article}
\usepackage[T1]{fontenc} % enable Cork Encoding
\usepackage[utf8]{inputenc} % Input encoding for direct insertion of special national characters
\usepackage{babel}
\makeatletter
\def\@part[#1]#2{%
\ifnum \c@secnumdepth >\m@ne
\refstepcounter{part}%
\addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
\else
\addcontentsline{toc}{part}{#1}%
\fi
{\parindent \z@ %\raggedright % Commented \raggedright
\interlinepenalty \@M
\normalfont
\ifnum \c@secnumdepth >\m@ne
\Large\bfseries\hfil\partname~\thepart\hfil % added \hfil … \hfil for centering
\par\nobreak
\fi
\huge \bfseries #2%
\markboth{}{}\par}%
\nobreak
\vskip 3ex
\@afterheading}
\makeatother
\begin{document}
\part{Beskrivelse af elever og læringsmiljø, baseret p{\aa} klasserumsstudier}
\end{document}
Finally some remarks not related to the problem. With Danish you are writing in a European language. So you should turn on the right font encoding to improve hyphenation (see code above). And I guess that in your actual document you turned on the right language by
babel for correct hyphenation patterns.
Thorsten