From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: allow italic quote marks? org-emphasis-regexp-components Date: Fri, 19 Jun 2015 13:51:45 +0100 Message-ID: <87si9nsvxa.fsf@gmail.com> References: <87ioap46w5.fsf@gmail.com> <87zj3x7mz5.fsf@stevenarntson.com> <87k2v13111.fsf@mbork.pl> <87wpz1xbgp.fsf@gmail.com> <877fr03m60.fsf@mbork.pl> <87mvzwx2rb.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5vlD-0007dc-Bi for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 08:51:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5vlA-0001Sf-2f for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 08:51:07 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:34335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5vl9-0001Ri-Rv for emacs-orgmode@gnu.org; Fri, 19 Jun 2015 08:51:03 -0400 Received: by wicnd19 with SMTP id nd19so18178264wic.1 for ; Fri, 19 Jun 2015 05:51:03 -0700 (PDT) In-reply-to: <87mvzwx2rb.fsf@gmx.us> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Marcin Borkowski writes: > >> On 2015-06-18, at 18:02, Kaushal wrote: >> >>> A quick google search comes up this these: >>> >>> http://tex.stackexchange.com/questions/83440/inputenc-error-unicode-char-u8-not-set-up-for-use-with-latex >>> http://tex.stackexchange.com/questions/4268/inputenc-error-unicode-char-u8-error-while-trying-to-write-a-degree-symbol >>> >>> Based on those solutions, may be you can add >>> >>> \DeclareUnicodeCharacter{200b}{} >>> >>> I haven't tried it, so cannot guarantee if that will work. >> >> Thanks, I'll check it in my Spare Time™. > > I use something like this: > > (defcustom rasmus/org-latex-unicode-to-tex '(("" "~") > (" " "\\,") > ("​" "")) > "list of re rep pairs which are replaced during latex export") > > (defun rasmus/org-latex-unicode-to-tex (text backend info) > "Replace unicode strings with their TeX equivalents. > > Currently: '' (no break space) to '~' > ' ' (thin space) to '\,' > '​' (zero width space) to ''." > (when (org-export-derived-backend-p backend 'latex) > (cl-loop for (re rep) in rasmus/org-latex-unicode-to-tex do > (setq text (replace-regexp-in-string re rep text t t))) > text)) > > (add-to-list 'org-export-filter-final-output-functions > 'rasmus/org-latex-unicode-to-tex) Thanks, I am using this now. Myles