I'm trying to make a new section-like heading with TikZ. I basically want it to look like this (nevermind the funky background):

But I can only get something like this:

In my LaTeX document I call this with:
\problems
And here is the code I use to produce the (unsatisfactory) result above:
\RequirePackage{tikz}
\makeatletter
\pgfdeclareshape{topbot}{
\inheritsavedanchors[from=rectangle]
\inheritanchorborder[from=rectangle]
\inheritanchor[from=rectangle]{center}
\inheritanchor[from=rectangle]{north}
\inheritanchor[from=rectangle]{south}
\inheritanchor[from=rectangle]{west}
\inheritanchor[from=rectangle]{east}
\inheritanchor[from=rectangle]{north east}
\inheritanchor[from=rectangle]{south east}
\inheritanchor[from=rectangle]{north west}
\inheritanchor[from=rectangle]{south west}
\inheritanchor[from=rectangle]{base}
\backgroundpath{%
\southwest \pgf@xa=\pgf@x \pgf@ya=\pgf@y
\northeast \pgf@xb=\pgf@x \pgf@yb=\pgf@y
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
\pgfpathlineto{\pgfpoint{\pgf@xa}{\pgf@yb}} %left hand vertical line
\pgfpathmoveto{\pgfpoint{\pgf@xb}{\pgf@yb}} %top vertical line
\pgfpathmoveto{\pgfpoint{\pgf@xa}{\pgf@ya}}
\pgfpathlineto{\pgfpoint{\pgf@xb}{\pgf@ya}}
\pgfpathclose
}%
}
\makeatother
\newcommand{\problems}{
\begin{tikzpicture}
\node[draw,shape=topbot,very thick, minimum width=\paperwidth, text width=.8\paperwidth]
{\large\textbf{Problems for Section~\thesection}};
\end{tikzpicture}}
\titlespacing*{\problems}{-0.25in}{50pt}{0pt}
I was trying to make the bottom left hand corner of the rectangle, and then make left hand side really thick.
Also, I'd like the rectangle to be the width of the page. (This will not be printed – hence I'm not too concerned about margins.)


tikz/pgf? – Werner Sep 7 '11 at 21:28