# Tag Info

1

First of all, if you use: SetOptions[EvaluationNotebook[], InputAliases -> {"xx" -> "X"}] then you will replace all aliases with this one. But if you only want to add new one, there is a convenient way to add a suboption: CurrentValue[EvaluationNotebook[], {InputAliases, "xx"}] = "X" Now, all previous aliases are preserved. Ok, to the point. I ...

4

CurrentValue[$FrontEndSession, {InputAliases, "xx"}] = "X" or, if you want the new settings to persist across sessions, use CurrentValue[$FrontEnd, {InputAliases, "xx"}] = "X"

3

This has been fixed in 10.0.2. The longer time now remain in the status windows. On windows 7, 64 bit SetOptions[$FrontEnd, EvaluationCompletionAction -> "ShowTiming"] Plot[{BesselJ[1, x], BesselJ[2, x]}, {x, 0, 10}, PlotPoints -> 1*^5, Filling -> {1 -> {2}}] 1 NotebookSave saves a Mathematica notebook as is, without converting it to other formats. To convert to other formats, such as PDF, use Export. Example: nb = Notebooks[][[1]] Export["~/Desktop/nb.pdf", nb] 1 The following is a slightly simplified version of your DynamicModule: DynamicModule[{x}, Column[{Button["start", x = 0; RunScheduledTask[x++;, {1, 5}]], Row[{Dynamic[HoldForm[x]], " = ", Dynamic[x]}]}] ] When you evaluate this for the first time, underneath the button you see the output (* FEx$$82 = FEx$$82 *) (very likely with a different ... 6 The front-end-related operations are actually performed by Front End itself. According to the tutorial Executing Notebook Commands Directly in the Front End: When you execute a command like NotebookWrite[obj,data] the actual operation of inserting data into your notebook is performed in the front end. Normally, however, the kernel is needed in order to ... 9 One thing that might help you when investigating in such issues is the LinkSnooper. This is a java program that can be used to set up an additional kernel configuration. When you use this kernel, you can watch all traffic between front-end and kernel. With this, you could look what happens if you evaluate a simple 1+1 FE ---> K: ... 6 This is called the "Cell insertion menu". Its appearance is defined in MiscExpressions.tr via the front end resource "CellInsertionMenu". Notebooks (depending on the stylesheet, of course) have it defined as a "cell insertion point cell" by default: AbsoluteOptions[SelectedNotebook[], "CellInsertionPointCell"] (* -> {CellInsertionPointCell -> ... 2 My answer is based a on Martin John Hadley's. It uses Cells so one need at least V9 for that. But it is quite compact: cellSortByTag[nb_, tagOp_: ToExpression] := Composition[ (SelectionMove[#, Cell, All]; NotebookWrite[nb, #2]) & @@@ # &, Transpose, { #, NotebookRead /@ SortBy[#, tagOp @ CurrentValue[#, CellTags] &]} & ... 2 I was searching for a way to reorder Sections alphabetically and found this question, which I think I've got an answer for. It relies on evaluating the code in a separate notebook, targeting the notebook with your cell tags. In my target notebook (targetNb) I have the following cells: Cell["Typed Cell 1", "Item", CellTags -> {"1", "Zebra", "2"}], ... 3 I have a partial answer to my question. In order to add menu items, e.g., to submenus of the Format menu for Mathematica version 10.0.1. What to put in the init.m FrontEndExecute[ AddMenuCommands["BackgroundDialog", {Delimiter, MenuItem["Linen",Background->RGBColor[0.980,0.941,0.902]], MenuItem["AliceBlue",Background->RGBColor[0.941,0.973,1.0]], ... 5 Stealing Lou's example, you can add a couple of options: CreateDocument[ Manipulate[ Plot[Sin[x (1 + a x)], {x, 0, 6}, ImageSize -> Full], {a, 0, 2}], CellMargins -> 0, ShowCellBracket -> False, WindowSize -> Full] If you want those options to be always valid, you can put SetOptions[EvaluationNotebook[],...] into ... 15 Yes, it can be easily implemented with FrontEndExecute, e.g.: SetOptions[EvaluationNotebook[], NotebookEventActions -> {{"MenuCommand", "Save"} :> Print["HEY"], PassEventsDown -> True}]; You can insert any code instead of Print command 5 Yes, it is possible. Evaluate$InstallationDirectoryand from there open the directory \$InstallationDirectory\SystemFiles\FrontEnd\StyleSheets. Make there a folder, say, entitled "Custom" and place your favorite StileSheets into this folder. Done. The folder will appear in the Menu/Format/StileSheet. Later edit: One another way is as follows: go to ...

Top 50 recent answers are included