> For the complete documentation index, see [llms.txt](https://ayakaleaf-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://ayakaleaf-pro.ayaka.space/latex/ja/to-2/75-inserting-emojis-in-latex-documents-on-overleaf.md).

# OverleafのLaTeX文書に絵文字を挿入する

*注: The `[twemojis](https://www.ctan.org/pkg/twemojis)` パッケージは* [*TeX Live*](/latex/ja/kurasufairu/02-overleaf-and-tex-live.md)*に含まれていないため、Overleaf では使用できません。*

## 絵文字文字と Overleaf エディタ

Overleaf では、次の文字を含むファイルを保存できません [NUL 文字](https://en.wikipedia.org/wiki/Null_character) または Unicode の [基本多言語面 (BMP)](https://en.wikipedia.org/wiki/Plane_\(Unicode\)).

外の文字を含むファイルを編集できません。Unicode は多くの絵文字文字を基本多言語面の外側のコードポイントに割り当てています。これらは [Plane 1](https://en.wikibooks.org/wiki/Unicode/Character_reference/1F000-1FFFF)でエンコードされており、つまりそのコードポイントは U+10000–U+1FFFF の範囲、具体的には U+1F000–U+1FFFF にあります。これは、絵文字文字を Overleaf エディタにコピー＆ペーストしたい人にとって重要な意味を持ちます。現時点では、Overleaf のテキストエディタは基本多言語面内の文字しか扱えませんが、将来のアップグレードで非 BMP 文字のサポートが導入されることを期待しています。

😀 のような絵文字、またはその他の非 BMP 文字を Overleaf エディタに貼り付けると、文字 �� に変換されます。ただし、非 BMP の UTF-8 シーケンスを含むテキストファイルはアップロードできます。それらは Overleaf エディタ内では編集できませんが、適切な LaTeX のファイル取り込みコマンドを使って文書内に挿入できます。

以下の例に示すように、LaTeX パッケージが提供する適切なフォントとコマンドを使って絵文字を挿入できます。

## モノクロ絵文字

使用できます `\symbol` または `\char` コマンドを `fontspec`, [XƎLaTeX または LuaLaTeX](/latex/ja/narejjibsu/026-changing-compiler.md) と適切なフォントと組み合わせて使います。たとえば、 [`emoji` パッケージ](https://ctan.org/pkg/emoji?lang=en)パッケージを使わなくても、Symbola フォントでモノクロ絵文字を挿入できます:

```latex
落ち葉: {\fontspec{Symbola}\symbol{"1F343}}

または

落ち葉: {\fontspec{Symbola}\char"1F343}
```

[このモノクロ絵文字の例を Overleaf で開く](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Monochrome+emoji\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bfontspec%7D%0A%5Cusepackage%7Bparskip%7D%0A%0A%5Cbegin%7Bdocument%7D%0AFalling+leaves%3A+%7B%5Cfontspec%7BSymbola%7D%5Csymbol%7B%221F343%7D%7D%0A%0Aor%0A%0AFalling+leaves%3A+%7B%5Cfontspec%7BSymbola%7D%5Cchar%221F343%7D%0A%5Cend%7Bdocument%7D)

これにより、次の出力が得られます ![Symbola-falling-leaves.png](/files/c138c3ab941ec827c5cd37b72f6242b091963023)

絵文字のコードポイントは次で確認できます [この Web ページ](https://unicode.org/emoji/charts/emoji-list.html).

## カラー絵文字

カラー絵文字を使いたい場合は、 `[emoji](https://www.ctan.org/pkg/emoji)` パッケージを見てください。これは LuaLaTeX + HarfBuzz のテキスト整形エンジンを使って、カラー絵文字フォントに正しくアクセスします。 [プロジェクトのコンパイラを LuaLaTeX に変更する](/latex/ja/narejjibsu/026-changing-compiler.md)必要があります。次に `emoji` パッケージを読み込み、 `\emoji{leaves}`.

```latex
で生成される対応するポイントサイズについては、
\usepackage{emoji}

\begin{document}

以下は、\texttt{emoji} パッケージと LuaLaTeX を使ったカラー絵文字です:
\emoji{leaves}
\emoji{rose}

絵文字修飾子を使えます:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}

\end{document}
```

[Overleaf でこのライブ例を見る](https://www.overleaf.com/docs?engine=lualatex\&snip_name=colour+emojis+using+LuaLaTeX\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bemoji%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%0AThese+are+colour+emojis+using+the+%5Ctexttt%7Bemoji%7D+package+and+LuaLaTeX%3A%0A%5Cemoji%7Bleaves%7D%0A%5Cemoji%7Brose%7D%0A%0AYou+can+use+emoji-modifiers%3A%0A%5Cemoji%7Bwoman-health-worker-medium-skin-tone%7D%0A%5Cemoji%7Bfamily-man-woman-girl-boy%7D%0A%5Cemoji%7Bflag-malaysia%7D%0A%5Cemoji%7Bflag-united-kingdom%7D%0A%0A%5Cend%7Bdocument%7D)

![NotoEmoji-demo.png](/files/221af00e9bd50b526fe6750c0a4f11106374223a)

Unicode CLDR (Common Locale Data Repository) の名前を調べることができます [こちら](https://unicode.org/emoji/charts/emoji-list.html)。ただし、名前の空白はハイフンに置き換えるのを忘れないでください。あるいは、 [その `emoji` パッケージドキュメント](http://texdoc.net/pkg/emoji) そのものを参照してもかまいません。

## 別の絵文字フォントを選ぶ

Overleaf では、デフォルトの絵文字フォントは Noto Color Emoji です。別の絵文字フォントを選択できます:

```latex
\setemojifont{TwemojiMozilla}
```

![TwemojiMozilla-demo.png](/files/d7e30ab0ee5f6d1ffcc1c1efaf453180d4526b36)

```latex
で生成される対応するポイントサイズについては、
\usepackage{emoji}

\begin{document}
\setemojifont{TwemojiMozilla}
以下は、\texttt{emoji} パッケージと LuaLaTeX を使ったカラー絵文字です:
\emoji{leaves}
\emoji{rose}

絵文字修飾子を使えます:
\emoji{woman-health-worker-medium-skin-tone}
\emoji{family-man-woman-girl-boy}
\emoji{flag-malaysia}
\emoji{flag-united-kingdom}

\end{document}
```

[この TwemojiMozilla の例を Overleaf で開く](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Colour+emojis+using+the+TwemojiMozilla+font+and+LuaLaTeX\&snip=%5Cdocumentclass%5B12pt%5D%7Barticle%7D%0A%5Cusepackage%7Bemoji%7D%0A%0A%5Cbegin%7Bdocument%7D%0A%5Csetemojifont%7BTwemojiMozilla%7D%0AThese+are+colour+emojis+using+the+%5Ctexttt%7Bemoji%7D+package+and+LuaLaTeX%3A%0A%5Cemoji%7Bleaves%7D%0A%5Cemoji%7Brose%7D%0A%0AYou+can+use+emoji-modifiers%3A%0A%5Cemoji%7Bwoman-health-worker-medium-skin-tone%7D%0A%5Cemoji%7Bfamily-man-woman-girl-boy%7D%0A%5Cemoji%7Bflag-malaysia%7D%0A%5Cemoji%7Bflag-united-kingdom%7D%0A%0A%5Cend%7Bdocument%7D)

## さらに読む

* [次の `emoji` パッケージ](https://www.ctan.org/pkg/emoji)
* [絵文字の CLDR 名とコードポイントの一覧](https://unicode.org/emoji/charts/emoji-list.html)
* [Overleaf プロジェクトのコンパイラを変更する](/latex/ja/narejjibsu/026-changing-compiler.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://ayakaleaf-pro.ayaka.space/latex/ja/to-2/75-inserting-emojis-in-latex-documents-on-overleaf.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.
