> 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/fen-ye-bie/10-attribute-value-matrices.md).

# 属性値行列

この記事では、属性値行列（AVM）の組版について示します。これは、次のような情報を提示する実用的な方法です [特徴構造を](https://en.wikipedia.org/wiki/Feature_structure) 属性とそれに対応する値の समूहとして。

## LaTeX用AVMパッケージに関する注意

この記事では `avm` パッケージを使用しています。これは、この資料が最初に書かれた当時、AVMの組版における推奨される選択肢でした。残念ながら、 `avm` パッケージはTeX Liveで配布されていないため、Overleafユーザーはコピー（`avm.sty`）をプロジェクトにアップロードする必要があります。これに対応するため、 [Overleaf Galleryプロジェクト](https://www.overleaf.com/latex/templates/examples-of-attribute-value-matrices/fnrbcjztvjjv) この記事に付随するものには、 `avm` xr

〜の代替として `avm`、 [`langsci-avm` パッケージ](https://ctan.org/pkg/langsci-avm?lang=en)は現在TeX Liveで利用可能になっており、Overleafから直接利用できます。ただし、構文や機能の違いにより、 `avm`この記事中の -ベースの例は、〜ではコンパイルされません `langsci-avm` 一部編集が必要です。移行の指針については、 [`langsci-avm` ドキュメント](http://mirrors.ctan.org/macros/latex/contrib/langsci-avm/langsci-avm.pdf) からの移行に関するガイダンスとして `avm` から `langsci-avm`.

## 使い始める

次の `avm` 以下の例に示すように、属性値行列を作成するための environment を使用します：

```latex
\documentclass{article}
\usepackage{avm}

\begin{document}

\begin{avm}
    \[ cat\|subcat & \<NP$_{it}$, NP$_{\@2}$, S[comp]:\@3\> \\
       content & \[ relation & \bf bother\\
                    bothered & \@2 \\
                    soa-arg  & \@3 \] \]
\end{avm}

\end{document}
```

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

![LaTeXを使用してOverleaf上で組版された属性値行列](/files/0ac15141e9babb3b08ee3ba16e90d115ff620910)

\* AVMを試すには、この [Overleafプロジェクト](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## 基本的な使い方

で開いてください。 `avm` 属性値行列を\begin{avm}環境内で組版するには、知っておくべきコマンドがいくつかあります：

* `\avmfont{\sc}`：行列で使用されるフォントを変更します。この場合はスモールキャップになります。ほかの [フォントファミリー](/latex/ja/fonto/01-font-sizes-families-and-styles.md) でも使用できます。フォントサイズと [書体](/latex/ja/fonto/02-font-typefaces.md) もここで指定できます。
* `\begin{avm}` や `\end{avm}`：属性値行列を作成する環境の開始と終了を示します。
* `\[` や `\]`：行列の各部分を区切る角括弧を出力します。ほかの括弧もコマンド `\<`, `\>`, `\{` や `\}`.
* `\\`：改行を挿入します。
* `&`：同じ行内に列区切りを作成します。

次の例はこれらを示しています：

```latex
\documentclass{article}

\usepackage{avm}
\avmfont{\sc}

\begin{document}
\begin{avm}
    \[ subj & \[ pers & 3 \\
                 num & sg \\
                 gend & masc\\
                 pred & \rm ‘pro’ \]\\

        pred & \rm ‘eat\q<SUBJ, OBJ\q>’\\

                 obj & \[ pers & 3 \\
                 num & pl \\
                 gend & fem \\
                 pred & \rm ‘pro’ \]
        \]
\end{avm}

\end{document}
```

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

![LaTeXを使用してOverleaf上で組版された属性値行列](/files/19e4f9d31a03c067e43f7d102a685e7c43b0b349)

\* AVMを試すには、この [Overleafプロジェクト](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## 非揃え列

行が長すぎる場合、出力を改善するために非揃え列を使うと便利なことがあります：

```latex
\begin{avm}
    \[ \avmspan{system\|local\|content\; \@2} \\
        qstore & \[det & \textnormal{forall} \\
                   restpar & \@2 \[para & \@1 \\
                                   restr & \[reln & \textnormal{book} \\
                                             inst & \@1 \] \] \] \]
\end{avm}
```

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

![LaTeXを使用してOverleaf上で組版された属性値行列](/files/dc2fb309ea910c80f29f64be7823e1512d401f13)

コマンド `\avmspan{}` は、その引数の列揃えを無効にします。一方、コマンド `\;` は、通常より少し長い水平の空白を挿入して、見やすい区切りを作ります。

\* AVMを試すには、この [Overleafプロジェクト](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

## ソートラベル

AVMの隅にソートラベルを追加することができます。2つのスタイルがあります。1つ目は、ラベルを行列の内側に表示する方法です：

```latex
\avmsortfont{\it}
\avmvalfont{\it}
\begin{avm}
    \[ \asort{indexed-obj}
       index & \[\asort{index}
                  variable & \@1 \[\asort{variable}
                                    per & 3rd \\
                                    num & sing \\
                                    gend & neut \] \\
                  restriction & \[\asort{psoa}
                                  relation & book \\
                                  instance & \@1 \] \] \]
\end{avm}
```

このコードは次の出力を生成します：

![LaTeXを使用してOverleaf上で組版された属性値行列](/files/61d3302037ff395e422ceb234f9d8ce0623fcdfc)

\* AVMを試すには、この [Overleafプロジェクト](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

この例には3つの新しいコマンドがあります：

* `\avmsortfont{\it}`：ソートキーのフォントを設定します。この場合は斜体ですが、ほかの [フォントスタイルとサイズも使用できます](/latex/ja/fonto/01-font-sizes-families-and-styles.md)
* `\avmvalfont{\it}`：AVM内の値のフォントを設定します。この場合は斜体です。
* `\asort{*key*}`：ソート `*key*`.

次の例に示すように、ソートラベルを前の列に重ねて配置することもできます：

```latex
\avmvalfont{\it}
\avmsortfont{\it}
\begin{avm}
    \sort{indexed-obj}{\[ index & \osort{index}{\[
          variable & \@1 \osort{variable}{\[  per & 3rd \\
                                              num & sing \\
                                              gend & neut \]} \\
          restriction & \osort{psoa}{\[relation & book \\
                                       instance & \@1 \]} \]} \]}
\end{avm}
```

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

![LaTeXを使用してOverleaf上で組版された属性値行列](/files/9ee4d446d8c4f8aae0409d3baf36dc2fef46f934)

\* AVMを試すには、この [Overleafプロジェクト](https://www.overleaf.com/project/new/template/26428?id=113292459\&templateName=Example+project+demonstrating+attribute+value+matrices\&latexEngine=pdflatex\&texImage=texlive-full%3A2022.1\&mainFile=)

2つの新しいコマンドがあります：

* `\sort{*label*}`： `*label*`を、その表示される列のスペースを使って出力します。
* `\osort{*label*}`： *label* 衝突や利用可能な空きスペースを確認せずに重ね合わせます。

## リファレンスガイド

利用可能な括弧は **avm** xr

| コマンド    | 出力                                                                  |
| ------- | ------------------------------------------------------------------- |
| `\{ \}` | ![AVMbraces.png](/files/a62ece60c90dd21c44bdae4c275a39d4c13c658e)   |
| `\[ \]` | ![AVMbrackets.png](/files/94dcaf5ee220a7890aef10e9088295ececf53829) |
| `\< \>` | ![AVMchevrons.png](/files/4df838ac0f907d1eaaa3b18aa6203194198b2667) |

## さらに読む

詳細については

* [この **avm** パッケージのドキュメント](http://nlp.stanford.edu/manning/tex/avm-doc.pdf)
* [この **avm.sty** ソースコード](http://nlp.stanford.edu/manning/tex/avm.sty)
* [フォントサイズ、ファミリー、スタイル](/latex/ja/fonto/01-font-sizes-families-and-styles.md)
* [フォントの書体](/latex/ja/fonto/02-font-typefaces.md)
* [表](/latex/ja/to/01-tables.md)
* [角括弧と丸括弧](/latex/ja/shu-xue/03-brackets-and-parentheses.md)


---

# 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/fen-ye-bie/10-attribute-value-matrices.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.
