From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: superscript without base Date: Thu, 19 Mar 2015 20:16:16 +0000 Message-ID: References: <87mw399lls.fsf@gmx.us> <87bnjp9kmc.fsf@gmx.us> <874mph9j1x.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35186) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYgqg-0007ok-Vv for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 16:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YYgqd-0003Mn-Ms for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 16:15:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:46013) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YYgqd-0003Me-GB for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 16:15:19 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YYgqb-0004pT-9t for emacs-orgmode@gnu.org; Thu, 19 Mar 2015 21:15:17 +0100 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Mar 2015 21:15:17 +0100 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Mar 2015 21:15:17 +0100 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: emacs-orgmode@gnu.org Hi Rasmus, Thanks for your continuing help here. Rasmus writes: > Andreas Leha writes: > >> Hi Rasmus, >> >> Rasmus writes: >>> Andreas Leha 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