mathematica-frontend

TableForm with TableHeadings aligned to Left but the content of table aligned to Right

北战南征 提交于 2019-12-14 03:48:16
问题 TableForm with TableHeadings option is a quick and easy way to display good-looking classical table in Mathematica FrontEnd. The only problem is that it is common to display such a table with headings aligned to the left but the content of the table aligned to the right. Is it possible to force TableForm to behave in this way? Or if not, what is the best way to make an analog of TableForm that behaves in this way? 回答1: You can use Grid and Alignment . Here is one way: a = Map[Mod

Permanent changing FrontEnd behavior to force aborting evaluation of the full sequence of inputs

妖精的绣舞 提交于 2019-12-14 02:30:15
问题 This sub-question comes from the question on aborting evaluation of the full sequence of inputs together with previous sub-question. How should we change the file KeyEventTranslations.tr (and/or MenuSetup.tr) to force aborting evaluation of the full sequence of inputs? One possible method to achieve this is described in the previous sub-question associated with another approach: temporary changing of FrontEndEventActions for the current session. I think these questions should be separated as

Is it possible to create MakeBoxesStop wrapper?

旧时模样 提交于 2019-12-12 12:08:59
问题 It is known that output expressions are passed through MakeBoxes to turn the graphics expressions into the box language which the front end uses to represent graphics (when $Output has default option FormatType->StandardForm ). For example, if we evaluate: HoldComplete[Graphics[Disk[]]] we get a disk wrapped by HoldComplete : This is because HoldComplete does not stop MakeBoxes from converting its contents to typeset expression: In[4]:= MakeBoxes@HoldComplete[Graphics[Disk[]]] Out[4]= RowBox[

Making customized InputForm and ShortInputForm

你说的曾经没有我的故事 提交于 2019-12-10 15:43:37
问题 I often wish to see the internal representation of Mathematica 's graphical objects not in the FullForm but in much more readable InputForm having the ability to select parts of the code by double-clicking on it and easily copy this code to a new input Cell . But the default InputForm does not allow this since InputForm is displayed by default as a String , not as Mathematica 's code. Is there a way to have InputForm displayed as Mathematica 's code? I also often wish to see a shortened

Why doesn't running ClearAll[“Global`*”] from a custom Palette update local variables colors?

微笑、不失礼 提交于 2019-12-09 13:20:52
问题 I created a custom palette, with an ActionMenu that executes ClearAll["Global`*"] . It performs the desired action, but the frontend doesn't instantly update the colors from black to blue (standard), as it happens when ClearAll["Global`*"] is executed directly from a notebook cell (it only updates after something else has been executed). Is there a way to initiate a refresh of the frontend display status? EDIT: Apparently, the same happens when I load a package from a palette (blue doesn’t

Getting the Mathematica front end to obey the FontFamily option

杀马特。学长 韩版系。学妹 提交于 2019-12-09 08:01:02
问题 When it comes to Chinese characters, I am unable to get the Front End of Mathematica to use the fonts of my choice. How can I get it to use the fonts I need? Here I provide two screenshots to show the problem, one from Word (top), the other from Mathematica on WinXP, both displaying the same string. Note that Mathematica uses several different fonts (I guess it uses font substitution when the font it tries to use first doesn't contain a glyph---however the font I specified contains all glyphs

How to check whether the FrontEnd considers evaluation still running?

浪子不回头ぞ 提交于 2019-12-08 03:56:50
问题 Is there a way to check programmatically whether the FrontEnd considers evaluation still running? Or even better: is there a way to check whether the FrontEnd has some pending inputs to be sent to the kernel? P.S. This question has arisen from previous question. EDIT When evaluating a Cell in the FrontEnd we usually create a queue of inputs for the kernel. I need a function that will return True if the FrontEnd has sent to the kernel the last input of the queue of inputs from the

How to check whether the FrontEnd considers evaluation still running?

断了今生、忘了曾经 提交于 2019-12-07 22:46:27
Is there a way to check programmatically whether the FrontEnd considers evaluation still running? Or even better: is there a way to check whether the FrontEnd has some pending inputs to be sent to the kernel? P.S. This question has arisen from previous question . EDIT When evaluating a Cell in the FrontEnd we usually create a queue of inputs for the kernel. I need a function that will return True if the FrontEnd has sent to the kernel the last input of the queue of inputs from the EvaluationNotebook[] . Or in other words I need a function that returns True if this current input is the last

Mathematica Help Browser from Mathematica 5 in new versions of Mathematica

*爱你&永不变心* 提交于 2019-12-07 07:44:36
问题 I remember that someone from WRI stated in the official newsgroup that Mathematica 7 still has a working old-fashioned Mathematica Help Browser from Mathematica 5 for compatibility purposes. But I can not find the post where the code for invoking it is given. How to invoke and use this legacy Help Browser in new versions of Mathematica ? 回答1: The old browser will show up if you try to look at documentation for packages that were written in the old format. From the main documentation page,

How to redefine FrontEndEventActions?

孤街醉人 提交于 2019-12-05 10:43:40
Good day, This question comes from the question on aborting evaluation of the full sequence of inputs . I think it is probably possible to achieve the desired behavior by redefining FrontEndEventActions for two events: "EvaluateCells" (or pressing Shift + Enter ) and for pressing Alt + . . It should be something like: SetOptions[$FrontEndSession, FrontEndEventActions -> {"EvaluateCells" :> Last$PreRead, {{"Alt", "."} :> AbortAllNextInputs}}] or SetOptions[$FrontEndSession, FrontEndEventActions -> {{{"ShiftKey", "ReturnKeyDown"} :> Last$PreRead} {{"Alt", "."} :> AbortAllNextInputs}}] Where