Tag Info

Hot answers tagged

11

I looked for a documentation section that concisely defined what the Front End is but I did not find one therefore I shall attempt my own definition. I admit I have never considered this in detail nor dug into the low level connection between the Front End and Kernel, so this definition is bound to be incomplete and possibly incorrect. The Front End is ...


10

Update: I think I've got it. I found a token that does the replacement without bringing up a dialog. The values from the last use of the Find and Replace dialog will be used. The command is: FrontEndExecute @ FrontEndToken[nb, "ReplaceAll"] where nb is the target Notebook object. To preset the Find and Replace fields one can modify the FindSettings ...


8

This answer is not meant to compete with @Mr.Wizard's answer, but to serve as a addendum presenting a historically-oriented view. In the early days of Mathematica the dichotomy of front end and kernel was simple. Mathematica had a client-server architecture: The front end was the client and the kernel was the server. The client's job was to manage the ...


8

Mathematica 10 is not high-DPI-aware on Windows and so Windows renders it at the native resolution and then scales it by a factor of 2 by default to make it readable. Once Mathematica supports high-DPI displays in Windows, they will be able to properly render text and graphics that aren't blurry. If you're running Windows 8.1, you can disable this default ...


7

Thanks for asking this question; I might not have discovered this customizable area without it. The auto-completion option values are automatically loaded on Front End start from: FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources", "FunctionalFrequency", "OptionValues"}] This directory contains a series of Package (.m) ...


6

This is a bug in Mathematica 10.1.0 on OSX, and seems to primarily, but not exclusively, affect older MacBookPro machines with Core 2 Duo processors. We have identified the cause and devised a fix. Unfortunately, the fix is not simple, and requires replacement of a few key components. We have created a patched version of Mathematica 10.1.0 which is ...


6

I guess all the important information can be found in the tutorial, specifically in the subsection Access to the Java Object Layer There, you see that you can easily extract the class that is used for widgets << GUIKit` ref = GUIRun[Widget["Label", {"text" -> "Stay afloat!"}]] First[ref] (* « JavaObject[com.wolfram.guikit.swing.GUIKitJFrame]» ...


5

Ok, let's open new package File -> New -> Package. It was second on my list of Notebooks[]. So: package = Notebooks[][[2]] This is a notebook as any other, it just has different stylesheet ("Package.nb") and we can modify it as any other: SetOptions[ package, { StyleDefinitions -> Notebook[{ Cell[StyleData[StyleDefinitions ...


5

Contrary to my understanding of Kuba's comments below the question DefaultNewCellStyle is a supported option for individual Cells. For example you can create a Notebook with three Chapters, each with a different default cell style: CreateDocument[{ Cell["New cells are Input", "Chapter", DefaultNewCellStyle -> "Input"], Cell["New cells are Text", ...


4

I don't find CellInsertionMenu as a handy place for that. I'd go with one of others suggestions. But let me answer your question anyway. To not mess with $InsallationDirectory let's copy text file where this cell definition is stored to $UserBaseDirectory: CopyFile @@ ( FileNameJoin[{#, "SystemFiles", "FrontEnd", "TextResources", "MiscExpressions.tr"} ...


3

Rough approach: Tooltip resources are stored in FileNameJoin[{ $InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "ToolTip.tr"}] In order to not mess with installation directory you can copy this file to $UserBaseDirectory/SystemFiles... and replace labels you want. For example: @@resource ToolTipCut Cut (replace this line ...


3

Let's try to explain this: The Dynamic never goes away and just because you don't see it on screen, doesn't mean that it isn't still there. So let's assume you have a similar function which doesn't act in such a special way as Dynamic does and let's call it freakyFunc. This function has no definition and when you use it, it is not further evaluated. The ...


2

A control such as slider is updating a variable and the front-end needs to know that the variable is dynamic, so the Dynamic wrapper goes on the variable. But Quantity is a display form and the front-end only needs to know that it should treat the whole form as dynamic. On my system, V10.1 running on OS X Yosemite, Quantity[Dynamic[b], lengthUnit] does ...


2

After István Zachar's points, I was investigating Input definitions to learn more. It seams that 2 years later WRI changed approach from SelectionMove based to more automatic BoxReferenceFind. usage So what we only have to do is to set BoxID option for fields of interest and find those references when we want, with: MathLink`CallFrontEnd[ ...


2

In Windows one solution is to use the key combo Alt + E + O This effectively accesses the Edit menu and the Un/Comment command. However, this does not work in full screen mode. If this bothers you, then the best option is probably to write an AutoHotkey script. Here is the script that I have been using #IfWinActive, ahk_class NotebookFrame !c:: ...


2

When working with Box form you must keep all expressions in Box form; you cannot insert a non-Box-form expression such as EventHandler[. . .] into it and have it remain valid. You must also convert the the EventHandler into Box form, e.g.: EventHandler["a", {"MouseClicked" :> (thing = "clicked")}] // ToBoxes TagBox["\"a\"", ...


2

OP's stuff: html = "<div style=\"text-align: center;\"> This is <span style=\"font-size: 21px;\"> <i>an example</i></span> of a <u> <font face=\"Georgia\" style=\"font-size: 19px;\">text \ cell</font></u> with <font color=\"#c14dff\" style=\"\">complex styles</font> \ ...


1

This is not yet a complete answer but I think it may set you on a viable path. We can style each element using StyleBox as follows: boxes = RowBox[{"(", FractionBox[ RowBox[{RowBox[{"(", RowBox[{"a", "+", "b"}], ")"}], SuperscriptBox["c", "d"]}], SqrtBox["e"]], ")"}]; colors = ColorData[54, "ColorList"] boxesNew = Module[{i = 1}, ...


1

EvaluationNotebook gives the palette Notebook itself; try using InputNotebook instead: CreatePalette[{TextCell["\n1. Choose any file for analysis?", Bold, Blue, 16], Row[{FileNameSetter[Dynamic[cdflocation]], Spacer[20], Dynamic[cdflocation]}], Button["Go!", If[Head[cdflocation] === Symbol, Print["not ready"], (Print["tag should update now"]; ...


1

I tried using different magnifications in a notebook I created in Mathematica V10.1.0 running on OS X 10.10.2. I only got the kind out tag displacement you show with magnification 200. All the other values I tried look OK. Magnification 150 Magnification 200 It seems to me this is a bug confined to magnification 200 only. Try using magnification 150; ...



Only top voted, non community-wiki answers of a minimum length are eligible