summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir/tests/unibib.tex
blob: 73e6a744d7a2347a24e5a8c3c7e694bf59e003bb (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
% https://github.com/texjporg/tex-jp-build/issues/109

\begin{filecontents}[overwrite]{\jobname.bib}
%% ASCII only
@book{knuth86,
  author    = "Donald E. Knuth",
  title     = "The \TeX book",
  publisher = "Addison-Wesley",
  year      = 1986,
}

%% Latin-1
@book{björk2020,
  author    = "Tomas Björk",
  title     = "Arbitrage Theory in Continuous Time",
  publisher = "Oxford University Press",
  year      = 2020,
}

%% 日本人姓名;読み仮名つき
@book{ken-na,
  author    = "中野 賢",
  yomi      = "Ken Nakano",
  title     = "日本語{\LaTeXe}ブック",
  publisher = "アスキー",
  year      = 1996,
}

%% ギリシャ文字;ニコス・カザンザキス「饗宴」
@book{nikos,
  author    = "Νίκος Καζαντζάκης",
  yomi      = "Nikos Kazantzakis",
  title     = "Συμπόσιον",
  publisher = "京緑社",
  year      = 2020,
}

%% キリル文字;ドストエフスキー「カラマーゾフの兄弟」
@book{dostoevskii,
  title     = "Братья Карамазовы",
  author    = "Достое́вский, Фёдор Миха́йлович",
  yomi      = "Dostoevskii, F.M.",
  publisher = "Гослитиздат",
  year      = "1958",
}

%% ハングル:金萬重「九雲夢」
@book{gim,
  author    = "김 만중",
  yomi      = "Manjung Gim",
  title     = "구운몽",
  publisher = "高麗書林",
  year      = 1975,
}

%% 日本語文献;著者は非・日本人
@book{boswell,
  author     = {Boswell, Dustin and Foucher, Trevor},
  title      = {リーダブルコード ―より良いコードを書くためのシンプルで実践的
                なテクニック (Theory in practice) },
  year       = 2012,
  publisher  = {オライリージャパン},
  translator = {角 征典},
  language   = {ja},
  yomi       = {boswell}
}

%% 全角数字(17)は和文扱いとする
@book{fullwidth,
  author    = "Bar Fuga",
  yomi      = "ぜんかく",
  title     = "1",
  publisher = "TeXnician Co., Ltd.",
  year      = 2020,
}

%% 記号類(18)は欧文扱いとする
@book{kigou,
  author    = "Foo Hoge",
  yomi      = "きごうたち",
  title     = "$£(!?)☃♪、。§○●",
  publisher = "Snowman commedian Press",
  year      = 2020,
}

%% CJK統合漢字拡張B-Dのテスト
@book{imahashi,
  author    = "𫝆𫞎 姬 and 𡈽 𪧦 and 𠮷田 真",
  yomi      = "Hime Imahashi",
  title     = "CJK統合漢字拡張🄑--🄓のテスト --- その🄰",
  publisher = "冬𠘨𫝷",
  year      = 2024,
}
\end{filecontents}

\documentclass{ltjsarticle}
% ギリシャ文字・キリル文字を欧文扱い
\ltjsetparameter{jacharrange={-2}}
\usepackage{luatexja-fontspec}
\usepackage[sourcehan]{luatexja-preset}
\setmainfont{XITS}% ギリシャ文字・キリル文字を含む
\begin{document}
test
\nocite{*}
\bibliographystyle{jplain}
\bibliography{\jobname}
\end{document}