OSDN Git Service

fix
[luatex-ja/luatexja.git] / test / test13-listings.tex
index 4e2c8c2..29ea806 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
@@ -144,7 +145,7 @@ the first line of the listing is not rendered.
 IVS対応1: \texttt{vsraw=false} (default)
 
 \begin{LTXexample}[escapechar=\%, basicstyle=\tt]
-1234567890
+123456789012345678
 1葛󠄀城,葛󠄁飾
 󠄀a
 \end{LTXexample}
@@ -152,7 +153,7 @@ IVS対応1: \texttt{vsraw=false} (default)
 IVS対応2: \texttt{vsraw=true}
 
 \begin{LTXexample}[escapechar=\%,vsraw, basicstyle=\tt]
-1234567890
+123456789012345678
 1葛󠄀城,葛󠄁飾アイウ
 \end{LTXexample}
 
@@ -183,14 +184,37 @@ 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 あ
+
+あ\lstinline[basicstyle=\tt]{bar  s}hoge
+
+あ\lstinline[basicstyle=\tt]{bar..{a}hoge
 
-foo \lstinline[basicstyle=\tt]!あbar! baz あ
-あ\lstinline[basicstyle=\tt]{いbar}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}
+あいうえお
+
+\bigskip
+\textbf{Escape character}
+\begin{lstlisting}[escapechar=\#,basicstyle=\ttfamily]
+1234567890123457890
+aiu# \textcolor{red}{e} #o#\textcolor{red}{ka}#ki
+\end{lstlisting}
+
 \end{document}