4

I'm writing an Asciidoctor file to take notes for statistics and would like to insert mathematical symbols like β.

Is there any way to do this without copy and pasting?

1
  • You can use this method Commented Sep 12, 2022 at 19:15

2 Answers 2

6

You can set the insert method with M-x set-input-method RET tex. Then type \beta and watch it get converted.

It can be toggled and set with C-\!

Tested and confirmed that it compiles and renders properly using asciidoctor-pdf.

In Use:

enter image description here

2
  • How do you input italic letters? In math mode, often letters are italicised. Commented May 22, 2024 at 15:36
  • 1
    @armando.sano You can follow the answer suggested by @Imjohns3. I'm using HELM Insert Char completion with spacemacs. Then typing italic delta narrows down the options to six variants: mathematical [bold|sans-serif] italic [SMALL|CAPITAL] delta Commented Sep 12, 2024 at 12:00
5

I love the accepted answer, but I also wanted to point out that you can insert unicode characters by name using C-x 8 RET. This will bring up a selection list in the minibuffer that lets you type the name of a unicode character to insert.

I use counsel-mode, so the search is quite nice because you can type chunks of words, in any order, to narrow down the matching list of unicode characters. It's sort of klunky for general use, but if you really need one specific unicode character, it works pretty well.

1
  • 1
    The elisp function bound to C-x 8 RET is insert-char Commented Sep 12, 2024 at 12:02

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.