From: Rasmus <rasmus@gmx.us>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: nbsp and /italics/
Date: Tue, 16 Oct 2012 22:14:24 +0200 [thread overview]
Message-ID: <87k3uqcgyn.fsf@pank.iue.private> (raw)
In-Reply-To: <m11uh1yrhm.fsf@tsdye.com> (Thomas S. Dye's message of "Sun, 14 Oct 2012 05:59:17 -1000")
tsd@tsdye.com (Thomas S. Dye) writes:
> #+name: ngz-nbsp
> #+begin_src emacs-lisp
> (defun ngz-latex-filter-nobreaks (text backend info)
> "Ensure \"_\" are properly handled in Beamer/LaTeX export."
> (when (memq backend '(e-beamer e-latex))
> (replace-regexp-in-string " " "~" text)))
> (add-to-list 'org-export-filter-plain-text-functions
> 'ngz-latex-filter-nobreaks)
> #+end_src
Hmm, I'm intrigued by this and it could solve one of my long standing
issue with Org LaTeX export.
I write all new sentences with " ", and for stuff like "fig. " I use
one space. Pretty consistently. I would love to modify the function
to recognize "point one space" as ".~" and "point double space" as
". ". (i.e. no translation).
Can anyone think of a clever regexp that recognizes the above pattern?
I tried, "\\.[ ]\{1\}" but it didn't work. And without the \{1\} it's
too strong. . .
Thanks in advance,
Rasmus
--
I almost cut my hair, it was happened just the other day
next prev parent reply other threads:[~2012-10-16 20:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-14 15:59 nbsp and /italics/ Thomas S. Dye
2012-10-14 16:37 ` Thomas S. Dye
2012-10-14 20:11 ` Nicolas Goaziou
2012-10-14 22:40 ` Thomas S. Dye
2012-10-16 20:14 ` Rasmus [this message]
2012-10-16 22:45 ` Rasmus Pank Roulund
2012-10-18 11:35 ` Suvayu Ali
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=87k3uqcgyn.fsf@pank.iue.private \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.com \
/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).