mailing-list for TeXmacs Users

Text archives Help


Re: Smarter subscript in math mode


Chronological Thread 
  • From: Zhuyang Wang <address@hidden>
  • To: Massimiliano Gubinelli <address@hidden>
  • Cc: address@hidden
  • Subject: Re: Smarter subscript in math mode
  • Date: Mon, 23 Sep 2019 09:06:35 -0500

Thank you very much! It works like a charm. I didn't even think of directly inserting a subscript, because I felt that it belongs to the symbol before.

On Mon, Sep 23, 2019 at 8:17 AM Massimiliano Gubinelli <address@hidden> wrote:
What’s wrong with

(“1 tab" (insert '(rsub "1")))

?

best
mg


> On 20. Sep 2019, at 17:11, Zhuyang Wang <address@hidden> wrote:
>
> Hi,
>
> I am wondering if there is a convenient way to turn the numbers after a symbol into a subscript. For example, now I have the following keybinding in my config:
>
> ("a 1" (insert '(concat "a" (rsub "1"))))
>
> And then copy and paste for other characters and subscripts. I hope there is a better solution than copy/paste. My current idea is to set up a keybinding for "1 tab", "2 tab", etc, so that the tab will turn the number into a subscript of the previous symbol. But I don't quite know how to move in the document tree (or directly manipulate it). I read the document "Programming routines for editing documents" but still have no idea, like how can I get the tree representing the symbol before the cursor.
>
> Thanks!
>
> Zhuyang




Archive powered by MHonArc 2.6.19.

Top of page