
나는 다음과 같은 스타일의 책을 쓰려고 했습니다. "Sisältö"라는 단어나 페이지 번호를 제외한 다른 텍스트가 없도록 위쪽 수평선을 수정하는 방법이 있습니까?
\documentclass[10pt]{book}
\usepackage[utf8]{inputenc}
\usepackage[finnish]{babel}
\usepackage{blindtext}
\usepackage[a5paper]{geometry}
%\usepackage[a5paper, top=2in, bottom=1.5in, left=1in, right=1in]{geometry}
\usepackage{scrextend}
\changefontsizes{10.0pt} % Change base font size
\usepackage{lettrine}
\usepackage{fancyhdr}
\fancyhead[LE,RO]{\thepage}
\fancyfoot{}
\fancyhead[RO,LE]{\thepage}
\fancyhead[LO]{\leftmark}
\fancyhead[RE]{\rightmark}
\cfoot{} % get rid of the page number
\linespread{1.3}
\vbadness=20000
\pagestyle{fancy}
\begin{document}
\tableofcontents
\newpage
\section*{Chapter one}
\addcontentsline{toc}{section}{beginning}
First lines.
\newpage
\section*{Chapter two}
\addcontentsline{toc}{section}{somewhere}
Some text.
\newpage
\section*{Chapter two}
\addcontentsline{toc}{section}{end}
The end.
\end{document}
답변1
바닥글에는 아무것도 없고 머리글에만 규칙과 페이지 번호만 원하는 경우 다음을 수행하십시오.
\pagestyle{fancy}
\fancyhf{} % clear all fields
\fancyhead[RO,LE]{\thepage}
그게 다야. 와 관련된 다른 항목을 설정하지 마세요 fancyhdr
.