2
$\begingroup$

I'm trying to describe in a notebook the way that the front end displays a caret where it is expecting input (e.g., in Sin[ ], where it appears, by default, between the brackets).

How can one type the caret symbol?

I'm not finding it on the Special Characters palette and not finding "caret" in the documentation.

$\endgroup$
5
  • $\begingroup$ Caret: ^. If you don't want to copy it, typing it in depends on the keyboard layout you are using. $\endgroup$
    – Domen
    Aug 11, 2022 at 15:11
  • $\begingroup$ Do you mean \[Wedge] ? $\endgroup$
    – cvgmt
    Aug 11, 2022 at 15:16
  • $\begingroup$ @cvgmt: No, \[Wedge] puts the bottom of that symbol on the baseline, whereas the bottom of the caret is below the baseline. $\endgroup$
    – murray
    Aug 11, 2022 at 15:26
  • $\begingroup$ Trying to copy that ephemeral (red) insertion caret just does not seem to work! $\endgroup$
    – murray
    Aug 11, 2022 at 15:38
  • 1
    $\begingroup$ @murray, this is not a "regular" character in the cell, but some specially formatted marking in the front-end. You can play with Superscript, Font Size and Text Color, such as Sin[Subscript[, \!\(\*SubscriptBox[\(\), StyleBox["^",FontSize->14,FontWeight->"Bold", FontColor->RGBColor[1, 0, 0]]]\) ]] to get something similar. $\endgroup$
    – Domen
    Aug 11, 2022 at 15:50

1 Answer 1

2
$\begingroup$

The closest I can get is:

Sin[Style[Subscript["", "\[And]"], Red, FontWeight -> Bold]]

Which Gives:
enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Slightly better is Style[Sin[Style[Subscript["", "\[And]"], Red]], FontWeight -> Bold]. $\endgroup$
    – Somos
    Aug 12, 2022 at 0:58
  • $\begingroup$ Ahh yes, looks better with the Sin[] bold too. $\endgroup$ Aug 12, 2022 at 16:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.