OSDN Git Service

lltjp-listings.sty: better support for \lstinline
[luatex-ja/luatexja.git] / test / test13-listings.tex
index 4e2c8c2..0274061 100644 (file)
@@ -62,6 +62,7 @@ We also avoid white band problem, by setting the value of \cs{lineskiplimit} to
  -\min(\cs{cdp}-\cs{dp}\cs{strutbox}, 0).
 \end{multline}
 
+Note: we still have a white band if the first line is line-broken.
 
 \begin{env}{\relax}
 #!/bin/sh
@@ -183,14 +184,29 @@ IVS対応2: \texttt{vsraw=true}
 \textbf{Ticket \#34786}
 \ltjsetparameter{autoxspacing=false}
 
-foo \lstinline[basicstyle=\tt]!bar! baz あ
-あ\lstinline[basicstyle=\tt]{bar}hoge
+foo \lstinline[basicstyle=\tt]!ba{}#shr! baz あ
 
-foo \lstinline[basicstyle=\tt]!あbar! baz あ
-あ\lstinline[basicstyle=\tt]{いbar}hoge
+あ\lstinline[basicstyle=\tt]{bar  s}hoge
+
+あ\lstinline[basicstyle=\tt]{bar..{a}hoge
+
+foo \lstinline[basicstyle=\tt\gtfamily]!あexit 0; #shbar! baz あ
+
+あ\lstinline[basicstyle=\tt]{いbexit #sh$ar}hoge
 
 \bigskip
 \textbf{Ticket \#35484}
 
-\colorbox{red}{\lstinline!aiueoxyz!}
+\colorbox{red}{\lstinline!aiu#sheoxyz!}
+\colorbox{red}{\lstinline!あいexit 0;#shうえお!}
+
+
+\colorbox{red}{\lstinline{aiu#sheoxyz}}
+\colorbox{red}{\lstinline{あいexit 0;#shうえお}}
+
+あおいうえお
+\begin{lstlisting}[frame=single]
+aiu
+\end{lstlisting}
+あいうえお
 \end{document}