Home >[TeX] >[Package] >[fancyhdr] Version: 4.1 2022-11-09
fancyhdr (download here)
[パッケージについて]

[articleの場合] [bookの場合] [reportの場合]

[reportの場合]

1.
  \pagestyle{fancy}
  \lhead{\rightmark}
  \cfoot{\thepage}
  \setlength{\headheight}{16pt}
  \renewcommand{\chaptermark}[1]{\markboth{第\ \normalfont\thechapter\ 章~#1}{}}
  \renewcommand{\sectionmark}[1]{\markright{\thesection #1}{}}
  • 章が表示されるページでは、
    ヘッダーの部分の左はなし、真ん中はなし、右もなし、柱の罫線なし。
    フッターの部分の左は、なし、真ん中はページ数、右はなし、柱の罫線なし。
  • それ以外のページでは、
    ヘッダーの部分の左は、節の番号とタイトル、真ん中はなし、右に章の番号と章タイトル、柱の罫線あり。
fancyhdr
[上のソースファイル]
各章の始まりに
  \chapter{弐}
  \thispagestyle{fancy}
を入れることで、他のページと同じ様式になります。

2.
  \pagestyle{fancy}
  \lhead{\rightmark}
  \renewcommand{\footrulewidth}{0.4pt}
  \cfoot{\thepage}
  \setlength{\headheight}{16pt}
  \renewcommand{\chaptermark}[1]{\markboth{第\ \normalfont\thechapter\ 章~#1}{}}
  \renewcommand{\sectionmark}[1]{\markright{\thesection #1}{}}
  • 章が表示されるページでは、
    ヘッダーの部分の左はなし、真ん中はなし、右もなし、柱の罫線なし。
    フッターの部分の左は、なし、真ん中はページ数、右はなし、柱の罫線なし。
  • それ以外のページでは、
    ヘッダーの部分の左は、節の番号と節タイトル、右に章の番号と章タイトル、柱の罫線あり。
    フッターの部分の左は、なし、真ん中はページ数、右はなし、柱の罫線あり。
fancyhdr
[上のソースファイル]

3.
\usepackage{chappg}を用いる。
fancyhdr
[上のソースファイル]

4.
左上に章と章名。
fancyhdr
[上のソースファイル]

fancyhdrを用いない場合

1.
ページ数を-で囲む。
ftry14.gif
[上のソースファイル]

*   *
* 2001.tex * letter6.tex
* stationery5.tex * stationery6.tex
* 卒業論文 例 * 卒業論文 2 例
* 卒業論文 3 例 * 卒業論文 4 例

[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の場合]


@

To the TeX Page
TeX

@

inserted by FC2 system