Specify and control how Mathematica formats its output, including rich text, equations and graphics.

learn more… | top users | synonyms

10
votes
3answers
246 views

Changing BarLegend border style

I want all the lines in my plot to be a consistent style, let's say thick and black for the purpose of this question. ...
0
votes
0answers
33 views

All output in TexForm [duplicate]

In the Preferences -> Evaluation panel, there are only options for StandardForm, TraditionalForm and ...
0
votes
2answers
77 views

Function that creates a table from two lists

I have two lists shown below: list1 = {(0,0,0,0),(0,0,0,1),(0,0,1,0),...,(1,1,1,1)} list2 = {1,5,5,5,...,5} How can I construct a function that outputs a table similar to this: $$\begin{array}{c|c} ...
1
vote
2answers
107 views

Format a formula in human readable form

Is there a way to make a formula display in a human readable form? I have something like Binomial[(10000000 - 1), x]*(1/2^24)^x and I'd like it to display using ...
1
vote
1answer
33 views

Using MatrixForm in a Manipulate

I have declared some lists vAwG = {{{0}, {0}}, {{1}, {1}}}; psi = {0, 1, 2, 3}; vBwB = {{{1}, {0}}, {{0}, {1}}}; and created a function ...
4
votes
1answer
85 views

Cost of Living comparison for many cities

I have an excel file with about 40 cities listed. I would like to compare the cost of living for each one. I have seen the sample "relocation calculator" given by the input: ...
1
vote
2answers
111 views
2
votes
1answer
105 views

Label a Grid with the arguments of a function

I would like to make a table with row and column headings being the arguments to a function and the values to be the value of the function. So far, I have this: ...
1
vote
1answer
52 views

How to modify the output result of an evaluation

For ease of notation, I have defined a function, $f$, that defines the permutation of Bosonic particles such that it has the following properties (the form of $f$ is irrelavent for this question): ...
9
votes
3answers
337 views

Convert number to word

I have a big number like: 123 456 789. Now I'll to writ it like this 123 million 456 thousand 789 I've search on the internet but nothing found that works. How can you do that? Thanks.
2
votes
1answer
99 views

Typing (and executing) expressions with multiple superscripts

I am trying to type (and evaluate) expressions of the following form: $$ G^{a,b} $$ into a mathematica. I've tried the obvious G^(a, b) or ...
1
vote
0answers
33 views

How do I reassign canonical ordering of special expressions?

1. Default behavior of Sort Note: this peculiarity is described in a comment to a related question at StackOverflow but I think it's worth restating here at mma.sx. It is estabilished in ...
0
votes
2answers
49 views

How to get approximate (decimal) output for ArcCosh[e^x] [closed]

The specific input I'm using is ArcCosh[e^1.5400733368255632], how do I get this to give me an output in decimal form?
7
votes
3answers
305 views

Creating a TeXForm/TraditionalForm/etcForm - like function

How could we go about creating a function that behaves like those? After a while thinking, my best try is with CellPrint printing an ...
2
votes
0answers
41 views

Dynamic Slider and InputField: some numbers with machine precision display badly [duplicate]

I want to control a value in my program either by a Slider or an InputField. The following code does what I want in principle: ...
1
vote
0answers
14 views

Difficulty with Copy as PDF in Mathematica 10.0.2.0 [duplicate]

I just installed Mathematica 10.0.2.0 on my Mac and I find that I can no longer use the Copy as PDF commands to copy a Mathematica graphic and paste it into a powerpoint presentation. When I do this ...
4
votes
1answer
116 views

How to justify this Grid vertically

As titled above, How I can justify and how I can change the space between columns in this Grid specified below: ...
5
votes
2answers
1k views

How do I set the fonts for Input and Output in my stylesheet?

I'd like to change the font that Mathematica uses for output by setting the font of the corresponding style in my stylesheet; bit simply overriding the default ...
1
vote
1answer
50 views

Function does not initialise variable as changes are made in the manipulate function

My function "DefineRss[]" takes in three arguments and outputs a plane value. It sits in the first argument of the function plot3D and that in turn sits in the manipulate function The function also ...
0
votes
1answer
37 views

Output form of a result [closed]

Suppose I computed something with Mathematica, and the result is in the form Gamma[1 + N]^2 How can I tell Mathematica to write the result in a more ...
4
votes
0answers
64 views

Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? ...
3
votes
1answer
92 views

Strings with exclamation marks in Mathematica [duplicate]

Given this input FullForm[ToString[TraditionalForm[x]]] Mathematica outputs "\!\(TraditionalForm\`x\)" It seems like ...
0
votes
1answer
57 views

How to put a fixed sized frame around traditional form expression

The height of a 2D form of a polynomial changes depending on the existence of exponents, fractional coefficients, etc. For use inside a Manipulate, I would like to ...
0
votes
1answer
66 views

Prevent a sum from simplifying? [duplicate]

Basically, I want to prevent a sum from cancelling or summing together the individual summands and just display them separately next to each other. Example: ...
1
vote
2answers
116 views

Showing an output without square brackets

Suppose that an output is which could be obtained from, for example, D[f[x, y, z], x] / D[h[x, y, z], x] I'm looking for a way to show it without the square ...
4
votes
3answers
219 views

How can I suppress zero or nonzero values in a matrix?

So, if I have something like: F[IdentityMatrix[3] // MatrixForm, 1] I'd like F[] to display: $$\begin{pmatrix} 1 & ...
14
votes
3answers
563 views

Format and TeXForm does not work as expected

Recently, we had a nice question which brought up an issue that I believe is a bug. In the tutorial Defining Output Formats is an example at the end which doesn't make sense This specifies the ...
1
vote
2answers
144 views

Show Simplified Directives [closed]

Is there a way to force Mathematica to convert an already rendered Graphic to the simplified Directive form of that Graphic. Background: I am currently editing Graphics using Drawing Tools and then ...
2
votes
3answers
137 views

How to automatically make the maximum of each row in a table(grid) bold?

TableForm[Table[i/j + 4*Boole[j > i] // N, {i, 3}, {j, 4}], TableHeadings -> {{"Row1", "Row2", "Row3"}, {"Col1", "Col2", "Col3", "Col4"}}] Produces the ...
6
votes
1answer
213 views

Creating formulas for the Moodle CMS question bank

Edit I have made some progress on this problem, which is given below the question. I use the Moodle course management system for much of my teaching, and the CMS comes with a tool for creating ...
20
votes
2answers
439 views

What are all the named Mathematica styles?

This question came to mind because of this answer to a recent question. Under Style, the Mathematica Documentation Center says the following about named styles. A few common named styles ...
1
vote
0answers
97 views

Display error on frame label after exporting image to pdf

This is a simple plot, it looks fine in Mathematica. But after exporting it to pdf file, the display of vertical frame label has an error. The "33" in the subscript "epsilon33" becomes somewhat a ...
2
votes
1answer
89 views

Format Exp[] in output

The output of foo=Exp[x] is formatted automatically as $e^x$. For long expressions it's not as easy to read as Exp[...]. How to format the output so that ...
6
votes
3answers
171 views

Multiplication sign in TeXForm?

How do I get Mathematica to produce TeX output that does not omit the multiplication signs ? For example, this expression: ...
1
vote
1answer
87 views

How to select a list from a list?

I have a list contains three vertices of a triangle. ...
1
vote
1answer
74 views

Formatting output for readability

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
2
votes
2answers
184 views

Prevent axis label being cutoff

I am running into an issue whereby my Y frame label (I want to use this rather than an axis label to make the label vertical), is being cutoff when I view the graph. See below for an indicative ...
5
votes
5answers
1k views

Is it possible to “pretty print” my input integral in Mathematica like Wolfram|Alpha does?

With Wolfram|Alpha, if I enter: Integrate[r^3, {t, 0, 2Pi}, {r, 0, 2}, {z, r^2, 4}] Wolfram|Alpha will pretty print my input like so: Which is very readable, ...
0
votes
2answers
67 views

NSolve gives {{ x -> #}}, How do I make x = #; I need to use the x value again later

I want to use: demand = {1.92, 2.07, 2.37, 2.72, 2.87}*10^6; NSolve[SetV == demand[[1]]/(Cpf (1 - χ)), χ] I want to make a vector of solutions ...
4
votes
1answer
112 views

Manipulate Demo Full Screen

Is it possible to create a demo using Manipulate and then open it in a document that can be expanded to full screen?
0
votes
0answers
102 views

Export “Print” command to text file

I am trying to create a text file with specific information in exact locations. This is my code: ...
0
votes
0answers
46 views

ParagraphSpacing inside Style'd Text

From ParagraphSpacing's documentation: ParagraphSpacing is an option for Cell, StyleBox, and Style that specifies how ...
2
votes
0answers
39 views

Find d'Alembertian in the output and convert into Einstein summation convention form

I am trying to do field variations in Mathematica and would like some nice formatting. My output is in the form $ -\frac{1}{c^2}V^{(1,0,0,0)}[t,x,y,z] + ...
4
votes
2answers
266 views

How to prevent Grid from breaking the line upon export

I want to create a legend for my plots (a mixture of RegionPlots and ContourPlots). The legend should show the meanins of colors as boxes with text in them and the meaning of contours as framed number ...
6
votes
2answers
150 views

PaddedForm adds an additional padding character

I would like to get a sequence from "01" to "10". I tried ...