Function Repository Resource:

IconizerPalette

Source Notebook

Create a palette for iconizing the selection

Contributed by: Jayanta Phadikar and Kunal Khadke

ResourceFunction["IconizerPalette"][]

creates a palette with a button for iconizing a selection.

Details

The typical way to iconize is to use the menu item Edit Un/Iconize Selection or the context menu option "Un/Iconize Selection". The palette is helpful for quickly and conveniently iconizing different pieces of code while creating a presentation using a single mouse click.

Examples

Basic Example: (3) 

Create the palette:

In[1]:=
ResourceFunction["IconizerPalette"][];

Select relevant options to iconize and click on the button to iconize:

In[2]:=
Plot[{Exp[x], Log[x], x}, {x, -3, 3},
 PlotRange -> 3, PlotStyle -> {RGBColor[1, 0, 0], RGBColor[0, 1, 0], Dashing[{Small, Small}]}, AspectRatio -> Automatic]

After iconizing:

In[3]:=
Plot[{Exp[x], Log[x], x}, {x, -3, 3}, Sequence[
 PlotRange -> 3, PlotStyle -> {
RGBColor[1, 0, 0], 
RGBColor[0, 1, 0], 
Dashing[{Small, Small}]}, AspectRatio -> Automatic]]

Publisher

Kunal Khadke

Version History

  • 1.0.0 – 24 August 2021

Related Resources

License Information