> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/latex/ja/shu-shi-she-ding/14-footnotes.md).

# 脚注

## LaTeXの主要な脚注コマンドの紹介

Wikipediaによると、脚注は次のイギリスの印刷業者によって考案されました [Richard Jugge](https://en.wikipedia.org/wiki/Note_\(typography\)#History) （\*c.\*1514–1577）。この由緒ある文学的手法はLaTeXでサポートされており、このヘルプ記事では脚注に関連する主要なコマンドを説明し、使用例を示すさまざまな例を紹介します。

### \footnoteコマンド

この `\footnote` コマンドは、脚注を作成するためのLaTeXの中核コマンドで、2つの形式があります:

* `\footnote{*脚注の本文*}`：これは、脚注マーカーと呼ばれる（自動生成された）上付き数字を *マーカー*を文書本文に挿入し、ページ下部に対応する脚注も作成します。そこには対応する脚注 *マーカー* や `*脚注の本文*`.
* `\footnote[*number*]{*脚注の本文*}`：この形式のコマンドでは、任意の値 `*number*` を使用して上付きの脚注 *マーカー*を作成します。また、ページ下部に対応する脚注も挿入され、識別用の脚注マーカー（`*number*`） `*脚注の本文*`.

#### 例：\footnoteコマンドの使用

以下は、の2つの変種を示す例です `\footnote`:

* `\footnote{自動生成された脚注マーカーは問題なく動作します！}` では、脚注マーカーに対して数値の（上付き）値（1）が自動的に組版されます。一方で、
* `\footnote[42]{...それが万物の答えなのですか？}` では42を脚注マーカーの値として使用し、見てわかるように、マーカーを自動生成するために使われる整数は増加しません。3つ目の脚注のマーカー値は2です。

```latex
自動生成された脚注マーカー\footnote{自動生成された脚注マーカーは問題なく動作します！}の使用法と、コマンドに指定したマーカー値を使う脚注\footnote[42]{...それが万物の答えなのですか？}を示すために書いています。

では、別の自動生成された脚注マーカー\footnote{では、脚注マーカーは1、42、でもその後2に戻るのですか？自動生成された番号も42に達したら紛らわしくなります！}を使います。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Demonstrating+the+footnote+command\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AI%27m+writing+to+demonstrate+use+of+automatically-generated+footnote+markers%5Cfootnote%7BAutomatically+generated+footnote+markers+work+fine%21%7D+and+footnotes+which+use+a+marker+value+provided+to+the+command%5Cfootnote%5B42%5D%7B...is+that+the+answer+to+everything%3F%7D.+%0A%0ANow%2C+I+will+use+another+automatically-generated+footnote+marker%5Cfootnote%7BNow%2C+footnote+markers+are+1%2C+42%2C+but+then+back+to+2%3F+That+will+be+confusing+if+the+automatically-generated+number+also+reaches+42%21%7D.%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![基本的な脚注の例](/files/777ba1801eec8ac397a0e46e4f206e82e87cbfd8)

### 現在の脚注マーカー値を保存する：LaTeXカウンタ

LaTeXでは、いわゆる [*カウンタ変数*](/latex/ja/shu-shi-she-ding/10-counters.md) を使って脚注マーカーの現在値を保存します。実際には、脚注が使われる場所に応じて、LaTeXは2つのカウンタ変数を用意し、使用します：

* `footnote`：メイン文書本文内の脚注用カウンタ変数
* `mpfootnote`：次の中の脚注用カウンタ変数 `minipage` 環境

そのたびに `\footnote{*本文*}` このコマンドの版が使われると、対応するカウンタ変数は1増えます。 `\footnote[*number*]{*本文*}` 版では、対応するカウンタ変数は *実際の* 増加します。

追加のカウンタ変数を作成し、脚注の生成に使うこともできます。これは次で示すとおりです。 [以下の例を参照](#example-from-latex2e-unofficial-reference-manual).

### The \footnotemark and \footnotetext commands

に加えて `\footnote`、LaTeXには次のコマンドがあります：

* `\footnotemark` は脚注マーカーを組版し、
* `\footnotetext` は脚注本文を組版します

どちらのコマンドも *任意の* 角括弧で囲まれた引数（`[...]`):

* `\footnotemark[*number*]`：コマンドを使った位置に脚注マーカーを組版しますが、対応する脚注をページ下部に作成／組版しません。
  * `[*number*]` は *任意の* という引数を取り、その値 `*number*` を脚注マーカーに使用することを指定します。
  * このコマンドを使うと、 *〜なしの* 任意引数を `\footnotemark`と書くと、この形式のコマンドは、LaTeX内部変数である [カウンタ変数](/latex/ja/shu-shi-she-ding/10-counters.md)という変数を使って脚注マーカーを生成します。これは `*number*` 値が *実際の* 与えられると1増えます。
* `\footnotetext[*number*]{*text for footnote*}`：脚注本文（`*脚注の本文*`）を、前の `\footnotemark`.
  * `[*number*]` は *任意の* 対応する脚注マーカーを指定する引数に対応して組版します。 `*脚注の本文*`.
  * このコマンドを使うと、 *〜なしの* 任意引数 `*number*` 、つまりこれを `\footnotetext{*脚注の本文*}`と書くと、この形式のコマンドは、マーカーが直近の `\footnotemark`.

#### 例：\footnotemark と \footnotetext の使用

この `\footnotemark` や `\footnotetext` コマンドは、表やほかの場所で脚注を作るために一緒に使われることがよくあります。そこでは標準の `\footnote` コマンドが機能しない、または最適な解決策ではありません。この記事ではいくつかの応用例を示します（ [こちら](#example-from-latex2e-unofficial-reference-manual) や [こちら](#footnotes-with-multiple-references)).

```latex
\verb|\footnotemark| と \verb|\footnotetext| コマンドを試すために書いています。
\verb|\footnotemark|\footnotemark{} を使って脚注マーカーを挿入できます
コマンドで、あとで準備ができたときに、脚注本文を
\verb|\footnotetext{ここが脚注です。}|。 \footnotetext{ここが脚注です。}

もう1つ、結果を見てみましょう\footnotemark{}。これについては
脚注の中でコメントします\footnotetext{具体的には、この脚注にコメントを書きます。}。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=footnotemark+and+footnotetext+demo\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AI%27m+writing+to+test+the+%5Cverb%7C%5Cfootnotemark%7C+and+%5Cverb%7C%5Cfootnotetext%7C+commands.+%0AYou+can+insert+a+footnote+marker+using+the+%5Cverb%7C%5Cfootnotemark%7C%5Cfootnotemark%7B%7D%0Acommand+and+later%2C+when+you%27re+ready%2C+typeset+the+footnote+text+by+writing+%0A%5Cverb%7C%5Cfootnotetext%7BHere%27s+the+footnote.%7D%7C.+%5Cfootnotetext%7BHere%27s+the+footnote.%7D%0A%0ALet%27s+do+one+more+to+see+the+result%5Cfootnotemark%7B%7D+which+I%27ll+comment+on+within+the%0Afootnote%5Cfootnotetext%7BSpecifically%2C+I%27d+write+comments+in+this+one.%7D.%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![Overleafで脚注を使う](/files/002cb9b764af3603e4b55857fd0ed4d8aa06579f)

### その他のLaTeX脚注コマンド

ここまで見てきたコマンドに加えて：

* `\footnote[*number*]{*脚注の本文*}`
* `\footnotemark[*number*]`
* `\footnotetext[*number*]{*text for footnote*}`

LaTeXには脚注に関する追加コマンドがいくつかあります。ここでは一覧だけ示し、詳しい説明はしません。以下の説明はLaTeX2eのソースコード文書から引用しています：

* `\footnotesize`：脚注のサイズを変更するコマンド。
* `\footins`：本文と脚注の間の空白。この空白の中に本文と脚注を区切る罫線が入ります。この空白は、高さ `\footnotesep` のストラットの上にあり、最初の脚注の冒頭にあります。
* `\footnoterule`：脚注と本文を区切る罫線を引くマクロ。次の直後に実行されます `\vspace` のトークン値は次のようになります。 `\skip\footins`。縦方向の空きは0であるべきです。つまり、占有する正の空きを打ち消すために負のスキップにすべきです。
* `\footnotesep`：すべての脚注の先頭に置かれるストラットの高さ。

## 脚注の例と応用

### 複数参照のある脚注

次の例は、同じ脚注を複数回参照する1つの方法を示します。 `\footnotemark[\value{footnote}]` を使うと、次に対応する上付き文字を挿入できます *現在の* 値 `footnote` [カウンター](/latex/ja/shu-shi-she-ding/10-counters.md) しつつ、 `footnote` カウンタ値は増やしません（カウンタの詳細は [このOverleafヘルプ記事](/latex/ja/shu-shi-she-ding/10-counters.md)).

```latex
いくつかの脚注機能を試すために書いています\footnote{脚注は問題なく動作します！}。
\verb|\footnotemark| を使って脚注マーカー\footnotemark{} を挿入できます
コマンドを使い、あとで \verb|\footnotetext| コマンドで脚注本文
を \verb|\footnotetext{2つ目の脚注本文。}| と書いて
\footnotetext{2つ目の脚注本文。}。

同じ脚注\footnotemark{}を
複数回参照できます\footnotemark[\value{footnote}]。

\footnotetext{2つの参照を持つ脚注。}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Two+references+to+footnotes\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AI%27m+writing+to+test%5Cfootnote%7BFootnotes+work+fine%21%7D+several+footnote+features.+%0AYou+can+insert+the+footnote+marker%5Cfootnotemark%7B%7D+using+the+%5Cverb%7C%5Cfootnotemark%7C%0Acommand+and+later+use+the+%5Cverb%7C%5Cfootnotetext%7C+command+to+typeset+the+footnote%0Atext+by+writing+%5Cverb%7C%5Cfootnotetext%7BText+of+second+footnote.%7D%7C%0A%5Cfootnotetext%7BText+of+second+footnote.%7D.%0A%0AI+can+use+the+same+footnote%5Cfootnotemark%7B%7D+more+than+%0Aonce%5Cfootnotemark%5B%5Cvalue%7Bfootnote%7D%5D.%0A%0A%5Cfootnotetext%7BA+footnote+with+two+references.%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![複数の脚注参照の使用](/files/cd74ceae165d1c6af9c58c55f35a847f7a9129e2)

### 番号付けスタイルの変更

脚注番号の現在値は、LaTeX変数 `footnote` [*カウンター*](/latex/ja/shu-shi-she-ding/10-counters.md) という変数に保存され、コマンド `\thefootnote`で組版できます。 `\thefootnote` コマンドを変更することで、脚注マーカーの組版形式を変えられます。たとえば、 `\renewcommand{\thefootnote}{\roman{footnote}}` は、マーカーを小文字のローマ数字で組版します。 `\renewcommand{\thefootnote}{...}` をプリアンブルで使うと、本文中の脚注の番号付けスタイルを変更できます。

ほかに可能なマーカースタイルは次のとおりです：

* `\arabic{*counter variable*}`：組版 `*カウンタ変数*` を算用数字で。
* `\Roman{*counter variable*}`：組版 `*カウンタ変数*` を大文字のローマ数字で。
* `\alph{*counter variable*}`：組版 `*カウンタ変数*` を小文字のアルファベット文字で。
* `\Alph{*counter variable*}`：組版 `*カウンタ変数*` を大文字のアルファベット文字で。
* `\fnsymbol{*カウンタ変数*}`：組版 `*カウンタ変数*` を使って [9個の特別な記号の集合](/latex/ja/shu-shi-she-ding/10-counters.md#accessing-and-printing-counter-values).

カウンタの作成・使用・変更に関する背景情報は次を参照してください [カウンタに関するこのOverleaf記事](/latex/ja/shu-shi-she-ding/10-counters.md#accessing-and-printing-counter-values).

以下に `\renewcommand{\thefootnote}{\roman{footnote}}`:

```latex
いくつかの脚注機能を試すために書いています\footnote{脚注は問題なく動作します！}。
\verb|\footnotemark| を使って脚注マーカー\footnotemark{} を挿入できます
コマンドを使い、あとで \verb|\footnotetext| コマンドで脚注本文
を \verb|\footnotetext{2つ目の脚注本文。}| と書いて
\footnotetext{2つ目の脚注本文。}。

同じ脚注\footnotemark{}を
複数回参照できます\footnotemark[\value{footnote}]。

\footnotetext{2つの参照を持つ脚注。}

\renewcommand{\thefootnote}{\roman{footnote}}
ここでは小文字のローマ数字を使った脚注マーカーです\footnote{この脚注マーカーは小文字のローマ数字を使用しています。}。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Changing+footnote+numbering+style\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AI%27m+writing+to+test%5Cfootnote%7BFootnotes+work+fine%21%7D+several+footnote+features.+%0AYou+can+insert+the+footnote+marker%5Cfootnotemark%7B%7D+using+the+%5Cverb%7C%5Cfootnotemark%7C%0Acommand+and+later+use+the+%5Cverb%7C%5Cfootnotetext%7C+command+to+typeset+the+footnote%0Atext+by+writing+%5Cverb%7C%5Cfootnotetext%7BText+of+second+footnote.%7D%7C%0A%5Cfootnotetext%7BText+of+second+footnote.%7D.%0A%0AI+can+use+the+same+footnote%5Cfootnotemark%7B%7D+more+than+%0Aonce%5Cfootnotemark%5B%5Cvalue%7Bfootnote%7D%5D.%0A%0A%5Cfootnotetext%7BA+footnote+with+two+references.%7D%0A%0A%5Crenewcommand%7B%5Cthefootnote%7D%7B%5Croman%7Bfootnote%7D%7D%0ANow+a+footnote+marker+using+lowercase+Roman+numerals%5Cfootnote%7BThis+footnote+marker+uses+lowercase+Roman+numerals.%7D.%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![脚注の番号付けスタイルの変更](/files/146c2b94eeca6748441b0e94e0d36a9de55cd0ca)

### minipage環境内の脚注

次の中の脚注 `minipage` 環境では、コマンドが異なる動作をします。なぜなら `\footnote` や `\footnotetext` 脚注が次のようになるよう一時的に再定義されるからです：

* の下部に配置される `minipage`、メイン文書ページではなく
* 本文中の脚注とは異なる方式でラベル付け／番号付けされます。 `minipage` 脚注では、というカウンタを使います `mpfootnote`

次に、の中の脚注の例を示します `minipage`:

```latex
これは、\texttt{minipage}環境に切り替える直前の段落の冒頭です。これはページ内の脚注\footnote{minipageの前の脚注}です。

\vspace{10pt}
\begin{minipage}{0.7\textwidth}
これは\texttt{minipage}環境内のテキストです。これが最初の\texttt{minipage}脚注\footnote{最初のminipage脚注。}です。さらに別の\texttt{minipage}脚注\footnote{2つ目のminipage脚注。}があります。
\end{minipage}
\vspace{10pt}

これは、\texttt{minipage}環境を終えた直後の通常の段落の冒頭です。これはページ内の脚注\footnote{minipageの後の脚注}です。
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Footnotes+in+a+minipage\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0AThis+is+the+start+of+a+paragraph+of+text+just+before+we+switch+to+a+%5Ctexttt%7Bminipage%7D+environment.+This+is+an+in-page+footnote%5Cfootnote%7BFootnote+before+a+minipage%7D.%0A%0A%5Cvspace%7B10pt%7D%0A%5Cbegin%7Bminipage%7D%7B0.7%5Ctextwidth%7D%0AThis+is+text+in+a+%5Ctexttt%7Bminipage%7D+environment.+Here+is+the+first+%5Ctexttt%7Bminipage%7D+footnote%5Cfootnote%7BFirst+minipage+footnote.%7D.+And+another+%5Ctexttt%7Bminipage%7D+footnote%5Cfootnote%7BSecond+minipage+footnote.%7D.%0A%5Cend%7Bminipage%7D%0A%5Cvspace%7B10pt%7D%0A%0AThis+is+the+start+of+a+standard+paragraph+of+text+just+after+we+finished+a+%5Ctexttt%7Bminipage%7D+environment.+This+is+an+in-page+footnote%5Cfootnote%7BFootnote+after+a+minipage%7D.%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![minipage内で脚注を使う](/files/5d3d850d2030f9e7e7cf576cbd0ae99822dccd06)

### minipage脚注マーカーの変更

上の例が示すように、次の中では `minipage` 脚注マーカーは小文字のアルファベットです。ただし、 `\renewcommand` を使って、どのように `mpfootnote` カウンタ値を組版するかを再定義できます。たとえば、 `minipage` 脚注マーカーを算用数字で組版するには：

```latex
\renewcommand{\thempfootnote}{\arabic{mpfootnote}}
```

次の例に示すように：

```latex
\renewcommand{\thempfootnote}{\arabic{mpfootnote}}
\begin{minipage}{0.7\textwidth}
これは\texttt{minipage}環境内のテキストです。これが最初の\texttt{minipage}脚注\footnote{最初のminipage脚注。}です。さらに別の\texttt{minipage}脚注\footnote{2つ目のminipage脚注。}があります。
\end{minipage}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Changing+minipage+footnote+marker\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cbegin%7Bdocument%7D%0A%5Crenewcommand%7B%5Cthempfootnote%7D%7B%5Carabic%7Bmpfootnote%7D%7D%0A%5Cbegin%7Bminipage%7D%7B0.7%5Ctextwidth%7D%0AThis+is+text+in+a+%5Ctexttt%7Bminipage%7D+environment.+Here+is+the+first+%5Ctexttt%7Bminipage%7D+footnote%5Cfootnote%7BFirst+minipage+footnote.%7D.+And+another+%5Ctexttt%7Bminipage%7D+footnote%5Cfootnote%7BSecond+minipage+footnote.%7D.%0A%5Cend%7Bminipage%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![minipage脚注マーカーの変更](/files/ce53656d3735a84c20b33848510538b31148dc6f)

## 表内の脚注

以下の節では、表で脚注を使うことに関連するいくつかのトピックを扱います。

### 表で脚注を使うべきですか？

この [TeXのよくある質問一覧](https://texfaq.org/) には項目があります [表内の脚注](https://texfaq.org/FAQ-footintab) そこでは、表で脚注を使うことはタイポグラフィ上のベストプラクティスとは見なされない、とコメントされています。理想的には、 *表注* を使うべきで、 *表脚注*を使うべきです。表注や表脚注の使い方は、使用が必須の文書クラス／スタイルファイルで定義されている場合もあれば、自分で選べる場合もあります。いずれにせよ、LaTeXには使えるさまざまな解決策があります。

### 例：\footnoteはtabular環境では使えません

この `\footnote` コマンドはtabular環境内では機能しません。次の例がそれを示しています。なお、この例では `hologo` さまざまなTeXエンジン名を組版するためのLaTeXパッケージを使っています。

```latex
\begin{table}
  \centering
    \\begin{tabular}{lcc}
     \\midrule
     \TeX{} エンジン & ネイティブUTF-8サポート & Unicode数式サポート\\
     \\midrule
       \hologo{pdfTeX} & いいえ\footnote{\LaTeX{}カーネルコマンド経由で一部UTF-8をサポート。} & いいえ\\
       \Hologo{XeTeX} & はい & はい\\
       \Hologo{LuaTeX} & はい & はい\\
       \\midrule
     \end{tabular}
    \caption[\TeX{} エンジンの機能]{%
      \TeX{} エンジン機能の比較\footnote{下書き版です。追加の機能比較が加えられます。}.}
\\end{table}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+of+table+footnotes+not+working\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cusepackage%7Bhologo%7D+%25+for+TeX+engine+logos%0A%5Cusepackage%7Bbooktabs%7D+%25+for+nice+tables%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Btable%7D%0A++%5Ccentering%0A++++%5Cbegin%7Btabular%7D%7Blcc%7D%0A+++++%5Cmidrule+%0A+++++%5CTeX%7B%7D+engine+%26+Native+UTF-8+support+%26+Unicode+math+support%5C%5C%0A+++++%5Cmidrule%0A+++++++%5Chologo%7BpdfTeX%7D+%26+No%5Cfootnote%7BSome+UTF-8+support+via+%5CLaTeX%7B%7D+kernel+commands.%7D+%26+No%5C%5C%0A+++++++%5CHologo%7BXeTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5CHologo%7BLuaTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5Cmidrule+%0A+++++%5Cend%7Btabular%7D%0A++++%5Ccaption%5B%5CTeX%7B%7D+engine+features%5D%7B%25%0A++++++%5CTeX%7B%7D+engine+feature+comparison%5Cfootnote%7BDraft+version.+Additional+feature+comparisons+will+be+added.%7D.%7D%0A%5Cend%7Btable%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が得られ、表のセルとキャプションに脚注マークがあることが示されますが、対応する脚注本文はありません：

![tabular環境で脚注本文が欠落](/files/fd4160c056a3d06f4c052a899c92712642e4d424)

部分的な解決策は、 `tabular` を次の中に置くことです `minipage` 環境を使用しなければならないことに注意してください:

```latex
\begin{minipage}{\textwidth}
  \centering
    \\begin{tabular}{lcc}
     \\midrule
     \TeX{} エンジン & ネイティブUTF-8サポート & Unicode数式サポート\\
     \\midrule
       \hologo{pdfTeX} & いいえ\footnote{\LaTeX{}カーネルコマンド経由で一部UTF-8をサポート。} & いいえ\\
       \Hologo{XeTeX} & はい & はい\\
       \Hologo{LuaTeX} & はい & はい\\
       \\midrule
     \end{tabular}
\end{minipage}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+of+tabular+in+a+minipage\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cusepackage%7Bhologo%7D+%25+for+TeX+engine+logos%0A%5Cusepackage%7Bbooktabs%7D+%25+for+nice+tables%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Bminipage%7D%7B%5Ctextwidth%7D%0A++%5Ccentering%0A++++%5Cbegin%7Btabular%7D%7Blcc%7D%0A+++++%5Cmidrule+%0A+++++%5CTeX%7B%7D+engine+%26+Native+UTF-8+support+%26+Unicode+math+support%5C%5C%0A+++++%5Cmidrule%0A+++++++%5Chologo%7BpdfTeX%7D+%26+No%5Cfootnote%7BSome+UTF-8+support+via+%5CLaTeX%7B%7D+kernel+commands.%7D+%26+No%5C%5C%0A+++++++%5CHologo%7BXeTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5CHologo%7BLuaTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5Cmidrule+%0A+++++%5Cend%7Btabular%7D%0A%5Cend%7Bminipage%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![脚注を修正するためにminipage内にLaTeX tabularを置く](/files/31db102d55976bb31bc606f0f98563fa53dc5bdf)

また、次のように書いてもよいことに注意してください `\renewcommand{\thempfootnote}{\arabic{mpfootnote}}` そうすると `minipage` 表脚注マーカーが小文字のアルファベットではなく算用数字で組版されます。

### LaTeX2e非公式リファレンスマニュアルの例

この [LaTeX2e 非公式リファレンスマニュアル](https://latexref.xyz/index.html) の節には興味深い例があります [表の中の脚注](https://latexref.xyz/Footnotes-in-a-table.html)。通常、次の中の表脚注は `minipage` の下部に配置されます `minipage`。上の例が示したとおりです。次の例は [LaTeX2e 非公式リファレンスマニュアル](https://latexref.xyz/Footnotes-in-a-table.html) のものです。 `\footnotemark` や `\footnotetext` コマンドと、新しいカウンタ（`mpFootnoteValueSaver`）を使い、表脚注が文書ページの下部に表示され、文書の標準脚注の一部として含まれるようにしています。

表を組版するとき、LaTeXコード `\setcounter{mpFootnoteValueSaver}{\value{footnote}}` は、 `mpFootnoteValueSaver` の値を現在の `footnote` カウンタ値に設定します。これにより、表内で生成された脚注はメイン文書の脚注シーケンス（番号付け）と同期したマーカー値を使います。表の組版後は、 `mpFootnoteValueSaver` がコードによって1増加する点に注目してください `\stepcounter{mpFootnoteValueSaver}`.

```latex
\newcounter{mpFootnoteValueSaver}
\begin{center}
  \begin{minipage}{\textwidth}
    \setcounter{mpFootnoteValueSaver}{\value{footnote}} \centering
     \begin{tabular}{l|l}
       \textsc{Woman}             &\textsc{Relationship} \\ \hline
       Mona                       &Attached\footnotemark  \\
       Diana Villiers             &Eventual wife  \\
       Christine Hatherleigh Wood &Fiance\footnotemark
     \end{tabular}
  \end{minipage}%  パーセント記号は脚注本文をminipageに近づけておきます
  \stepcounter{mpFootnoteValueSaver}%
    \footnotetext[\value{mpFootnoteValueSaver}]{%
      彼女の死以外にほとんど分かっていません。}%
  \stepcounter{mpFootnoteValueSaver}%
    \footnotetext[\value{mpFootnoteValueSaver}]{%
      関係は『XXI.』で未解決です。}
\end{center}
```

[Overleaf でこの例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+of+custom+table+footnotes\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cusepackage%7Bhologo%7D+%25+for+TeX+engine+logos%0A%5Cusepackage%7Bbooktabs%7D+%25+for+nice+tables%0A%5Cbegin%7Bdocument%7D%0A%5Cnewcounter%7BmpFootnoteValueSaver%7D%0A%5Cbegin%7Bcenter%7D%0A++%5Cbegin%7Bminipage%7D%7B%5Ctextwidth%7D%0A++++%5Csetcounter%7BmpFootnoteValueSaver%7D%7B%5Cvalue%7Bfootnote%7D%7D+%5Ccentering%0A+++++%5Cbegin%7Btabular%7D%7Bl%7Cl%7D%0A+++++++%5Ctextsc%7BWoman%7D+++++++++++++%26%5Ctextsc%7BRelationship%7D+%5C%5C+%5Chline+%0A+++++++Mona+++++++++++++++++++++++%26Attached%5Cfootnotemark++%5C%5C+%0A+++++++Diana+Villiers+++++++++++++%26Eventual+wife++%5C%5C++%0A+++++++Christine+Hatherleigh+Wood+%26Fiance%5Cfootnotemark+%0A+++++%5Cend%7Btabular%7D%0A++%5Cend%7Bminipage%7D%25++percent+sign+keeps+footnote+text+close+to+minipage%0A++%5Cstepcounter%7BmpFootnoteValueSaver%7D%25%0A++++%5Cfootnotetext%5B%5Cvalue%7BmpFootnoteValueSaver%7D%5D%7B%25%0A++++++Little+is+known+other+than+her+death.%7D%25%0A++%5Cstepcounter%7BmpFootnoteValueSaver%7D%25%0A++++%5Cfootnotetext%5B%5Cvalue%7BmpFootnoteValueSaver%7D%5D%7B%25%0A++++++Relationship+is+unresolved+in+XXI.%7D%0A%5Cend%7Bcenter%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![LaTeXで表脚注を作成する](/files/65ecbe5cdfc18d5647c5f1cc829215df9953eecd)

### 例：tablefootnoteパッケージによる表脚注

1つの選択肢は [`tablefootnote` パッケージ](https://ctan.org/pkg/tablefootnote?lang=en) これは [tex.stackexchangeで言及されている](https://tex.stackexchange.com/a/35669) そしてTeXのよくある質問一覧で参照されている [表内の脚注の項目にある](https://texfaq.org/FAQ-footintab)。次の例は `tablefootnote` パッケージを使ったサンプルコードです：

```latex
\documentclass{article}
% geometryパッケージを使い、
% 小さな用紙サイズで記事の図を作成する
\usepackage[paperheight=6in,
   paperwidth=5in,
   top=10mm,
   bottom=20mm,
   left=10mm,
   right=10mm]{geometry}
\usepackage{hologo} % TeXエンジンのロゴ用
\usepackage{booktabs} % 見栄えのよい表用
\usepackage{tablefootnote} % 表脚注用
\begin{document}
\begin{table}
  \centering
    \\begin{tabular}{lcc}
     \\midrule
     \TeX{} エンジン & ネイティブUTF-8サポート & Unicode数式サポート\\
     \\midrule
       \hologo{pdfTeX} & いいえ\tablefootnote{\LaTeX{}カーネルコマンド経由で一部UTF-8をサポート。} & いいえ\\
       \Hologo{XeTeX} & はい & はい\\
       \Hologo{LuaTeX} & はい & はい\\
       \\midrule
     \end{tabular}
    \caption[\TeX{} エンジンの機能]{%
      \TeX{} エンジン機能の比較\tablefootnote{下書き版です。追加の機能比較が加えられます。}.}
\\end{table}
\end{document}
```

[この `\tablefootnote` Overleafでのパッケージの例](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=Example+of+tablefootnote+package\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cusepackage%7Bhologo%7D+%25+for+TeX+engine+logos%0A%5Cusepackage%7Bbooktabs%7D+%25+for+nice+tables%0A%5Cusepackage%7Btablefootnote%7D+%25+for+table+footnotes%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Btable%7D%0A++%5Ccentering%0A++++%5Cbegin%7Btabular%7D%7Blcc%7D%0A+++++%5Cmidrule+%0A+++++%5CTeX%7B%7D+engine+%26+Native+UTF-8+support+%26+Unicode+math+support%5C%5C%0A+++++%5Cmidrule%0A+++++++%5Chologo%7BpdfTeX%7D+%26+No%5Ctablefootnote%7BSome+UTF-8+support+via+%5CLaTeX%7B%7D+kernel+commands.%7D+%26+No%5C%5C%0A+++++++%5CHologo%7BXeTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5CHologo%7BLuaTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5Cmidrule+%0A+++++%5Cend%7Btabular%7D%0A++++%5Ccaption%5B%5CTeX%7B%7D+engine+features%5D%7B%25%0A++++++%5CTeX%7B%7D+engine+feature+comparison%5Ctablefootnote%7BDraft+version.+Additional+feature+comparisons+will+be+added.%7D.%7D%0A%5Cend%7Btable%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます:

![tablefootnoteパッケージの例](/files/0aae63abe15526d0f78ac858d74f0eb3f9e9afed)

## 表注：脚注の代替

この [`threeparttable` パッケージ](https://ctan.org/pkg/threeparttable) は表注を作成する仕組みを提供します *に次の記述があるのも不思議ではありません。*—表で脚注を使う代わりとなるものです。 [`threeparttabl**ex**` パッケージ](https://ctan.org/pkg/threeparttablex) は、次と併用するための表注機能を実装しています [longtableパッケージ](https://ctan.org/pkg/longtable).

### 例：threeparttableパッケージを使って表注を作成する

この [threeparttableパッケージの文書](http://mirrors.ctan.org/macros/latex/contrib/threeparttable/threeparttable.pdf) はとても簡潔なので、ここでは繰り返さず、代わりに使用例を示します：

```latex
\begin{table}
  \begin{threeparttable}[b]
   \caption[\TeX{} エンジンの機能]{\TeX{} エンジン機能の比較\tnote{1}}
   \centering
   \\begin{tabular}{lcc}
     \\midrule
     \TeX{} エンジン & ネイティブUTF-8サポート & Unicode数式サポート\\
     \\midrule
       \hologo{pdfTeX} & いいえ\tnote{2}& いいえ\\
       \Hologo{XeTeX} & はい & はい\\
       \Hologo{LuaTeX} & はい & はい\\
       \\midrule
     \end{tabular}
     \begin{tablenotes}
       \item [1] これは初期の下書きです。
       \item [2] \LaTeX{}カーネルコマンド経由で一部UTF-8をサポート。
     \end{tablenotes}
  \end{threeparttable}
\\end{table}
```

[この `threeparttable` Overleaf 上の例を開く](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=threeparttable+package+example\&snip=%5Cdocumentclass%7Barticle%7D%0A%25+Using+the+geometry+package+with+a+small%0A%25+page+size+to+create+the+article+graphic%0A%5Cusepackage%5Bpaperheight%3D6in%2C%0A+++paperwidth%3D5in%2C%0A+++top%3D10mm%2C%0A+++bottom%3D20mm%2C%0A+++left%3D10mm%2C%0A+++right%3D10mm%5D%7Bgeometry%7D%0A%5Cusepackage%7Bhologo%7D+%25+for+TeX+engine+logos%0A%5Cusepackage%7Bbooktabs%7D+%25+for+nice+tables%0A%5Cusepackage%7Bthreeparttable%7D+%25+to+use+table+notes%0A%5Cbegin%7Bdocument%7D%0A%5Cbegin%7Btable%7D%0A++%5Cbegin%7Bthreeparttable%7D%5Bb%5D%0A+++%5Ccaption%5B%5CTeX%7B%7D+engine+features%5D%7B%5CTeX%7B%7D+engine+feature+comparison%5Ctnote%7B1%7D%7D%0A+++%5Ccentering%0A+++%5Cbegin%7Btabular%7D%7Blcc%7D%0A+++++%5Cmidrule+%0A+++++%5CTeX%7B%7D+engine+%26+Native+UTF-8+support+%26+Unicode+math+support%5C%5C%0A+++++%5Cmidrule%0A+++++++%5Chologo%7BpdfTeX%7D+%26+No%5Ctnote%7B2%7D%26+No%5C%5C%0A+++++++%5CHologo%7BXeTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5CHologo%7BLuaTeX%7D+%26+Yes+%26+Yes%5C%5C%0A+++++++%5Cmidrule+%0A+++++%5Cend%7Btabular%7D%0A+++++%5Cbegin%7Btablenotes%7D%0A+++++++%5Citem+%5B1%5D+This+is+an+early+draft.%0A+++++++%5Citem+%5B2%5D+Some+UTF-8+support+via+%5CLaTeX%7B%7D+kernel+commands.%0A+++++%5Cend%7Btablenotes%7D%0A++%5Cend%7Bthreeparttable%7D%0A%5Cend%7Btable%7D%0A%5Cend%7Bdocument%7D)

この例では次の出力が生成されます

![LaTeXにおける表注のOverleaf例](/files/f08276628feb7b5346febdc2092e8f8dafa102fd)

### tex.stackexchangeでの議論

表脚注はtex.stackexchangeでも議論されており、以下のようなスレッドでさまざまな解決策が示されています。興味のある読者はぜひご覧ください：

* [LaTeXでの表の脚注](https://stackoverflow.com/questions/2888817/footnotes-for-tables-in-latex)、そして
* [表内の脚注](https://tex.stackexchange.com/questions/35615/footnote-in-table/35669).

## さらに読む

詳しくは以下を参照してください：

* [欄外メモ](/latex/ja/shu-shi-she-ding/15-margin-notes.md)
* [ページサイズと余白](/latex/ja/shu-shi-she-ding/07-page-size-and-margins.md)
* [ヘッダーとフッター](/latex/ja/shu-shi-she-ding/02-headers-and-footers.md)
* [ハイパーリンク](/latex/ja/wen-shu-gou-zao/09-hyperlinks.md)
* [カウンタ](/latex/ja/shu-shi-she-ding/10-counters.md)
* [リスト](/latex/ja/latexno/04-lists.md)
* [フォントサイズ、ファミリー、スタイル](/latex/ja/fonto/01-font-sizes-families-and-styles.md)
* [太字、斜体、下線](/latex/ja/latexno/03-bold-italics-and-underlining.md)
* [フォントの書体](/latex/ja/fonto/02-font-typefaces.md)
* [改行と空白](/latex/ja/shu-shi-she-ding/05-line-breaks-and-blank-spaces.md)
* [大規模プロジェクトでの管理](/latex/ja/wen-shu-gou-zao/07-management-in-a-large-project.md)
* [複数ファイルの LaTeX プロジェクト](/latex/ja/wen-shu-gou-zao/08-multi-file-latex-projects.md)
* [LaTeX2εへのそれほど短くない入門](http://www.ctan.org/tex-archive/info/lshort/)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/latex/ja/shu-shi-she-ding/14-footnotes.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
