6
$\begingroup$

If in OptionInspector I select option "Inline" for Cell Options > Display Options > ShowGroupOpener for section-like cells, then when such a group is closed it shows an icon that is a little box, with rounded corners, containing a symbol similar to a right-pointing chevron, like this:

Group closed icon

And when the group is open, the icon changes to one where the chevron points downward, like this:

Group open icon

(Ignore the color there: that's an artifact of a particular stylesheet I'm using.)

I want to be able to explain those icons in a Text cell. How can I insert those symbols there?

The best I've been able to obtain so far is the following:

openerClosedIcon = Framed[
  Style["\[VeryThinSpace]\[VeryThinSpace]\[VeryThinSpace]»\
    \[VeryThinSpace]\[VeryThinSpace]", Bold, 24],
  FrameMargins -> None, RoundingRadius -> 5]

and

openerOpenIcon = Rotate[openerClosedIcon, -90 Degree]

which produce

My GroupClosedIcon

and

My GroupOpenIcon

respectively.

$\endgroup$
10
$\begingroup$

Those symbols are in fact special characters:

Row@{"\:f442", "\:f443"}

enter image description here

$\endgroup$
3
  • $\begingroup$ How did you find these? I did not see them on the Special Characters palette. $\endgroup$ – murray Jun 14 at 16:47
  • $\begingroup$ I didn't find them, either, in the Documentation Center page guide/SpecialCharacters. $\endgroup$ – murray Jun 14 at 16:54
  • 4
    $\begingroup$ @murray I found them by noticing that the front-end access the file FileNameJoin@{$InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "MiscExpressions.tr"} when first displaying the symbols. And luckily, the relevant definitions for "cellGroupOpenerInline" are at the very top $\endgroup$ – Lukas Lang Jun 14 at 17:01

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.