Hot answers tagged

18

Disclaimer Ok, so first comes the warning: what I offer below is an incomplete and work-in-progress code, which I offer AS IS. It only works on OS X for now, has a number of bugs, features are missing, etc, etc. In the last couple of years, I've asked a few members of this community to test MIDE privately, and got very constructive responses plus a number ...


7

Question 1: What is the typesetting in Mathematica? What procedures does it include? I think that this 2008 year MathGroup post by John Fultz completely answers this question, so I'll cite it here: In version 6, the kernel has absolutely no involvement whatsoever in generating the rendered image. The steps taken in displaying a graphic in ...


5

You can do it by using the MessageName operator (::). Here is an example.


5

UsingFrontEnd achieves the same result, although the notebook execution is no longer visible. runProcess.m UsingFrontEnd[ file = "C:\\myPath\\Process.nb"; targetnotebook = NotebookOpen[file, Visible -> True]; SelectionMove[targetnotebook, All, Notebook]; SelectionEvaluate[targetnotebook]; ]; Pause[5]; CloseFrontEnd[]; Problem solved ...


5

UPDATE As Kuba correctly notes in the comment, with negative CellMargins we can make the cell height to be effectively zero: CellPrint@Cell[BoxData["a"], CellElementSpacings -> {"CellMinHeight" -> 0, "ClosedCellHeight" -> 0}, Background -> Hue[.8], CellMargins -> -2, CellOpen -> False, CellFrame -> 0, ShowCellBracket -> ...


4

I am going to attempt to answer your questions off the cuff. I have been somewhat inactive on this site recently and also not using Mathematica much, so I am surely not at my best, so "take this with a grain of salt" as they say. Question 1 What is the typesetting in Mathematica? What procedures does it include? Typesetting is anything that is done for ...


3

The .NB files with implementations of the FrontEnd export options Dialogs are located in the folder FileNameJoin[{$InstallationDirectory, "SystemFiles", "FrontEnd", "SystemResources"}] For example, the "PDF Options" Dialog is in the file "ExportPDF.nb". You can open it with a text editor and inspect the implementation. From the internals of the ...


3

Probably not ideal, but using OverlayBox (undocumented) can get you something: img = ConvertImageToFullyScaledNinePatch[ Import["https://addons.cdn.mozilla.net/static/img/docs/themes/header.jpg"] ]; CellPrint[ Cell[BoxData[ OverlayBox[{ToBoxes[img], "test"}, Alignment -> Center]], "Code", CellFrameMargins -> 0, ...


2

mathematica -cleanstart fixed this issue.


2

This gives the recently opened files as a list of rules: Lookup[Options@$FrontEnd, NotebooksMenu] Just the file names: First /@ Lookup[Options@$FrontEnd, NotebooksMenu] FileNameJoin instead of FrontEnd`FileName: (only tested on windows) FileNameJoin[(Append @@ ((First@Last[#])[[;; 2]]))[[2 ;;]]] & /@ Lookup[Options@$FrontEnd, NotebooksMenu]



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