emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* nbsp and /italics/
@ 2012-10-14 15:59 Thomas S. Dye
  2012-10-14 16:37 ` Thomas S. Dye
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Thomas S. Dye @ 2012-10-14 15:59 UTC (permalink / raw)
  To: Org-mode

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-18 11:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-10-16 22:45   ` Rasmus Pank Roulund
2012-10-18 11:35   ` Suvayu Ali

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).