Hello, I'm trying to get opening and closing single quotes correct.
I'm typing in my Lyx file : 'This must be printed between single quotes' and I get \textquoteright This must be printed between single quotes \textquoteright when I want \textquoteleft This must be printed between single quotes \textquoteright I have tried to use the \MakeInnerQuote macro from the Csquotes package but it does not work because the apostrophe (') is an active character in LaTeX. They must be some magic stuff with catcodes to make it the apostrophe an active character but I cannot make it work. Thanks, Charles ------------------------------------------------------------------- %% LyX 2.1.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[twoside,french]{scrartcl} \usepackage{fontspec} %\setmainfont[Mapping=tex-text,Numbers=OldStyle]{Sabon LT Std} \usepackage{fancyhdr} \pagestyle{fancy} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage[style=french]{csquotes} \catcode`\'=12 %\MakeInnerQuote{'} %<--That does not work \makeatother \usepackage{xunicode} \usepackage{polyglossia} \setdefaultlanguage{french} \begin{document} 'Single Quote' `Single Quote` \guillemotleft{}Double Quote\guillemotright{} \end{document}