I want to write a fraction which contains subscript in a graph. But my code doesn't work.
Graphics[{Text[
Style["-Subscript[\[CapitalGamma],r] /v", Large, Bold, White],
Automatic, {2.7, 13}]
Eliminate the quotation marks (which mean you want the verbatim code), fix the closing bracket and make the text Blue so you can see it:
Graphics[
Text[Style[-Subscript[\[CapitalGamma], r] /v, Large, Bold, Blue],
Automatic, {0, 0}]]
Also... there's no need for Automatic
.
This looks much nicer, to my eye:
Graphics[
Text[Style[
"\!\(\*FractionBox[SubscriptBox[\(\[CapitalGamma]\), \(r\)], \
\(v\)]\)", Large, Bold, Blue, FontFamily -> "Times"], {0, 0}]]
Graphics[Text[ Style["\!\(\* FractionBox[SubscriptBox[\(x \[CapitalGamma]\), \ \(r\)], \(v\)]\)", Large, Bold, Blue, FontFamily -> "Times"], {0, 0}]]
$\endgroup$
Commented
Sep 28, 2017 at 17:12
-x Subscript[Γ, r] /v
would be a lot easier to comprehend.
$\endgroup$
Commented
Sep 28, 2017 at 18:04
-x Subsuperscript[Γ, r, 2]/v
would work.
$\endgroup$
Commented
Sep 28, 2017 at 18:06