0

I want to write:

enter image description here

and give error: enter image description here

When I put

\textit${x_{min}}$ 

It also error

6
  • 1
    Do you want to use it in the text or inside of a mathematical formula? $x_{min}$ should work for the latter Commented Jan 13, 2020 at 20:07
  • @leandriis, I want to use in text and also make it italic. so I added in \textit{x_{min}} Commented Jan 13, 2020 at 20:09
  • 2
    You should rather use $x_{\min}$ instead of what you're currently doing. At best, you're need \textit{x\textsubscript{min}}. Commented Jan 13, 2020 at 20:09
  • 1
    @aan: _ for a subscript only works in math mode. Hence the error message when you use it in text mode. Commented Jan 13, 2020 at 20:10
  • Related (possible duplicate?): Superscript outside math mode Commented Jan 13, 2020 at 20:12

1 Answer 1

3

\textit(x_{min}} is an error as the content of \textit is text mode so can not have _

\textit$x_{min}$ is \textit{$}x_{min}$ with a lone $ as argument to \textit

the usual markup would be $x_{\min}$ or if you really do want min in italics $x_{\mathit{min}}$

If it is not mathematics then \textit{x\textsubscript{min}} is another possibility.

6
  • You probably mean \textit{x\textsubscript{min}} :-) Commented Jan 13, 2020 at 20:27
  • @Zarko up, down, what's the difference:-) Commented Jan 13, 2020 at 20:39
  • position of min :-) :-), however in principle there is no difference, so you are right :-) Commented Jan 13, 2020 at 20:52
  • Maybe a less elegant suggestion but what if you put \ in front of _ given that you want to have it in text? Commented Jan 13, 2020 at 22:47
  • @Dario I'm assuming the questioner wants x with a subscript "min" not just text with a literal underscore x_min ??? Commented Jan 13, 2020 at 22:55

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.