Re: Adding current style name to window title or status
- To: mathgroup at smc.vnet.net
- Subject: [mg82461] Re: Adding current style name to window title or status
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Sat, 20 Oct 2007 22:14:28 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <fclbec$fi7$1@smc.vnet.net> <200709180446.AAA28915@smc.vnet.net> <ffck97$sk9$1@smc.vnet.net>
Murray Eisenberg wrote: > I don't understand the syntax of that SetOptions expression, > specifically the hyphen (or minus sign) after "WindowStatusArea". > > Norbert Marxer wrote: >> On 17 Sep., 09:47, chuck009 <dmili... at comcast.com> wrote: <snip> >> SetOptions[EvaluationNotebook[],WindowStatusArea- >>> ToString[StyleDefinitions/.Options[EvaluationNotebook[],StyleDefinitions]]] The syntax of the command shown by Norbert is neither mysterious nor invalid. However, the symbol for a rule "->" has been broken in two parts, a dash "-" and a greater sign ">", and the unfortunately the greater sing ">" has been put at the beginning of a new line. This is very unfortunate indeed, because nearly all newsreaders will interpret a line starting by a ">" as a quotation. Depending on your newsreader, such a line can be displayed with a colorful vertical bar. SetOptions[EvaluationNotebook[], WindowStatusArea -> ToString[StyleDefinitions /. Options[EvaluationNotebook[], StyleDefinitions]]] SetOptions[EvaluationNotebook[], Rule[WindowStatusArea, ToString[StyleDefinitions /. Options[EvaluationNotebook[], StyleDefinitions]]]] Regards, -- Jean-Marc
- Follow-Ups:
- Re: Re: Adding current style name to window title or status
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: Adding current style name to window title or status