summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/polyglossia/example-japanese.tex
blob: e446d245d96825dd49a207e9de63c2f349757c74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage{japanese}
\setotherlanguage{english}
\setmainfont{Noto Serif CJK JP}[Script=CJK]
\newfontfamily\japanesefont{Noto Serif CJK JP}[Script=CJK]
\begin{document}
\XeTeXlinebreaklocale "ja"
\XeTeXlinebreakskip=0em plus 0.1em minus 0.01em
\parindent0em

\begin{center}
	\abstractname
\end{center}
\begin{english}
All human beings are born free and equal in dignity and rights.
They are endowed with reason and conscience and should act towards one another in a spirit of brotherhood.
\footnote{%
	This is a footnote.}

This is today: \today
\end{english}

\section{第一条}

すべての人間は、生まれながらにして自由であり、かつ、尊厳と権利とについて平等である。人間は、理性と良心とを授けられており、互いに同胞の精神をもって行動しなければならない。

\today

localnumeral: \localnumeral{1863}

\end{document}