6

I'm still new to Latex, and I can't seem how to write f.ex. q0 where the 0 is small. Hard to explain/search google when I don't know what you call this in english.

Hope someone can help :)

1
  • 3
    Do you mean a subscript? Try: $q_0$? – 1010011010 May 5 '14 at 21:08
8

What you're looking for is subscript and you write it like this: $q_0$.

Note that this only works in math mode. The $ tell LaTeX to switch from text to math mode or back (there are different possibilities of switching to math mode, see here).

When you want to have multiple digits (or other symbols) in subscript, you will have to enclose them in curly braces (q_{12 + x}), since the _ only "sees" the next symbol. The curly braces make LaTeX se everything inside as a group that can not be separated.

If you want to use subscript in normal text, have a look at this question.

Superscript works the same way but with ^ instead of _. Write x^2 for x².

6
  • I'd like to add that adding dollar signs around the expression will avoid a horrible spam of errors. (So it's important to let LaTeX know that you're using math code) – 1010011010 May 5 '14 at 21:12
  • Unless you mean oldstyle (lowercase) numbers. You can have them with \oldstylenums{25} for instance. – Bernard May 5 '14 at 21:14
  • One more question, what if it is supposed to be "up"? Like 2^2 = 4? – user16655 May 5 '14 at 21:31
  • @user16655 You just write exactly that, except between the dollar signs, $2^2=4$. If you want to have multiple characters in the sub- or super-script, you have to enclose them in curly braces - $2^{12}=4096$, $q_{0,1}$. – darthbith May 5 '14 at 21:33
  • Thank you so much for the quick answer :) I really appreciate it. It's a lot of symbols to learn ;) – user16655 May 5 '14 at 21:36
-2

In quiver it works like (inline LaTeX goes between $...$) $q_0$ and it is called "subscript". I believe ^ is for exponents.

More info can be found here - https://www.overleaf.com/learn/latex/Subscripts_and_superscripts

4
  • This is already covered by the other answer. – Werner Nov 9 '18 at 0:59
  • Yes but I still thought my answer helped because it was better than the other one. I've posted like twice on SE and it's miserable people like you that have made this site suck the past few years - look on Reddit: your response and corresponding vote is exactly what people overwhelmingly see and now expect from many in the community here on SE now-a-days – vaskaloidis Nov 27 '18 at 16:57
  • 1
    (1) The other answer literally opens with "What you're looking for is subscript and you write it like this: $q_0$" which covers the main aim of yours. (2) You follow it with something that you're not sure about, so you might as well leave that out. (3) Why am I miserable when stating fact? (4) You've posted twice in the past few years and now it sucks? Sounds like you've taken more than what you've given. Even on your most active site (Stack Overflow) where you've been a member for 5+ years, you've voted less than once a year! (5) My vote is for deletion as this better-suited as a comment. – Werner Nov 27 '18 at 18:15
  • ...you're welcome to post the link to to Reddit so I can read up on current SE expectations. – Werner Nov 27 '18 at 18:16

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.