X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test%2Ftest13-listings.tex;h=11a2cc586dae8aa6ffcdeb08ebeefd3975d1ef89;hb=cf51a2259a27eeed9a3d5d0c40c767a5e6bc403e;hp=efaf11fbdefaf61c7534f7de7485a412e4438d08;hpb=1d4a63d3da3d8d131391178d265c58aed1e6bdd5;p=luatex-ja%2Fluatexja.git diff --git a/test/test13-listings.tex b/test/test13-listings.tex index efaf11f..11a2cc5 100644 --- a/test/test13-listings.tex +++ b/test/test13-listings.tex @@ -1,8 +1,8 @@ %#!lualatex \documentclass{article} -\usepackage{luatexja} -\usepackage{palatino,listings,color,showexpl} +\usepackage{luatexja-fontspec} +\usepackage{listings,color,showexpl} \usepackage [ papersize={100mm,100mm}, @@ -13,7 +13,7 @@ \lstset { - language=sh, + language=sh, extendedchars=false, backgroundcolor=\color[gray]{.75}, breaklines=true, basewidth={0.55\zw, 0.45em}, @@ -32,6 +32,9 @@ }{} \DeclareFontShape{JY3}{mc}{m}{sl}{<-> s * [0.92489] psft:Ryumin-Light:jfm=ujis;slant=0.167}{} \DeclareFontShape{JY3}{mc}{m}{it}{<-> ssub* mc/m/sl}{} + +\setmainfont{TeX Gyre Pagella} +\setmonofont{TeX Gyre Cursor} \begin{document} This test file is based on a.tex\footnote{This can be downloaded from {\tt https://gist.github.com/1574793}.} by x19290. @@ -98,4 +101,27 @@ the first line of the listing is not rendered. 長い長い長い長い長い長い長い長い長い長い長い長い)(長い \end{env} +\newpage +\textbf{Ticket \#29604} + +\setmonofont{DejaVu Sans Mono} +\ltjsetparameter{jacharrange={-2,-3,-8}} +ギリシャ文字欧文扱い + +\begin{lstlisting}[basewidth=.5em,basicstyle=\tt, emph={TeX}, emphstyle=\color{red}] +01234567890123456789 +!あ!漢!α!×! +\TeX はギリシャ文字のΤ-Ε-Χ(タウ・イプシロン・カイ)であるから、…… +\TeX is an abbreviation of τέχνη (ΤΕΧΝΗ – technē). +\end{lstlisting} + +\ltjsetparameter{jacharrange={+2,+8,+3}} +ギリシャ文字和文扱い + +\begin{lstlisting}[basewidth=.5em,basicstyle=\tt, emph={TeX}, emphstyle=\color{red}] +01234567890123456789 +!あ!漢!α!×! +\TeX はギリシャ文字のΤ-Ε-Χ(タウ・イプシロン・カイ)であるから、…… +\TeX is an abbreviation of τέχνη (ΤΕΧΝΗ – technē). +\end{lstlisting} \end{document}