From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: emacs-orgmode@gnu.org
Subject: Re: Automatically escaping single spaces
Date: Mon, 18 Mar 2013 17:31:13 +0100 [thread overview]
Message-ID: <20130318173113.1ab123fe@aga-netbook> (raw)
In-Reply-To: <20130318134024.GC27876@kuru.dyndns-at-home.com>
Dnia 2013-03-18, o godz. 14:40:24
Suvayu Ali <fatkasuvayu+linux@gmail.com> napisał(a):
> Hi Orgers,
>
> 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.
>
> 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,
>
> Thanks for any ideas.
>
> Cheers,
>
>
> Footnotes:
>
> [1] I have (org-entities-user '(("space" "~" nil " " " " " " " "))) in
> my Org settings.
>
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
next prev parent reply other threads:[~2013-03-18 16:31 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-18 13:40 Automatically escaping single spaces Suvayu Ali
2013-03-18 16:31 ` Marcin Borkowski [this message]
2013-03-19 3:59 ` Aaron Ecay
2013-03-19 15:20 ` Ivan Andrus
2013-03-19 16:05 ` Rasmus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130318173113.1ab123fe@aga-netbook \
--to=mbork@wmi.amu.edu.pl \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).