/latex-jp

This repo contains useful information for getting started with typesetting Japanese documents in LaTeX.

Japanese typesetting with LaTeX

This repository contains useful information for getting started with typesetting Japanese documents in LaTeX.

Table of Contents

Basic Topics

Advanced Topics

  • js classes and the jis font metric
    • Explains the differences between the j classes and js classes, as well as the jis font metric. Read the main guide first.
  • Whitespace and linebreaks
    • In-depth explanation of how whitespace and line breaks are handled in Japanese documents, and how 禁則処理 (line breaking rules) are implemented.

tl;dr: Use jlreq with LuaTeX

Key points

Here is a summary of the most important points:

  • The jlreq class does pretty much everything you need:
    • based on JLREQ (the W3C specification for Japanese text layout).
    • takes document types (article, book, report) as options.
  • Use the luatexja-preset package with the deluxe option to enable multiple font weights.
  • Use the pxrubrica package to typeset furigana and kenten.

Example

The following example1 will output the beginning of "I am a cat" by Natsume Soseki, typeset vertically:

\documentclass[a4paper, book, tate, twocolumn]{jlreq}
\usepackage{bxjalipsum}
\begin{document}
\title{吾輩は猫である}% I Am A Cat
\author{夏目漱石}% Natsume Soseki
\maketitle
\jalipsum{wagahai}% 吾輩は猫である。名前... (33 paragraphs)
\end{document}

The output can be seen here.

Resources

Sources for the information in this repository, and other useful links. If using TeX Live, some of these documents can be read using texdoc.

Guides in English

Guides in Japanese

Journal articles on Japanese typesetting

Package documentation

Standards

Footnotes

  1. Slightly modified version of an example from Guide to Japanese typesetting with LaTeX.