emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] superscript without base


From: Andreas Leha
Subject: Re: [O] superscript without base
Date: Thu, 19 Mar 2015 20:16:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

Hi Rasmus,

Thanks for your continuing help here.

Rasmus <address@hidden> writes:
> Andreas Leha <address@hidden> writes:
>
>> Hi Rasmus,
>>
>> Rasmus <address@hidden> writes:
>>> Andreas Leha <address@hidden> writes:
>>>
>>>> Thanks for the answer.  So, there is no easy way out.  I think I'll
>>>> stick to the \nbsp version, then.  Although introducing some character
>>>> that will be removed during export through a filter might be handy in
>>>> other cases, too.  I'll think about it.
>>>
>>> Why not make a \zwsp that inserts a zero width space?
>            ^^^^
>> Because I did not know about \zwsp.  But also, \zwsp is exported
>> literally to html, as my first quick test shows.
>
> _You'd_ have to add it to org-entities-user.
>

I see.  This did not occur to me, as the LaTeX export seemed to work
(well, it produced an Undefined control sequence error that I did not
spot).

But it put me on the right (?) track: I now found that both \zwnj and
\shy seem to produce what I want without any need for customization.  I
do not know which one is the bigger hack...

>>> You can also use a
>>> macro like {{{script(^whatever)}}} that expands to your liking.
>>
>> I am not sure what you are suggesting here.
>
> E.g.
>
> #+MACRO: sub \nbsp$1
> {{{sub(^foo)}}}

Thanks for the clarification.  I like the meaningful name (although I'd
go for #+MACRO: sup \zwnj^{$1}).  That even makes up for the syntax
of macros and I'll use that.

Thanks!
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]