>[TeX] | >[Package] | >[fancyhdr] Version: 4.1 2022-11-09 |
[パッケージについて] |
[articleの場合] [bookの場合] [reportの場合] |
[bookの場合] |
---|
1.
\pagestyle{fancy} \fancyhead{} \fancyhead[RO,RE]{\rightmark} \fancyhead[LE,LO]{\leftmark} \cfoot{\thepage} \renewcommand{\chaptermark}[1]{\markboth{第\ \thechapter\ 章~#1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection #1}{}}
|
各章の始まりに\chapter{弐} \thispagestyle{fancy}を入れることで、他のページと同じ様式になります。 |
2.
\fancyhead{} \fancyhead[RO,RE]{\rightmark} \fancyhead[LE,LO]{\leftmark} \renewcommand{\footrulewidth}{0.4pt} \cfoot{\thepage} \renewcommand{\chaptermark}[1]{\markboth{第\ \thechapter\ 章~#1}{}} \renewcommand{\sectionmark}[1]{\markright{\thesection #1}{}}
|
3. \usepackage{chappg}を用いる。 |
4. 奇数ページの柱のみに罫線を入れる。 |
5. |
6. |
7. 節(part)を入れる。 |
8. 節(part)を入れる。 |
QA: 柱とノンブル関連です。参照。 |
|
|
[articleの場合] [bookの場合] [reportの場合] |
Tips |
Package Fancyhdr Warning: \headheight is too small (12.0pt): Make it at least 15.0pt. We now make it that large for the rest of the document. This may cause the page layout to be inconsistent, however.というような警告が出たときは、 \setlength{\headheight}{15pt}をプレアンブルに入れると警告がなくなります。 |
fancyheadingsを用いると下記のような警告がでます。
Package fancyheadings Warning: Please stop using fancyheadings! (fancyheadings) Use fancyhdr instead. (fancyheadings) We will call fancyhdr with the very same (fancyheadings) options you passed to fancyheadings. (fancyheadings) (fancyheadings) fancyhdr is 99 percent compatible with (fancyheadings) fancyheadings. The only incompatibility is (fancyheadings) that \headrulewidth and \footrulewidth and (fancyheadings) their \plain... versions are no longer length (fancyheadings) parameters, but normal macros (to be changed (fancyheadings) with \renewcommand rather than \setlength).. |
[パッケージについて] |
[articleの場合] [bookの場合] [reportの場合] |