[quote]Non riesco a mettere SOLO in nome del capitolo in testa alla pagina! Sto usando un report a singola pagina ed il fancy
Puoi essere più chiaro, e riportare un esempio minimo del codice che usi?
Ciao,
Antonio
\usepackage{fancyhdr}
\pagestyle{fancy}%
%\renewcommand{\chaptermark}[1]{\markboth{#1}{}}%
%\renewcommand{\sectionmark}[1]{\markright{\thechapter .\thesection\ #1}}%
%\renewcommand{\subsectionmark}[1]{\markright{\thechapter .\thesubsection\ #1}}%
%\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
%\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\fancyhf{} %Clears all header and footer fields, in preparation.
%\lhead{}%
%\chead{}%
\rhead{}
\cfoot{\bfseries\thepage}
\renewcommand{\headrulewidth}{0.4pt}%
\renewcommand{\footrulewidth}{0pt}%
\setlength{\headheight}{15pt}%
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}%
%\fancyhead[LE,RO]{\textbf{\thepage}} %Displays the page number in bold in the header,
%to the left on even pages and to the right on odd pages.
%\fancyhead[RE]{\nouppercase{\leftmark}} %Displays the upper-level (section) information –
%as determined above – in non-upper case in the header, to the left on odd pages.
%\fancyhead[LO]{\nouppercase{\rightmark}} %Displays the lower-level (chapter) information – as
%determined above – in the header, to the left on odd pages.
Questo e quello che provo ad usare…… sto scrivendo la tesi e mi hanno consigliato di partire da un lavoro gia iniziato. Il problema che questo lavoro è impostato per un twoside ed io lavor a pagina singola……. Quello che voglio io è avere il titolo del capito in alto a destra. Con questo codiche mi esce i vari sottoparagrafi….(con i commenti che ho lasciato in testa di pagina non mi viene fuori nulla)
Grazie[/quote]
Forse non ti hanno consigliato benissimo. Se vuoi personalizzare i titoli, puoi usare il pacchetto titlesec; per quello che devi fare userei la classe memoir: mette i titoli dei capitoli già a destra (con \chapterstyle{madsen}) e non ti complichi la vita.
`\documentclass[a4paper,oneside]{memoir} % Ti sconsiglio oneside.
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx} % per caricare le immagini
\chapterstyle{madsen} % per lo stile dei capitoli
\begin{document}
\frontmatter
\tableofcontents % Crea l'indice
\listoffigures % Crea l'indice delle figure
\listoftables % Crea l'indice delle tabelle
\mainmatter
\chapter{Primo}
\chapter{Secondo}
\end{document}`
Ciao,
Antonio