Tag Info

New answers tagged


If you need to load code after babel has made characters active it is usually best to locally undo that, here it seems to work to turn off : \documentclass{article} \usepackage[T1]{fontenc} \usepackage{tikz} \usepackage[french]{babel} \usetikzlibrary{babel} \begin{document} \shorthandoff{:}% \usetikzlibrary{shapes.misc} \shorthandon{:}% \end{document}


If you compile your document using a UTF-8 aware engine such as LuaTeX or XeTeX, the code works: % Compile with LuaLaTeX or XeLaTeX \documentclass[french]{article} \usepackage{fontspec} \usepackage{babel} \usepackage[]{qrcode} \begin{document} \qrcode[]{ààààççççééééùùùùïïï}% produces no error: accented characters \bigskip \qrcode[]{Are accented characters ...


You are saving your files in different encodings. Configure your editor to save all files in UTF-8 then use the [utf8] option,


You can define \dashquote which works in pairs. First (and each odd) occurrence of the \dashquote works like --~ and second (and each even) occurrence of the \dashqoute works like ~--. And finally, you can set (in XeTeX) the unicoded character — as an active character and define it as \dashquote. ...


Use the UTF-8 character U+2014 (EM DASH) or \textemdash: \documentclass{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage[babel,french=guillemets*]{csquotes} \begin{document} \parbox{0pt}{beginning ---~exemple~--- end} \bigskip \parbox{0pt}{beginning \textemdash~exemple~\textemdash{} end} \bigskip ...


I don't know if there's a better system. This one only works between two em-dashes, though. EDIT: I didn't see that you used XeLaTeX \documentclass{scrbook} \usepackage{expl3} \usepackage{newunicodechar} \newunicodechar{—}{\delimitedbyemdash} \def\delimitedbyemdash#1—{\textemdash~\csname tl_trim_spaces:n\endcsname{#1}~\textemdash} \begin{document} Is ...

Top 50 recent answers are included