[-- Attachment #1: Type: text/plain, Size: 415 bytes --] I feel like I've seen the answer to this somewhere but I can't find it -- is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)? \rightarrow will work, but doesn't give me the visual cue I want when working in org. And entering unicode directly in org is pretty distracting for me, as the gnome unicode shortcuts seem to turn themselves on and off whenever I upgrade. thanks! m [-- Attachment #2: Type: text/html, Size: 522 bytes --]
Not an answer to your question, but alternative: the company-math[1] package makes it really easy to insert unicode. Best, Ista [1] https://github.com/vspinu/company-math On Mon, Mar 23, 2015 at 12:23 PM, Matt Price <moptop99@gmail.com> wrote: > I feel like I've seen the answer to this somewhere but I can't find it -- is > it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)? > > \rightarrow will work, but doesn't give me the visual cue I want when > working in org. And entering unicode directly in org is pretty distracting > for me, as the gnome unicode shortcuts seem to turn themselves on and off > whenever I upgrade. > > thanks! > m >
Matt Price <moptop99@gmail.com> writes: > I feel like I've seen the answer to this somewhere but I can't find it -- > is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)? Do you want to render it in the buffer or on export? For the buffer you could use prettify-symbols-mode. > \rightarrow will work, but doesn't give me the visual cue I want when > working in org. With org-entities you can have it displayed as the equivalent unicode characters of e.g. \rightarrow. With cdlatex you can insert \rightarrow quickly (on my keyboard: "¨>"). —Rasmus -- In theory, practice and theory are the same. In practice they are not
On 2015-03-23, at 17:48, Ista Zahn <istazahn@gmail.com> wrote: > Not an answer to your question, but alternative: the company-math[1] > package makes it really easy to insert unicode. Also, TeX input method. Also, C-x 8 RET 2192 RET. Also, filters. > Best, > Ista Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University
Rasmus wrote: > Matt Price <moptop99-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes: > >> I feel like I've seen the answer to this somewhere but I can't find it -- >> is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)? > > Do you want to render it in the buffer or on export? For the buffer you > could use prettify-symbols-mode. ... by adding the following into your .emacs: --8<---------------cut here---------------start------------->8--- ;; Show entities as UTF8 characters. (setq org-pretty-entities t) ; emsp, etc. --8<---------------cut here---------------end--------------->8--- >> \rightarrow will work, but doesn't give me the visual cue I want when >> working in org. > > With org-entities you can have it displayed as the equivalent unicode > characters of e.g. \rightarrow. With cdlatex you can insert \rightarrow > quickly (on my keyboard: "¨>"). Best regards, Seb -- Sebastien Vauban
Sebastien Vauban <sva-news@mygooglest.com>
writes:
> Rasmus wrote:
>> Matt Price <moptop99@gmail.com> writes:
>>
>>> I feel like I've seen the answer to this somewhere but I can't find it --
>>> is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)?
>>
>> Do you want to render it in the buffer or on export? For the buffer you
>> could use prettify-symbols-mode.
>
> ... by adding the following into your .emacs:
>
> ;; Show entities as UTF8 characters.
> (setq org-pretty-entities t) ; emsp, etc.
This would work for "\rightarrow" but I don't think you can configure it
to support "->". For that you'd need prettify-symbols-mode, I think.
—Rasmus
--
Dung makes an excellent fertilizer
Rasmus wrote:
> Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org> writes:
>> Rasmus wrote:
>>> Matt Price <moptop99-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>>
>>>> I feel like I've seen the answer to this somewhere but I can't find it --
>>>> is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)?
>>>
>>> Do you want to render it in the buffer or on export? For the buffer you
>>> could use prettify-symbols-mode.
>>
>> ... by adding the following into your .emacs:
>>
>> ;; Show entities as UTF8 characters.
>> (setq org-pretty-entities t) ; emsp, etc.
>
> This would work for "\rightarrow" but I don't think you can configure it
> to support "->". For that you'd need prettify-symbols-mode, I think.
I think you're right, indeed!
Best regards,
Seb
--
Sebastien Vauban
Sebastien Vauban <sva-news@mygooglest.com> writes:
> Rasmus wrote:
>> Sebastien Vauban <sva-news@mygooglest.com> writes:
>>> Rasmus wrote:
>>>> Matt Price <moptop99@gmail.com> writes:
>>>>
>>>>> I feel like I've seen the answer to this somewhere but I can't find it --
>>>>> is it possible for me to get "->" and "=>" to render as rightarrows (→, ⇒)?
>>>>
>>>> Do you want to render it in the buffer or on export? For the buffer you
>>>> could use prettify-symbols-mode.
>>>
>>> ... by adding the following into your .emacs:
>>>
>>> ;; Show entities as UTF8 characters.
>>> (setq org-pretty-entities t) ; emsp, etc.
>>
>> This would work for "\rightarrow" but I don't think you can configure it
>> to support "->". For that you'd need prettify-symbols-mode, I think.
>
> I think you're right, indeed!
So we need both if we want to display all these characters, right ?
Regards
-- Xavier.
Xavier Maillard <xavier@maillard.im> writes:
> So we need both if we want to display all these characters, right ?
\Rightarrow and friends are supported through org-entities. This makes
sure that it's translated to the right symbol irrespective of the backend.
prettify-symbols-mode is for showing an "ascii characters" in a pretty
way. This will do nothing for export.
If you don't mind unicode characters maybe an input method is what you
want. E.g. with the rfc1345 input method, you can insert '→' with '&->'.
---Rasmus
--
And I faced endless streams of vendor-approved Ikea furniture. . .