emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: [patch][ox-latex] context-aware subscript
Date: Wed, 28 Aug 2013 15:46:40 +0200	[thread overview]
Message-ID: <8761uqorlr.fsf@gmx.us> (raw)
In-Reply-To: 874naaorz1.fsf@gmail.com


Hi Nicolas, 

Nicolas Goaziou <n.goaziou@gmail.com> writes:

>> I know it's intended but I dislike it.  In earlier version of
>> ox-latex.el it didn't use the \text-macro.
>
> Earlier versions were broken in many ways. They didn't handle spaces,
> unicode characters and nested sub/superscript like \text does.

OK.

>>> Also, merging consecutive subscript and superscript is fragile 
>>> [...]
>> OK.  Perhaps it can be made less fragile.
>
> That's not an easy task. I think it would involve adding implicit
> pseudo-objects (i.e. object types specific to `latex' back-end).
> Unfortunately, there's no API for that in either org-element or ox.
>
> For now, I think we can put it aside.

I'll just go ahead and trust you on that one.

>> But it is broken, since even 
>>
>> (*)    $\beta$$_{\text{t}}$
>>
>> doesn't produce the correct output (spacing is wrong; compare to
>> $\beta_{\text{t}}$).
>
> Correct. Then, fixing it is more important than caring about some user
> filter.

OK, can I help?  Or do you already have something in mind?

>>   2. Try to make the type of subscript configurable.  Previously,
>>      "math subscripts" were forced, now \text subscripts are forced.
>
> I think filters are good enough for the job. No need for another
> configuration variable.

I can settle for that.  One day we'll (as in I'll) have to grog up a
Worg page for sharing "useful" filters.

> Also, entering math mode is easy enough in Org, whereas exiting math
> mode isn't (if it is forced). I often use constructs like \(I_n\) since
> I want the "I" char to be in the same font as "n".

That's what I use as well, but I'd like to save the $'s around
constructs like \(\beta_t\).  I'll try to fix it via a filter.

–Rasmus

-- 
The Kids call him Billy the Saint

  reply	other threads:[~2013-08-28 13:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18  1:29 [patch][ox-latex] context-aware subscript Rasmus
2013-08-19  8:26 ` Nicolas Goaziou
2013-08-28 11:55   ` Rasmus
2013-08-28 13:38     ` Nicolas Goaziou
2013-08-28 13:46       ` Rasmus [this message]
2013-08-28 19:21         ` Nicolas Goaziou
2013-08-29 10:50           ` Rasmus
2013-08-31  8:11             ` Nicolas Goaziou
2013-08-31 13:59               ` Rasmus
2013-08-31 14:46                 ` Nicolas Goaziou

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=8761uqorlr.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).