emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: allow italic quote marks? org-emphasis-regexp-components
Date: Fri, 19 Jun 2015 13:51:45 +0100	[thread overview]
Message-ID: <87si9nsvxa.fsf@gmail.com> (raw)
In-Reply-To: <87mvzwx2rb.fsf@gmx.us>



Rasmus writes:

> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> On 2015-06-18, at 18:02, Kaushal <kaushal.modi@gmail.com> 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

      reply	other threads:[~2015-06-19 12:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 10:12 allow italic quote marks? org-emphasis-regexp-components Myles English
2015-06-18  2:46 ` Steven Arntson
2015-06-18  3:19   ` Kaushal
2015-06-18  3:23     ` Kaushal
2015-06-18  7:53     ` Marcin Borkowski
2015-06-18 14:29       ` Kaushal
2015-06-18 15:50       ` Myles English
2015-06-18 16:02         ` Kaushal
2015-06-18 17:04           ` Steven Arntson
2015-06-18 18:29           ` Marcin Borkowski
2015-06-18 18:58             ` Rasmus
2015-06-19 12:51               ` Myles English [this message]

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=87si9nsvxa.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus@gmx.us \
    /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).