Is there a way to change the Mathematica front end’s title bar description?

Posted on

QUESTION :

Is there a way to change the title bar description of Mathematica’s Front End? This would be very useful in differentiating between them when running two instances of the program (e.g. running a long computation in one).

ANSWER :

You could use a docked cell with the version number in it. Here’s a starting point:

SetOptions[$FrontEndSession, 
 DockedCells -> 
  Cell[BoxData[
    ToBoxes[NumberForm[$VersionNumber, {2, 1}], StandardForm]], 
   "DockedCells", ShowStringCharacters -> False
   ]]

(Note that $FrontEndSession won’t persist past quitting the front-end.)

Edit

Here’s a version with an orange background that goes edge-to-edge. The key option is CellMargins:

SetOptions[$FrontEndSession, 
 DockedCells -> 
  Cell[BoxData[
    ToBoxes[NumberForm[$VersionNumber, {2, 1}], StandardForm]], 
   "DockedCells", ShowStringCharacters -> False, 
   CellMargins -> {{0, 0}, {0, 0}}, Background -> Orange]]

Leave a Reply

Your email address will not be published. Required fields are marked *