diff options
Diffstat (limited to 'Build/source/texk/web2c/uptexdir/tests/unibib.tex')
-rw-r--r-- | Build/source/texk/web2c/uptexdir/tests/unibib.tex | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/uptexdir/tests/unibib.tex b/Build/source/texk/web2c/uptexdir/tests/unibib.tex new file mode 100644 index 00000000000..918d11f37b2 --- /dev/null +++ b/Build/source/texk/web2c/uptexdir/tests/unibib.tex @@ -0,0 +1,98 @@ +% 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, +} +\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} |