New answers tagged

5

It can done in OS X, but AFAIK only from a previously open Documentation Center notebook. If you have one open, then you can do it this way. Run your mouse cursor over any hyperlink in the Documentation Center notebook. Bring up the context menu. (right-click or ctrl-left-click) Select Open in New Window.


4

As of version 10.1 you can use $FontFamilies. From the documentation: $FontFamilies gives the list of the font families available to the Wolfram System. For me $FontFamilies yields an accurate representations on the fonts I have installed on my system (v10.3.1 on Win10).


2

I think that's a fair answer to this topic, which doesn't really state any question precisely. Also, hard to find more authoritative source. This just isn't supported in the FrontEnd. The FE tries very hard not to put unreadable typesetting markup into packages to facilitate easy exchange with other programming editors. Possibly workarounds......


2

What will trigger it select a hyperlink and use a shortcut, in case of wrong selection you will get Beep[] What will happen If[ MatchQ[#, {_}], CopyToClipboard[First[#]], Beep[] ] &[ Cases[ CurrentValue["SelectionData"], _[ButtonData, {x_, _}] :> x, Infinity ] ] How to implement it With joker.m ...


3

Things to keep in mind when developing complex GUI in Mathematica: Styles management/inheritance system (StyleSheets and friend) It is complicated, full of exceptions and only a tip of the iceberg is documented. Those 3 features are limiting the usage of it, which is a pity because it has a potential to give a lot. I'm also missing guidelines about common/...


2

The workaround given in comments works. You should set CacheGraphics->False. i.e. Button[ Style[ SetAlphaChannel[ Graphics@Rectangle[], Graphics@Disk[]], CacheGraphics -> False ], Print[1] ] – ihojnicki Jul 13 at 19:59 One can put it in BaseStyle -> {CacheGraphics -> False} too.


7

Here is a modification of Karsten's answer attempting to get the behavior you described in a comment. The selected value is assigned to Global`$color (as shown by Dynamic) I made the picker wider to get rid of the annoying bottom scroll bar Code: Button["Pick a color", Module[{picker, box = EvaluationBox[]}, picker = FrontEndResource["...


10

Do you mean Button[ Tooltip["click", Column[{"Click this button to select a ColorScheme.", "This button will be replaced with ColorData"}]], With[{box = EvaluationBox[]}, SelectionMove[box, All, Expression]; FrontEndExecute@ FrontEnd`AttachCell[box, FrontEndResource["ColorSchemeSelector"], {1, {Right, Top}}, {Left, Top}, "...


0

The supported way to do this is to include a FrontEnd extension in the PacletInfo file, as in this example: Paclet[ Name -> "ExamplePackage", Version -> "1.0.0", MathematicaVersion -> "9+", Description -> "An example package.", Creator -> "WEG", Extensions -> { {"Kernel", Context -> {"ExamplePackage`"}}, {"...


2

You can see what is going on by setting $FrontEndSession Evaluator->"LinkSnooper". Create a notebook (A) with two cells and evaluate them: SetOptions[$FrontEndSession, Evaluator -> "LinkSnooper"] $Context Create another (B) one with: SetOptions[EvaluationNotebook[], CellContext -> Notebook] $Context Let's clear LinkSnooper's console ...


5

The issue is that for reasons that are mysterious, Mathematica has been using an incorrect value of the ScreenResolution parameters on Windows machines since time untold. I believe this has some historical reasons, related to developers using Apple machines at some time, for which somehow the 72dpi is appropriate (noting in parentheses that this "screen ...


2

Regarding the lack of control of the output size, at least with a sufficiently high ImageResolution setting it can be tuned: test = Framed["TEST", Background -> Red, FrameStyle -> Blue, ImageSize -> {100, 100}, ContentPadding -> False] ImageDimensions[Rasterize[test, ImageResolution -> 354]]


2

Short answer: there is no equivalent of $ModuleNumber for DynamicModule. Authoritative comments by John Fultz (here and below) about the scoping of DynamicModule and how and why it is differing from the comparably simpler scoping of Module: [...] "this would require a concept of $ModuleNumber to be handled natively by the FE in the typesetting. Which ...


0

Upgrading to a newer computer solved the problem. Perhaps it was RAM- or grpahics-card-related, we'll never know.


0

Based on my answer at Referencing cells after reopening a saved notebook, get a list of all output cell expressions with outputs = ToExpression[#, StandardForm, Defer] & @@@ (NotebookRead /@ Cells[CellStyle -> "Output"]); then export via Export["outputs.pdf", Column[outputs], "PDF"];


4

Probably you should use NotebookEvaluate instead of SelectionEvaluate. According to the Documentation, By default, NotebookEvaluate evaluates the cells of a notebook in the same way that Get evaluates the lines of a package file. For example try: nb = CreateDocument[ExpressionCell[Defer[Pause[10]], "Input"]]; NotebookEvaluate[nb] Print["!"] The ...



Top 50 recent answers are included