
문서집이 있는데 twoside
짝수 페이지에 장 번호와 장 단어가 없는 장만 표시하고 싶습니다. 나는 그것이 적용되기를 원합니다: 6. ¿QUE ES LA NORMA ISO 27001?
내 코드는 다음과 같습니다.
\fancyhf{}
\fancyhead[LE]{\textsl{\slshape{\leftmark}}}
\fancyhead[RO]{\textsl{PROYECTO FIN DE MASTER}}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
답변1
\chaptermark
삽입된 항목을 제거하기 위해 패치를 적용할 수 있습니다 \@chapapp\
.
\documentclass[twoside]{book}
\usepackage[spanish]{babel}
\usepackage{fancyhdr,lipsum}
\fancyhf{}
\fancyhead[LE]{\slshape \leftmark}
\fancyhead[RO]{\slshape PROYECTO FIN DE MASTER}
\fancyfoot[LE,RO]{\thepage}
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0.4pt}
\pagestyle{fancy}
\usepackage{etoolbox}
\makeatletter
%\ patchcmd{<cmd>}{<search>}{<replace>}{<success>}{<failure>}
\patchcmd{\chaptermark}{\@chapapp\ }{}{}{}
\makeatother
\begin{document}
\chapter{A chapter}
\lipsum[1-50]
\end{document}