Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Customise a Mathematica 7.0 Palette for braces and square brackets

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99950] Re: [mg99897] Customise a Mathematica 7.0 Palette for braces and square brackets
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Wed, 20 May 2009 04:57:36 -0400 (EDT)
  • Reply-to: jfultz at wolfram.com

On Tue, 19 May 2009 06:41:43 -0400 (EDT), sigismond kmiecik wrote:
> Hello to all
>
> The keyboard layout in my country is such that I need to press Alt-Gr
> plus the key  itself  in order to enter a  left/right brace a or
> left/right bracket in a notebook.
> I didn't find a shortcut for these special characters in the palettes
> (except for brackets if  the command you want to enter is listed among
> the palettes menus)
> Is there a way to modify the Basic Math Assistant palette in order to
> add  four symbols for these special characters ?
> Thanks
>
> Sigismond Kmiecik

These actually already exist in the Basic MathAssistant palette.  In the 
"Calculator" section, click the "Advanced" tab.  Fourth row, third button is a 
pair of matching brackets.  Fifth row from the bottom, 5th button is a pair of 
matching braces.

If you put the cursor someplace and click one of these buttons, it will paste 
the matching characters with the selection inside so you can immediately begin 
typing the contents.  If you select something and click one of these buttons, it 
will make the selected thing the contents of the matching characters.

It's also easy enough to make your own palette with CreatePalette and 
PasteButton if you so desire.  The only subtlety with this method is that you 
should wrap RawBoxes around the content you want to paste.  E.g.,

PasteButton[RawBoxes["{"], ImageSize -> 20]

Otherwise, it will paste "{" rather than {.

Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: Could some one please help
  • Next by Date: Re: Re: saving initialization cells as a .m file
  • Previous by thread: Re: Customise a Mathematica 7.0 Palette for braces and square brackets
  • Next by thread: How Long?