I have a problem with the Memoir document class.
I created a document based on the file "daleif1-style.tex" generated by the Memoir tex file.
Here's the tex file:
Code: Select all
\documentclass{memoir}
%\let\STARTCODE\relax
%\let\STOPCODE\relax
%\STARTCODE
\usepackage{color,calc,graphicx,soul,fourier}
\definecolor{nicered}{rgb}{.647,.129,.149}
\makeatletter
\newlength\dlf@normtxtw
\setlength\dlf@normtxtw{\textwidth}
\def\myhelvetfont{\def\sfdefault{mdput}}
\newsavebox{\feline@chapter}
\newcommand\feline@chapter@marker[1][4cm]{%
\sbox\feline@chapter{%
\resizebox{!}{#1}{\fboxsep=1pt%
\colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%
}}%
\rotatebox{90}{%
\resizebox{%
\heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%
{!}{\scshape\so\@chapapp}}\quad%
\raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%
}
\newcommand\feline@chm[1][4cm]{%
\sbox\feline@chapter{\feline@chapter@marker[#1]}%
\makebox[0pt][l]{% aka \rlap
\makebox[1cm][r]{\usebox\feline@chapter}%
}}
\makechapterstyle{daleif1}{
\renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}
\renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}
\renewcommand\chapternamenum{}
\renewcommand\printchaptername{}
\renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}
\renewcommand\afterchapternum{\par\vskip\midchapskip}
\renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}
}
\makeatother
\chapterstyle{daleif1}
%\STOPCODE
\setlength\afterchapskip {\onelineskip }
\setlength\beforechapskip {\onelineskip }
\usepackage{lipsum}
\begin{document}
\chapter{Hello World!}
Hello World!!!
\end{document}
I have a problem with the generated pdf file (I'm a Windows 7 user, I use MikTeX 2.9, with pdfLaTeX compiler): the chapter number is printed at a very low resolution, it does not seem to be printed as a character (in vector graphics) but as a bitmap.
It looks very different with respect to the example provided in the Memoir manual (MemoirChapStyles.pdf).
Just to be clearer, here is the expected result, representing the chapter number as it is in the MemoirChapStyles.pdf file: And here is the one the that I get with MikTeX/pdfLaTeX: With MikTeX/LaTeX, the generated DVI is different: Does anyone have had the same problem before?
Do you have any idea of how to solve it?
Thank you in advance,
Leonardo