emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: tsd@tsdye.com (Thomas S. Dye)
To: Org-mode <emacs-orgmode@gnu.org>
Subject: Re: nbsp and /italics/
Date: Sun, 14 Oct 2012 06:37:39 -1000	[thread overview]
Message-ID: <m1wqytxb58.fsf@tsdye.com> (raw)
In-Reply-To: <m11uh1yrhm.fsf@tsdye.com> (Thomas S. Dye's message of "Sun, 14 Oct 2012 05:59:17 -1000")

Arghh.  I should have pointed out that this is the new exporter, and
that the first argument to replace-regexp-in-string is an alternative
underscore, not the blank space that shows up in my gnus.

Tom

tsd@tsdye.com (Thomas S. Dye) writes:

> Aloha Nicolas,
>
> Using the filter you kindly provided (below) and this construct, "/Sida/
> cf. /fallax/" I get the following incorrect LaTeX export, "\emph{Sida}
> cf.~/fallax/".  I'm expecting "\emph{Sida} cf.~\emph{fallax}".
>
> All the best,
> Tom
>
> #+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

-- 
Thomas S. Dye
http://www.tsdye.com

  reply	other threads:[~2012-10-14 16:37 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 [this message]
2012-10-14 20:11 ` Nicolas Goaziou
2012-10-14 22:40   ` Thomas S. Dye
2012-10-16 20:14 ` Rasmus
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=m1wqytxb58.fsf@tsdye.com \
    --to=tsd@tsdye.com \
    --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).