LyXPROBLEM No space after inverted commas

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

PROBLEM No space after inverted commas

Post by clemens »

Hello,

I am preparing a pdf file with Lyx, using XeTex, book (Memoir) and the following preamble:

Code: Select all

\usepackage[cm-default]{fontspec} 
%\usepackage{xunicode}
\usepackage{xltxtra}
\defaultfontfeatures{Mapping=tex-text}
\fontspec{Times New Roman}
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text}
\setmainfont{Times New Roman} 
%\headstyles{dowding}
\headstyles{default}
\chapterstyle{crosshead}
\frenchspacing
\makeatother
\usepackage{babel}
\usepackage{xeCJK}
%\CJKlanguage{Japanese}
\setCJKmainfont{HiraMinPro-W3}
\usepackage{array}
\usepackage{adjustbox}
When making the pdf, most of the times the space after an inverted comma is virtually zero, making it very ugly (see the attached image as a reference).
I wonder if this is a default behavior related to some arcane typographic rule or if it is due to some conflict between packages.
I would like to solve the problem without having to manually add protected space.
Thank you,

Clemens
Attachments
inverted comma problem.png
inverted comma problem.png (10.12 KiB) Viewed 4296 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

PROBLEM No space after inverted commas

Post by Johannes_B »

Hi, i think we need a bit more details.
You have told us the documentclass, but i have absolutely no idea how you are getting those glyphs. Is this a cite command? Are you doing this using a macro? Is it completely done by hand?

Please try to prepare a minimal LyX example and export it to LaTeX. That way we can test within a second and provide solutions or workarounds. If the problem at hand has nothing to do with the font Times New Roman, please leave it out.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
clemens
Posts: 77
Joined: Fri Jun 26, 2009 11:57 am

Re: PROBLEM No space after inverted commas

Post by clemens »

Hello,

thank you for your kind reply. I am using Lyx with XeTex, exporting to PDF (XeTex)
Although I am not new to Lyx, I still consider myself a newbie. This is actually the first minimal working sample that I create, I hope it is alright.
The culprit seems to be xeCJK, but I have no idea on how to modify its behavior to make it work properly.
Cheers
Attachments
minimal14.pdf
(30.8 KiB) Downloaded 440 times
minimal14.lyx
(1.9 KiB) Downloaded 358 times
Post Reply