> 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/languages/11-japanese.md).

# Japanese

Different packages exist to support Japanese typesetting for various LaTeX engines, though not all packages fully support all Japanese typesetting conventions e.g. vertical typesetting. This help article briefly outlines how to typeset Japanese with pdfLaTeX, XƎLaTeX, pTeX and LuaLaTeX.

## CJKutf8 package with pdfLaTeX

The `CJKutf8` package is sufficient if you would like to compile with pdfLaTeX.

```latex
\documentclass{article}
\usepackage{CJKutf8}
\begin{document}

\begin{CJK}{UTF8}{min}
\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる
\end{CJK}

\bigskip

Outside the environment Latin characters may be used.

\begin{CJK*}{UTF8}{goth}
\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる
\end{CJK*}
\end{document}
```

[Open this CJKutf8 example in Overleaf.](https://www.overleaf.com/docs?engine=pdflatex\&snip_name=CJKutf8+package+with+pdfLaTeX\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BCJKutf8%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Cbegin%7BCJK%7D%7BUTF8%7D%7Bmin%7D%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%5Cend%7BCJK%7D%0A%0A%5Cbigskip%0A%0AOutside+the+environment+Latin+characters+may+be+used.%0A%0A%5Cbegin%7BCJK%2A%7D%7BUTF8%7D%7Bgoth%7D%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%5Cend%7BCJK%2A%7D%0A%5Cend%7Bdocument%7D)

This example produces the following output, demonstrating Japanese text typeset using two font families:

![Example of Japanese typesetting using CJKutf8 package with pdfLaTeX](/files/vDMKjILBJb9y73nhqYpp)

The line `\usepackage{CJKutf8}` imports the `CJKutf8` which enables UTF8 encoding for Chinese, Japanese and Korean characters.

In this case, every block of Japanese text must be typed inside a `\begin{CJK*}{UTF8}{min}` environment. In that environment `UTF8` is the encoding and `min` (Mincho family) is the font to be used in section 1 of the example.

As demonstrated by section 2 of the example, you can replace `min` with `goth` to use the Gothic family; however, `CJKutf8` and pdfLaTeX are not capable of easily using other fonts.

## xeCJK package with XeLaTeX

XeLaTeX offers the possibility of using OpenType and TrueType fonts, and the `xeCJK` package provides support for Chinese, Japanese and Korean typesetting.

```latex
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{IPAMincho}
\setCJKsansfont{IPAGothic}
\setCJKmonofont{IPAGothic}
\begin{document}

\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる

\bigskip

And you can also use Latin characters within your Japanese document.

\bigskip

\begin{verbatim}
このテキストは、別のフォントを持つことになります

This is a verbatim environment using a monospaced font.
\end{verbatim}
\end{document}
```

[Open this xeCJK example in Overleaf.](https://www.overleaf.com/docs?engine=xelatex\&snip_name=xeCJK+package+with+XeLaTeX\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BxeCJK%7D%0A%5CsetCJKmainfont%7BIPAMincho%7D%0A%5CsetCJKsansfont%7BIPAGothic%7D%0A%5CsetCJKmonofont%7BIPAGothic%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%0A%5Cbigskip%0A%0AAnd+you+can+also+use+Latin+characters+within+your+Japanese+document.%0A%0A%5Cbigskip%0A%0A%5Cbegin%7Bverbatim%7D%0A%E3%81%93%E3%81%AE%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AF%E3%80%81%E5%88%A5%E3%81%AE%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%82%92%E6%8C%81%E3%81%A4%E3%81%93%E3%81%A8%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%0A%0AThis+is+a+verbatim+environment+using+a+monospaced+font.%0A%5Cend%7Bverbatim%7D%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![Example of Japanese typesetting using xeCJK package with XeLaTeX](/files/3YJ87aFHLIROKNbgIfS1)

Below is a description of each command:

* `\usepackage{xeCJK}`: this includes the package `xeCJK` which allows use of Chinese, Japanese and Korean fonts in a document to be compiled with XeLaTeX. See [this article](/latex/more-topics/08-choosing-a-latex-compiler.md) for help setting your Overleaf project's compiler.
* `\setCJKmainfont{IPAMincho}`: sets the main font used for this document.
* `\setCJKsansfont{IPAGothic}`: sets the font to be used in elements that require the sans family font.
* `\setCJKmonofont{IPAGothic}`: sets the font to be used in elements that require the monospace family font. In the example the Japanese text inside the `verbatim` environment uses this font.

### Using Google Noto fonts

Because Google Noto Fonts suitable for use with CJK typesetting are stored on Overleaf's servers, we can use them to repeat the previous example.

```latex
\documentclass{article}
\usepackage{xeCJK}
\setCJKmainfont{Noto Serif CJK JP}
\setCJKsansfont{Noto Sans CJK JP}
\setCJKmonofont{Noto Sans Mono CJK JP}
\begin{document}

\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる

\bigskip

And you can also use Latin characters within your Japanese document.

\bigskip

\begin{verbatim}
このテキストは、別のフォントを持つことになります

This is a verbatim environment using a monospaced font.
\end{verbatim}
\end{document}
```

[Open this xeCJK example in Overleaf.](https://www.overleaf.com/docs?engine=xelatex\&snip_name=xeCJK+package+with+XeLaTeX+and+Google+Noto+fonts\&snip=%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7BxeCJK%7D%0A%5CsetCJKmainfont%7BNoto+Serif+CJK+JP%7D%0A%5CsetCJKsansfont%7BNoto+Sans+CJK+JP%7D%0A%5CsetCJKmonofont%7BNoto+Sans+Mono+CJK+JP%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%0A%5Cbigskip%0A%0AAnd+you+can+also+use+Latin+characters+within+your+Japanese+document.%0A%0A%5Cbigskip%0A%0A%5Cbegin%7Bverbatim%7D%0A%E3%81%93%E3%81%AE%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%81%AF%E3%80%81%E5%88%A5%E3%81%AE%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%82%92%E6%8C%81%E3%81%A4%E3%81%93%E3%81%A8%E3%81%AB%E3%81%AA%E3%82%8A%E3%81%BE%E3%81%99%0A%0AThis+is+a+verbatim+environment+using+a+monospaced+font.%0A%5Cend%7Bverbatim%7D%0A%5Cend%7Bdocument)

This example produces the following output:

![Typesetting Japanese text on Overleaf using Google Noto fonts](/files/W04fhO6HhKxGeunHCAk8)

## The pTeX engine

Many journals and conference proceedings published in Japan use a specific Japanese LaTeX distribution called [pLaTeX](https://ctan.org/pkg/platex?lang=en), which is based on the [`jsarticle` or `jsbook` document classes](https://ctan.org/pkg/jsclasses). pLaTeX supports many Japanese typesetting conventions, including vertical typesetting.

### Using pLaTeX on Overleaf

Although pLaTeX is not listed as a user-selectable compiler in Overleaf's **Compiler** menu drop-down:

![Overleaf's list of supported compilers](/files/u3TmwYlDS7rTT763DOrH)

Overleaf can be configured to use pLaTeX by adding a small configuration file to your project: that file is called [`latexmkrc`](/latex/in-depth-articles/28-how-to-use-latexmkrc-with-overleaf.md). Here are the steps to do that:

1. [set your project's compiler setting](/latex/knowledge-base/026-changing-compiler.md) to **LaTeX**
2. add a new, empty, file called `latexmkrc` (no file extension) to your project
3. add the following lines to `latexmkrc`:

```perl
$latex = 'platex';
$bibtex = 'pbibtex';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
```

If you are using a template that was designed for `uplatex` instead, then change `platex` to `uplatex`, and `pbibtex` to `upbibtex`.

The following listings show a basic pLaTeX document together with a `latexmkrc` file used to compile it on Overleaf. Use the link below the listings to open these files on Overleaf.

**`pLaTeX-example.tex`**

```latex
\documentclass{jsarticle}
\bibliographystyle{jplain}
\title{A pLaTeX example}
\begin{document}

本稿では、文書組版システムp\LaTeX{}の使い方を解説します。p\LaTeX{}を利用するときには、
あらかじめ文章中に\TeX{}コマンドと呼ばれる組版用の指示を混在させ\ldots

\section{導入}
こんにちは世界！
\end{document}
```

**`latexmkrc`**

```latex
$latex = 'platex';
$bibtex = 'pbibtex';
$dvipdf = 'dvipdfmx %O -o %D %S';
$makeindex = 'mendex %O -o %D %S';
```

[Open this pLaTeX project on Overleaf.](https://www.overleaf.com/docs?engine=latex_dvipdf\&snip_name\[]=pLaTeX-example.tex\&snip\[]=%5Cdocumentclass%7Bjsarticle%7D%0A%5Cbibliographystyle%7Bjplain%7D%0A%5Ctitle%7BA+pLaTeX+example%7D%0A%5Cbegin%7Bdocument%7D%0A%0A%E6%9C%AC%E7%A8%BF%E3%81%A7%E3%81%AF%E3%80%81%E6%96%87%E6%9B%B8%E7%B5%84%E7%89%88%E3%82%B7%E3%82%B9%E3%83%86%E3%83%A0p%5CLaTeX%7B%7D%E3%81%AE%E4%BD%BF%E3%81%84%E6%96%B9%E3%82%92%E8%A7%A3%E8%AA%AC%E3%81%97%E3%81%BE%E3%81%99%E3%80%82p%5CLaTeX%7B%7D%E3%82%92%E5%88%A9%E7%94%A8%E3%81%99%E3%82%8B%E3%81%A8%E3%81%8D%E3%81%AB%E3%81%AF%E3%80%81%0A%E3%81%82%E3%82%89%E3%81%8B%E3%81%98%E3%82%81%E6%96%87%E7%AB%A0%E4%B8%AD%E3%81%AB%5CTeX%7B%7D%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89%E3%81%A8%E5%91%BC%E3%81%B0%E3%82%8C%E3%82%8B%E7%B5%84%E7%89%88%E7%94%A8%E3%81%AE%E6%8C%87%E7%A4%BA%E3%82%92%E6%B7%B7%E5%9C%A8%E3%81%95%E3%81%9B%5Cldots%0A%0A%5Csection%7B%E5%B0%8E%E5%85%A5%7D%0A%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E4%B8%96%E7%95%8C%EF%BC%81%0A%5Cend%7Bdocument%7D\&snip_name\[]=latexmkrc\&snip\[]=%24latex+%3D+%27platex%27%3B%0A%24bibtex+%3D+%27pbibtex%27%3B%0A%24dvipdf+%3D+%27dvipdfmx+%25O+-o+%25D+%25S%27%3B%0A%24makeindex+%3D+%27mendex+%25O+-o+%25D+%25S%27%3B\&main_document=pLaTeX-example.tex)

This example produces the following output:

![Example showing Japanese typesetting using pLaTeX in Overleaf](/files/MuznhN9NVdljF8ravKUK)

## luatex-ja package bundle with LuaLaTeX

The [luatex-ja](https://www.ctan.org/pkg/luatexja) package bundle is a relatively new effort to port pTeX's typesetting capabilities to LuaLaTeX, to leverage LuaLaTeX's scripting engine and OTF/TTF support. (Remember to [set your project's compiler to LuaLaTeX](/latex/more-topics/08-choosing-a-latex-compiler.md).) The easiest way to use it is by loading the `ltjbook`, `ltjarticle` or `ltjreport` document class:

```latex
\documentclass{ltjarticle}
\begin{document}
\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる
\end{document}
```

[Open this `ltjarticle` and LuaLaTeX example on Overleaf.](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Using+ltjarticle+and+LuaLaTeX\&snip=%5Cdocumentclass%7Bltjarticle%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![Typesetting Japanese on Overleaf using LuaLaTeX and the ltjarticle article class](/files/24QrkKl0RbjqInI9JXnW)

Or, if you would like to use a different document class, then you can load the `luatex-ja` package instead, like this:

```latex
\documentclass{scrartcl}
\usepackage{luatexja}
\begin{document}
\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる
\end{document}
```

[Open this `luatex-ja` and LuaLaTeX example on Overleaf.](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Using+luatex-ja+and+LuaLaTeX\&snip=%5Cdocumentclass%7Bscrartcl%7D%0A%5Cusepackage%7Bluatexja%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![Typesetting Japanese on Overleaf using LuaLaTeX and luatex-ja](/files/H0aJorYJ80anXiaS1FNf)

To load your own preferred fonts for the Japanese text, you'll also need the `luatexja-fontspec` package:

```latex
\usepackage[match]{luatexja-fontspec}
\setmainjfont{TakaoMincho}
\setsansjfont{TakaoGothic}
\setmonojfont{Komatuna}
```

See the [luatex-ja package documentation](http://texdoc.net/pkg/luatexja) for its other (very extensive) Japanese typesetting features and customisations.

## The jlreq class

The `[jlreq](https://www.ctan.org/pkg/jlfeq)` class is a more recent choice for typesetting Japanese documents. You can simply set `jlreq` as the document class, but it requires [LuaLaTeX](/latex/more-topics/08-choosing-a-latex-compiler.md), [pLaTeX or upLaTeX](#the-ptex-engine) as the compiler.

```latex
\documentclass{jlreq}
\begin{document}
\section{これは最初のセクションである}
日本語で \LaTeX の組版を実証するための導入部分。

フォントはまた、数学的な形態および他の環境で使用することができる
\end{document}
```

[Open this `jlreq` and LuaLaTeX example on Overleaf.](https://www.overleaf.com/docs?engine=lualatex\&snip_name=Using+jlreq+and+LuaLaTeX\&snip=%5Cdocumentclass%7Bjlreq%7D%0A%5Cbegin%7Bdocument%7D%0A%5Csection%7B%E3%81%93%E3%82%8C%E3%81%AF%E6%9C%80%E5%88%9D%E3%81%AE%E3%82%BB%E3%82%AF%E3%82%B7%E3%83%A7%E3%83%B3%E3%81%A7%E3%81%82%E3%82%8B%7D%0A%E6%97%A5%E6%9C%AC%E8%AA%9E%E3%81%A7+%5CLaTeX+%E3%81%AE%E7%B5%84%E7%89%88%E3%82%92%E5%AE%9F%E8%A8%BC%E3%81%99%E3%82%8B%E3%81%9F%E3%82%81%E3%81%AE%E5%B0%8E%E5%85%A5%E9%83%A8%E5%88%86%E3%80%82%0A%0A%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%81%AF%E3%81%BE%E3%81%9F%E3%80%81%E6%95%B0%E5%AD%A6%E7%9A%84%E3%81%AA%E5%BD%A2%E6%85%8B%E3%81%8A%E3%82%88%E3%81%B3%E4%BB%96%E3%81%AE%E7%92%B0%E5%A2%83%E3%81%A7%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E3%81%93%E3%81%A8%E3%81%8C%E3%81%A7%E3%81%8D%E3%82%8B%0A%5Cend%7Bdocument%7D)

This example produces the following output:

![Japanese text typeset on Overleaf using the jlreq document class](/files/7BZoFANzufqATyHBTEfc)

The Overleaf Gallery contains a template demonstrating `jlreq` and LuaLaTeX, which you can [open here](https://www.overleaf.com/latex/templates/ri-ben-yu-japanese-jlreq/jjkkyvjjvvgk). The `jlreq` package documentation contains details for the [Japanese typesetting features](http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq-ja.pdf) and customisations offered.

## Further reading

For more information see

* [Supporting modern fonts with XƎLaTeX](/latex/fonts/03-xelatex.md)
* [Latex-questions/Does Overleaf support pTeX?](/latex/questions-and-answers/09-does-overleaf-support-ptex.md)
* [Typesetting quotations and quotation marks](/latex/languages/04-typesetting-quotations.md)
* [International language support](/latex/languages/03-international-language-support.md)
* [Chinese](/latex/languages/06-chinese.md)
* [French](/latex/languages/07-french.md)
* [German](/latex/languages/08-german.md)
* [Greek](/latex/languages/09-greek.md)
* [Italian](/latex/languages/10-italian.md)
* [Arabic](/latex/languages/05-arabic.md)
* [Korean](/latex/languages/12-korean.md)
* [Portuguese](/latex/languages/13-portuguese.md)
* [Russian](/latex/languages/14-russian.md)
* [Spanish](/latex/languages/15-spanish.md)
* [The not so short introduction to LaTeX2ε](http://www.ctan.org/tex-archive/info/lshort/)
* [LaTeX/Internationalization on WikiBooks](http://en.wikibooks.org/wiki/LaTeX/Internationalization)
* [LaTeX/Special\_Characters on WikiBooks](http://en.wikibooks.org/wiki/LaTeX/Special_Characters)


---

# 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/languages/11-japanese.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.
