Re: [O] nbsp and /italics/

2012-10-18 Thread Suvayu Ali
On Tue, Oct 16, 2012 at 10:14:24PM +0200, Rasmus wrote: > 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. . . > I believe you need to group the whole regexp for the {1} to work. Try some

Re: [O] nbsp and /italics/

2012-10-16 Thread Rasmus Pank Roulund
Rasmus writes: > 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. . . Here's one that seems to work in the primitive cases, but not when there's a link. Tested on test of tilde.

Re: [O] nbsp and /italics/

2012-10-16 Thread Rasmus
t...@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))) > (

Re: [O] nbsp and /italics/

2012-10-14 Thread Thomas S. Dye
Thanks Nicolas, Works like magic. All the best, Tom Nicolas Goaziou writes: > Hello, > > t...@tsdye.com (Thomas S. Dye) writes: > >> Using the filter you kindly provided (below) and this construct, "/Sida/ >> cf. /fallax/" I get the following incorrect LaTeX export, "\emph{Sida} >> cf.~/fallax

Re: [O] nbsp and /italics/

2012-10-14 Thread Nicolas Goaziou
Hello, t...@tsdye.com (Thomas S. Dye) writes: > 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}". This is because `org-emph-re' only ac

Re: [O] nbsp and /italics/

2012-10-14 Thread Thomas S. Dye
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 t...@tsdye.com (Thomas S. Dye) writes: > Aloha Nicolas, > > Using the filter you kindly provide

[O] nbsp and /italics/

2012-10-14 Thread Thomas S. Dye
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