I want to redefine the chapter headings using some code that I took from a friend. It works fine when I create a dvi and I see it in Okular (it doesn't look fine using Evince), but when I try generate a pdf either with pdflatex or dvipdf, the headings look wrong. I've no idea what the problem can be.
Here is an example. Thanks in advance.
\documentclass{report}
\usepackage{psboxit}
\usepackage{pstricks}
% Title for chapters
\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1ex \hfill \kern \z@}
\def\@makechapterhead#1{%
\reset@font
\parindent \z@
\vspace*{10\p@}%
\hbox{%
\vbox{%
\hsize=2cm%
\begin{tabular}{c}
\scshape \strut \@chapapp{} \\
\psboxit{box 0 0 0 setrgbcolor fill}{%
\vrule depth 8em width 0pt%
\vrule height 0pt depth 0pt width 10pt%
{\white \LARGE \bfseries
\strut \vrule height 1em depth 0pt width 0pt
\thechapter}%
\vrule height 0pt depth 0pt width 10pt%
}
\end{tabular}%
}%
\vbox{%
\advance\hsize by -2cm
\hrule height 0.4pt depth 0pt width \hsize
\par
\vskip 6pt%
\hspace{20pt}%
\parbox{260pt}{%
\LARGE \bfseries #1
}%
}%
}%
\vskip 100\p@
}
\begin{document}
\chapter{Introduction}
Intro here.
\end{document}
