1

Why is it that whatever I type in the superscript turns into gibberish?

lyx

  • 3
    Welcome to TeX.SX! \mathbb makes a font change, and in the \mathbb font, the numerals are defined to print something else. Replace that entire expresion by the (much simpler) $\mathbb{R}^{123445566777}$. – Phelype Oleinik Jan 13 at 15:21
1

As pointed out by @Phelype Oleinik in comment 1, you do not want to have the numbers inside the \mathbb. To accomplish this in LyX, I suggest the following:

  1. ctrl + m to enter math mode.
  2. Type \mathbb<space> to start the blackboard font (or click on it in the font toolbar).
  3. Type "R".
  4. Press <space>, or alternatively to exit \mathbb but to stay inside the math inset.
  5. Press ^ to go into superscript.
  6. Type what you want in the superscript.

The important step is 4. If you do not do 4, the next thing you type will be inside \mathbb, which is not what you want. There is a slight, but important, visual cue that the nesting is not what you want: look at the red frames. From your screenshot, they show that you are nested at a few levels, when probably you only want to see one level of nesting.

By the way, great question for your first question on this site! You title is clear, you show a screenshot that shows both the LyX and the underlying LaTeX, and your screenshot even gives a hint at what OS you're using. All of this information is useful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.