%#!lualatex
\documentclass{article}
-\usepackage{luatexja-fontspec}
+\usepackage{luatexja-fontspec,amsmath}
\usepackage{listings,color,showexpl,comment}
\usepackage{luatexja-otf}\directlua{luatexja.otf.enable_ivs()}
\usepackage
\fi
}{}
\DeclareKanjiFamily{JY3}{koz}{}
-\DeclareFontShape{JY3}{koz}{m}{n}{<-> s * [0.92489] KozMinPr6N-Regular:jfm=ujis}{}
-\DeclareFontShape{JY3}{koz}{m}{sl}{<-> s * [0.92489] psft:Ryumin-Light:jfm=ujis;slant=0.167}{}
+\DeclareFontShape{JY3}{koz}{m}{n}{<-> s * [1.2] KozMinPr6N-Regular:jfm=ujis}{}
+\DeclareFontShape{JY3}{koz}{m}{sl}{<-> s * [1.2] psft:Ryumin-Light:jfm=ujis;slant=0.167}{}
\DeclareFontShape{JY3}{koz}{m}{it}{<-> ssub* koz/m/sl}{}
\def\mcdefault{koz}
\setmainfont{TeX Gyre Pagella}
\setmonofont{TeX Gyre Cursor}
+\def\cs#1{\hbox{\texttt{\textbackslash #1}}}
\begin{document}
This test file is based on a.tex\footnote{This can be downloaded from {\tt https://gist.github.com/1574793}.} by x19290.
\end{lstlisting}
\newpage
-We also avoid white band problem, by setting both the height and the depth of each
-letter/word to 0\,pt.
+We also avoid white band problem, by setting the value of \cs{lineskiplimit} to
+\begin{multline}
+ -\min(\cs{cht}-\cs{ht}\cs{strutbox}, 0)\\
+ -\min(\cs{cdp}-\cs{dp}\cs{strutbox}, 0).
+\end{multline}
+
\begin{env}{\relax}
#!/bin/sh
1234567890
1あ,23
1あ2,3
+1)2,3
1234567890
\end{lstlisting}
foo \lstinline[basicstyle=\tt]!あbar! baz あ
あ\lstinline[basicstyle=\tt]{いbar}hoge
+\bigskip
+\textbf{Ticket \#35484}
+\colorbox{red}{\lstinline!aiueoxyz!}
\end{document}