From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Automatically escaping single spaces Date: Mon, 18 Mar 2013 17:31:13 +0100 Message-ID: <20130318173113.1ab123fe@aga-netbook> References: <20130318134024.GC27876@kuru.dyndns-at-home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHcy1-0003VM-Bf for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 12:31:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHcxy-0007eJ-0n for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 12:31:21 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:51359) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHcxx-0007d2-QK for emacs-orgmode@gnu.org; Mon, 18 Mar 2013 12:31:17 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id E2C0069BF9 for ; Mon, 18 Mar 2013 17:31:15 +0100 (CET) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32M0u5dINEjz for ; Mon, 18 Mar 2013 17:31:15 +0100 (CET) Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl [213.156.105.98]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id B7D4769BEB for ; Mon, 18 Mar 2013 17:31:15 +0100 (CET) In-Reply-To: <20130318134024.GC27876@kuru.dyndns-at-home.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Dnia 2013-03-18, o godz. 14:40:24 Suvayu Ali napisa=C5=82(a): > Hi Orgers, >=20 > I use double spaces to demarcate end of sentences > (sentence-end-double-space t). Now when I use things like "e.g. " or > "Fig. ", Emacs understands it is not the end of sentence and does the > "right thing", say for filling. However when I export a phrase like > that from Org, say to LaTeX, I have to be mindful and write something > like this instead: "e.g.\space{}"[1]. Although this works, it is very > distracting while writing and prone to human error. I would like some > seamless way for Org to respect my sentence-end-double-space setting > while exporting and export single spaces as single spaces. >=20 > Can someone suggest someway to get this to work? It would be even > more awesome if this can be included in Org, i.e. respect > sentence-end-double-space in exported text by default. Hi, A simple workaround would be to use \frenchspacing in your LaTeX document (which typographic authorities suggest anyway - at least Bringhurst). The thing is, the algorithm LaTeX uses to determine whether a period ends a sentence or not is completely different from Emacs' one: for the TeX parser, any number of spaces effectively collapses into one (at least, if no special measures are taken). Anyway, you may also try "e.g.\nbsp{}this" to get a nonbreakable space. I'd also suggest changing your org-entities-user so that \space maps to either "\space" or "\ " in LaTeX - this way you get breakable spaces, too. As a feature request: what about including (1) \frenchspacing in the exported LaTeX file by default and (2) "\ " mapped to "\ " in LaTeX export? Anyway, for all people interested in the subject (from both typographical and TeXnical points of view), I'd strongly suggest reading through e.g. http://tex.stackexchange.com/q/4705/5626 . Best, >=20 > Thanks for any ideas. >=20 > Cheers, >=20 >=20 > Footnotes: >=20 > [1] I have (org-entities-user '(("space" "~" nil " " " " " " " "))) in > my Org settings. >=20 --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University