Questions tagged [mathematica-frontend]

Programming the FrontEnd Notebook interface component of Wolfram Mathematica. Dedicated Mathematica SE site: https://mathematica.stackexchange.com/

66 questions
22
votes
2 answers

SaveDefinitions considered dangerous

SaveDefinitions is a nice option of Manipulate. It causes Manipulate to store any definitions used for its creation inside the Manipulate panel. A Manipulate made this way can be copied to an empty notebook and will still work on its own.…
Sjoerd C. de Vries
  • 16,122
  • 3
  • 42
  • 94
21
votes
1 answer

How to create tabbed Mathematica notebooks

Is there a way to create and edit notebooks (sequences of cells) in a tabbed interface? Could such an interface be made with TabView or some other tool? I assume this would be possible if I made a front-end from scratch, but is there a way within…
Andrew
  • 1,041
  • 1
  • 16
  • 24
19
votes
2 answers

How to evaluate a notebook from the command line?

How can we evaluate a Mathematica notebook from the command line (i.e. when running the kernel in command line mode)? Suppose we're working on a remote machine. I know it is possible to convert the notebook to an m-file, and evaluate that, but…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
17
votes
3 answers

Getting the Mathematica front end to obey the FontFamily option

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…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
14
votes
5 answers

Mouseover & Dynamic in Mathematica

Could anyone point out why this is not working in Mathematica 8: DynamicModule[{x = Pink}, Row[ {Style["Hello", x], Mouseover[ x = Green; "World", x = Blue; "World"]}]] What I expect is to see the color of "Hello" change when I mouse…
gdelfino
  • 11,053
  • 6
  • 44
  • 48
14
votes
1 answer

How to export graphics in "Working" style environment rather than "Printout"?

I have learned recently that Export in Mathematica uses by default the "Printout" screen style environment rather than "Working" when exporting to PDF. It sometimes results in FontSize fluctuations in the resulting PDF which are very annoying. Try…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
14
votes
3 answers

Keyboard shortcut to Un/Comment out code in Mathematica 7?

A keyboard shortcut to comment/uncomment out a piece of code is common in other programming IDE's for languages like Java, .Net. I find it a very useful technique when experimenting through trial and error to temporarily comment out and uncomment…
13
votes
1 answer

Remap Caps lock key to Esc in Mma 7

TLDR: How do I get CapsLock to translate to "ShortNameDelimiter" in Mma 7? I like pretty text in my mma notebooks, and often define functions as f[\[Alpha]_] =... so as to match the exact equation that I'm working with. As such, it involves a lot…
abcd
  • 41,765
  • 7
  • 81
  • 98
12
votes
5 answers

Evaluate current cell without leaving or losing the position in it in Mathematica

I am experimenting with logo designs in Mathematica (8 or above) using the notebook interface and I want to change the generating formula A LOT. The problem is I only know SHIFT + ENTER which makes me jump outside my current cell and lose my…
Cetin Sert
  • 4,497
  • 5
  • 38
  • 76
12
votes
6 answers

Self-restarting MathKernel - is it possible in Mathematica?

This question comes from the recent question "Correct way to cap Mathematica memory use?" I wonder, is it possible to programmatically restart MathKernel keeping the current FrontEnd process connected to new MathKernel process and evaluating some…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
11
votes
5 answers

mathematica start front end and eval notebook from command line

Is there a way to start up a mathematica front end (GUI) from a (Windows) command prompt and have it eval a notebook without further user action? even though mathematica.exe takes the -run and -initfile options they dont work the same as they do…
agentp
  • 6,849
  • 2
  • 19
  • 37
10
votes
3 answers

Known issues with copying code from Mathematica to other platforms?

I just noticed that if you have this in MMA (8.0.1 / win7-64): and you copy it to SO (just ctrl-c ctrl-v), you get this: (maxY - minY)/stepy/(maxX - minX)/stepx which is not mathematically equivalent. It should be this: ((maxY -…
Sjoerd C. de Vries
  • 16,122
  • 3
  • 42
  • 94
9
votes
1 answer

Detecting if a front end token is available to execute

How can I detect if a front end token is available to execute? Alternately, how can I detect if a front end token failed to execute? Example: the Edit -> Copy command is not available if nothing is selected. FrontEndTokenExecute["Copy"] will…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
9
votes
2 answers

Making a working copy of the legacy documentation for version 5 inside new versions of Mathematica

In new versions of Mathematica we have fully functional old-fashioned Mathematica Help Browser. But the legacy documentation of version 5 is not included in new versions of Mathematica. This legacy documentation takes only 209 МB of disk space and…
Alexey Popkov
  • 9,355
  • 4
  • 42
  • 93
8
votes
1 answer

Understanding Kernel-FrontEnd communication -- Why does my Front End freeze?

EDIT: Just a confirmation whether you can reproduce this or not would be useful. Only a single computer is needed to try this (no remote connection necessary). Update It seems other can't reproduce this on Mac or Win7, so it's either WinXP-specific…
Szabolcs
  • 24,728
  • 9
  • 85
  • 174
1
2 3 4 5