3

I want to put a hiragana character in subscript.
I have this:

\documentclass[a4paper,fontsize=13pt]{scrartcl}

\usepackage{xeCJK}

\setmainfont[Mapping=tex-text]{Ubuntu}
\setCJKmainfont{VL Gothic}

\begin{document}

V$_{\text{る}}$

\end{document}

but get

! Undefined control sequence.
l.10 V$_{\text
{る}}$

5

The \text command requires amsmath (or amstext that's automatically loaded by amsmath). However, for textual subscripts there is \textsubscript.

I changed the fonts to ones I have, just to show the output.

\documentclass[a4paper,fontsize=13pt]{scrartcl}

\usepackage{fix-cm} % to turn off annoying warnings

\usepackage{xeCJK}

\setmainfont{Libertinus Serif}
\setCJKmainfont{Heiti SC}

\begin{document}

V\textsubscript{る}

\end{document}

enter image description here

  • i.stack.imgur.com/oQQqQ.png That is quite the URL. Sorry, totally irrelevant, but – Au101 Jul 19 '16 at 23:57
  • @Au101 Sorry, but I don't understand – egreg Jul 20 '16 at 0:11
  • That's the URL of the png image you uploaded showing the output. The long series of qs, plus the roundedness of the o and the qs - it just struck me as a very pleasing random series of letters, the kind of URL you wouldn't get very often, since I assume they're just generated sequences of letters. But I'm just that sort of sad person who notices that kind of thing. Like when the time is 11:11:11, or when it was the 12th of December 2012 (12/12/12). Shrug. Anyway – Au101 Jul 20 '16 at 0:19
  • 1
    @Au101 Now I see! My father says ”the little geese“ when a digital clock shows 22:22 – egreg Jul 20 '16 at 8:33

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.