[texhax] Titlesec and fancyheadings

Paulo Jorge de Oliveira Cantante de Matos pocm at netvisao.pt
Fri Jan 30 19:49:47 CET 2004


Solved, it works with fancyhdr but not with fancyheadings

Best regards,

Paulo Matos

On Fri, 2004-01-30 at 11:31, Paulo Jorge de Oliveira Cantante de Matos
wrote:
> Hi all,
> 
> I'm using fancyheadings and titlesec and the problem is that using both
> I'm unable to have a header and a footer in the first page of each
> chapter. I have:
> \usepackage{fancyheadings}
> \usepackage[sf,bf,compact,topmarks,calcwidth]{titlesec}
> 
> 
> % Chapter
> \titlespacing{\chapter}{0pt}{*0}{*1}
> \titleformat{\chapter}
> [block]
> {\fontsize{16pt}{14pt}\selectfont\bfseries}
> {Capítulo \thechapter:}
> {1cm}
> {\Large}[\vspace{3pt}]
> 
> %Headings
> \pagestyle{fancyplain}
> \addtolength{\headwidth}{\marginparsep}
> \addtolength{\headwidth}{\marginparwidth}
> \renewcommand{\chaptermark}[1]
> {\markboth{\MakeUppercase{\thechapter.\ #1}}{}}
> \renewcommand{\sectionmark}[1]
> {\markright{\MakeUppercase{\thesection.\ #1}}}
> \renewcommand{\headrulewidth}{0.5pt}
> \renewcommand{\footrulewidth}{0pt}
> \newcommand{\helv}{
> \fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}
> \lhead{\fancyplain{}{\helv \rightmark}}
> \rhead{\fancyplain{}{\helv \thepage}}
> \lfoot{\fancyplain{}{\helv \MakeUppercase{Paulo Jorge Matos}}}
> \rfoot{\fancyplain{}{\helv \MakeUppercase{Hello}}}
> \cfoot{}
> \fancypagestyle{plain}{
> \lhead{}
> \rhead{\fancyplain{}{\helv \rightmark}}
> \lfoot{\fancyplain{}{\helv \MakeUppercase{Paulo Jorge Matos}}}
> \rfoot{\fancyplain{}{\helv \thepage}}
> \cfoot{}
> }
> 
> Any ideas?
> 
> Best regards,
-- 

Paulo J. Matos : pocm [_at_] mega . ist . utl . pt
Instituto Superior Tecnico - Lisbon
Computer and Software Eng. - A.I.
 - > http://mega.ist.utl.pt/~pocm
---
        -> God had a deadline...
                So, he wrote it all in Lisp!



More information about the texhax mailing list