Debian Codegraph @

texk/web2c/uptexdir/tests/unibib.tex

raw
1 % https://github.com/texjporg/tex-jp-build/issues/109
2
3 \begin{filecontents}[overwrite]{\jobname.bib}
4 %% ASCII only
5 @book{knuth86,
6 author = "Donald E. Knuth",
7 title = "The \TeX book",
8 publisher = "Addison-Wesley",
9 year = 1986,
10 }
11
12 %% Latin-1
13 @book{björk2020,
14 author = "Tomas Björk",
15 title = "Arbitrage Theory in Continuous Time",
16 publisher = "Oxford University Press",
17 year = 2020,
18 }
19
20 %% 日本人姓名;読み仮名つき
21 @book{ken-na,
22 author = "中野 賢",
23 yomi = "Ken Nakano",
24 title = "日本語{\LaTeXe}ブック",
25 publisher = "アスキー",
26 year = 1996,
27 }
28
29 %% ギリシャ文字;ニコス・カザンザキス「饗宴」
30 @book{nikos,
31 author = "Νίκος Καζαντζάκης",
32 yomi = "Nikos Kazantzakis",
33 title = "Συμπόσιον",
34 publisher = "京緑社",
35 year = 2020,
36 }
37
38 %% キリル文字;ドストエフスキー「カラマーゾフの兄弟」
39 @book{dostoevskii,
40 title = "Братья Карамазовы",
41 author = "Достое́вский, Фёдор Миха́йлович",
42 yomi = "Dostoevskii, F.M.",
43 publisher = "Гослитиздат",
44 year = "1958",
45 }
46
47 %% ハングル:金萬重「九雲夢」
48 @book{gim,
49 author = "김 만중",
50 yomi = "Manjung Gim",
51 title = "구운몽",
52 publisher = "高麗書林",
53 year = 1975,
54 }
55
56 %% 日本語文献;著者は非・日本人
57 @book{boswell,
58 author = {Boswell, Dustin and Foucher, Trevor},
59 title = {リーダブルコード ―より良いコードを書くためのシンプルで実践的
60 なテクニック (Theory in practice) },
61 year = 2012,
62 publisher = {オライリージャパン},
63 translator = {角 征典},
64 language = {ja},
65 yomi = {boswell}
66 }
67
68 %% 全角数字(17)は和文扱いとする
69 @book{fullwidth,
70 author = "Bar Fuga",
71 yomi = "ぜんかく",
72 title = "1",
73 publisher = "TeXnician Co., Ltd.",
74 year = 2020,
75 }
76
77 %% 記号類(18)は欧文扱いとする
78 @book{kigou,
79 author = "Foo Hoge",
80 yomi = "きごうたち",
81 title = "$£(!?)☃♪、。§○●",
82 publisher = "Snowman commedian Press",
83 year = 2020,
84 }
85
86 %% CJK統合漢字拡張B-Dのテスト
87 @book{imahashi,
88 author = "𫝆𫞎 姬 and 𡈽 𪧦 and 𠮷田 真",
89 yomi = "Hime Imahashi",
90 title = "CJK統合漢字拡張🄑--🄓のテスト --- その🄰",
91 publisher = "冬𠘨𫝷",
92 year = 2024,
93 }
94 \end{filecontents}
95
96 \documentclass{ltjsarticle}
97 % ギリシャ文字・キリル文字を欧文扱い
98 \ltjsetparameter{jacharrange={-2}}
99 \usepackage{luatexja-fontspec}
100 \usepackage[sourcehan]{luatexja-preset}
101 \setmainfont{XITS}% ギリシャ文字・キリル文字を含む
102 \begin{document}
103 test
104 \nocite{*}
105 \bibliographystyle{jplain}
106 \bibliography{\jobname}
107 \end{document}