3

I have a document written partly in French, partly in another language. For various reasons, I want to use babel and the document class roughly as shown. But I want to disable the French orthographic rule of placing a non-breaking space before ";", ":", "?" and "!". How can I achieve this? Here is an MWE:

\documentclass[10pt,a4paper,twoside,french]{book}
\usepackage{fontspec}
\usepackage{babel}
\begin{document}
Here it is; I want to remove the non-breaking space in this section: Don't I? Of course I do!
\end{document}
  • 5
    try \frenchbsetup{AutoSpacePunctuation=false} – touhami Sep 22 '15 at 6:20
  • 2
    @touhami Want to write up an answer? – Torbjørn T. Sep 22 '15 at 8:08
  • @TorbjørnT. I don't think so, Sorry and thank you. – touhami Sep 22 '15 at 20:47
2

Adding

\frenchbsetup{AutoSpacePunctuation=false}

will do.

Complete (minimal) example:

\documentclass{article}
\usepackage[french]{babel}
\usepackage{fontspec}

\frenchbsetup{AutoSpacePunctuation=false}

\begin{document}

Here it is; I want to remove the non-breaking space
in this section: Don't I? Of course I do!

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.