Ticket #34786

unwanted double width space before inline listings when using luatexja-fontspec

Open Date: 2015-01-07 08:23 Last Update: 2015-01-21 15:31

Reporter:
Owner:
(None)
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None

Details

I am seeing an extra big space (which looks like double width space) in my document before inline listings bits:

\documentclass[]{article}

\usepackage{fontspec}
\usepackage{listings}

\usepackage{luatexja-fontspec}
\setmainjfont{WenQuanYi Zen Hei}

\begin{document}

foo \lstinline!bar! baz

\end{document}

Please see http://tex.stackexchange.com/q/220987/28495 for details.

Ticket History (3/4 Histories)

2015-01-07 08:23 Updated by: wilx
  • New Ticket "unwanted double width space before inline listings when using luatexja-fontspec" created
2015-01-07 09:08 Updated by: h7k
Comment

Thanks. Fixed in the repository (commit 5b43743 or fec4e5c).


... I found another bug in luatexja + listings. If a line which has inline listings and ends with a Japanese character, the end-of-line emits an unwanted space:

\documentclass[]{article}
\usepackage{luatexja,listings}
\begin{document}
\lstinline!bar!あ
a
\end{document}

2015-01-07 11:09 Updated by: h7k
  • Resolution Update from None to Fixed
Comment

h7k への返信

If a line which has inline listings and ends with a Japanese character, the end-of-line emits an unwanted space:

Oops, that space is xkanjiskip (space between Japanese char. and non-Japanese char.), which is correct.

2015-01-21 15:31 Updated by: h7k
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2015-01-21 15:31

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login