-
-
Save aminophen/19d81a9539886ce2695ef6f8fb9c9891 to your computer and use it in GitHub Desktop.
upBibTeX: 関数 is.kanji.str$ の和文欧文の区別のテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See texjporg/tex-jp-build#109