1
$\begingroup$

Is it possible to define the format for a part of Text in a plot? For instance, is it possible to have v bold and (a) italic:

Show[Graphics3D[Line[{{0, 0, 0}, {1, 1, 1}}]],
 Graphics3D[Text["v(a)", {1.1, 1.1, 1.1}, BaseStyle -> Large]],
 PlotRange -> {{0, 2}, {0, 2}, {0, 2}}]

enter image description here

$\endgroup$
2
$\begingroup$

By using Row and Style within a Text element, you can get almost any formatting you want.

Show[
  Graphics3D[Line[{{0, 0, 0}, {1, 1, 1}}]], 
  Graphics3D[Text[Row[{Style["V", 24, Bold], Style["(a)", 24, Italic]}], {1.1, 1.1, 1.1}]], 
  PlotRange -> {{0, 2}, {0, 2}, {0, 2}}]

enter image description here

$\endgroup$

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.