I am trying to define my own chapter style for my thesis. I am using memoir, and want to put the part that says e.g. "Chapter 3" or "Appendix C" inside a single TikZ figure. My code so far is the following, but naturally it doesn't work for appendices, because they will also just read e.g. "Chapter C" and not "Appendix C". I have been looking around the web and the memoir documentation, and I found that I might be able to use \@chapapp, but I got nowhere with that.. Can you help?
\makechapterstyle{nicechap}
{
\setlength{\beforechapskip}{0cm} % Distance from top of page to chapter headings
\setlength{\afterchapskip}{1cm} % Distance from chapter text to body
\setlength{\midchapskip}{0cm} % Distance between chapter number and heading
\renewcommand*{\chapnamefont}{\huge\scshape}
\renewcommand*{\printchaptername}{}
\renewcommand*{\chaptitlefont}{\huge\scshape\bfseries}
\renewcommand\chapternamenum{}
\renewcommand\printchapternum
{
\makebox[0pt][l]
{
%\tikzset{external/remake next}
\begin{tikzpicture}[->, thick]
\node[draw, minimum height=3em] at (0,0) (chap) {\chapnamefont {\bfseries Chapter~\thechapter}};
% other TikZ drawing stuff here..
\end{tikzpicture}
}
}
}
\makechapterstyle{nicechap}{...}inside a\makeatletter...\makeatotherpair, and replaceChapterwith\@chapapp. Why? Because when you issue\appendixinmemoirit redefines\@chapappto be\appendixname(which expands to Appendix), in addition to some other things (including the chapter counter representation). Have you tried that? I guess I don't really know what you mean by "I got nowhere with that..." – Werner Jul 09 '12 at 19:28Also, do you wanna post an answer so I can give credits?
– Martin Lauridsen Jul 09 '12 at 19:39