Hi,
I am typing a document in French and I need to automatically get a fine space (unbreakable) after opening emdash and before closing dash.
How can I do that.
Best,
Fred
Fonts & Character Sets ⇒ Space before/after ---
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Space before/after ---
Welcome,
babel helps you with punctuation in french. I am not sure,though, what you mean by opening em-dash. Can you elaborate a bit on that?
EDIT: Crosspost
babel helps you with punctuation in french. I am not sure,though, what you mean by opening em-dash. Can you elaborate a bit on that?
Code: Select all
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\usepackage{csquotes}
\begin{document}
French is nice; Isn't it?
Yes! See:
\enquote{This is supposed to be a french quote}
thinking about it--this is not worth to be thought about.
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Space before/after ---
Thanks for your answer.
I have typed
And I would like tex to understand
-Fred
I have typed
blahblah ---quotehere--- blahblah
And I would like tex to understand
blahblah ---\,{}quotehere\,{}--- blahblah
-Fred
Last edited by cgnieder on Mon Nov 16, 2015 1:58 pm, edited 1 time in total.
Space before/after ---
Depending on what
and then use
Regards
blahblah
(from the example in the crosspost) semantically is supposed to mean I'd define a new macro or environmentCode: Select all
\newcommand\thought[1]{---\,#1\,---}
\thought{blahblah}
in the document.Regards
site moderator & package author
Re: Space before/after ---
Ok thanks...
No automatic trick? I mean a package option that would do the job?
No automatic trick? I mean a package option that would do the job?
Space before/after ---
No automatic trick.
Regards
---
is just a ligature and not a macro. But even if it were: it wouldn't be easy to make it know when a thought starts and when it ends. Using a macro like I suggested is a much simpler solution. Regards
site moderator & package author