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

learn more… | top users | synonyms

0
votes
1answer
30 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 ...
3
votes
1answer
57 views

Strings with exclamation marks in Mathematica

Given this input FullForm[ToString[TraditionalForm[x]]] Mathematica outputs "\!\(TraditionalForm\`x\)" It seems like ...
0
votes
1answer
45 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
36 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: ...
0
votes
2answers
52 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
201 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 & ...
3
votes
0answers
49 views

Using an external Pattern breaks Format

I noted while writing this answer that using an external Pattern on Format doesn't work: ...
14
votes
3answers
433 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 ...
0
votes
3answers
31 views

Save a result containing HoldForm to a file

This is the workflow I have. Basically, I want the outputs of the polynomials I computed are in a specific order. (It is not the same one here, this is just an example.). ...
1
vote
2answers
138 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
88 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
101 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 ...
1
vote
0answers
73 views

FullForm in Linux Command Line with -noprompt

I am looking for a way to get the output of FullForm in Command Line under Linux (Debian) using -noprompt argument. Example : What I have : a+b*c What I want : ...
4
votes
4answers
82 views

How to set the output be generated in a cell different from “Output”

I would have some functions, for instance Plot, to generate their output using a different Cell's style rather than "Output". The reason is that I'm producing some documents with many images and, for ...
17
votes
2answers
391 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
32 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 ...
1
vote
0answers
37 views

Faded output is printed from dynamic object

When an output cell is generated by e.g. dynamical object, the output is printed faded out. This behaviour was introduced in v10 with multiple undo to indicate if an output cell is decoupled from its ...
2
votes
1answer
76 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
154 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: ...
11
votes
5answers
397 views

TableAlignments -> Left not working

Bug introduced in 7.0 or earlier and persisting through 10.0.2 or later For a very simple dataset TableAlignments->Left does not work: ...
1
vote
1answer
71 views

How to select a list from a list?

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

Formatting output for readability

I would like to suppress the argument [0, 0, 0, 0] of K in the output of ...
6
votes
3answers
174 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0. persist as of 10.0.2 Update: Since no one has been able to give a reason for this change in behavior or provide a solution I am tagging this as a bug. Please report it to ...
7
votes
0answers
76 views

Bug in TreeForm: “Plot” formatted as True

Bug introduced in 7.0.1 or earlier, persists through at least 10.0.2 I believe I have come across a rather curious bug in TreeForm: ...
2
votes
2answers
109 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 ...
3
votes
5answers
567 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
63 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
98 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
43 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: ...
3
votes
1answer
57 views

Why are the edge items in `Grid` truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
0
votes
0answers
33 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
34 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
208 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
124 views

PaddedForm adds an additional padding character

I would like to get a sequence from "01" to "10". I tried ...
1
vote
2answers
42 views

Append list into nested list in a file

I have a nested list that I use Put[mylist, file] to write to a file. I would then like to then append to this nested list some values and add them to the file. ...
2
votes
1answer
76 views

How to suppress clutter parentheses in output?

Dozens of unnecessary parentheses are making my output hard to read. For example, this: expr = D[f[x], {x, 2}]^2; returns this: (* f"[x]^2 *) But when I try ...
5
votes
2answers
136 views
1
vote
1answer
50 views

Disabling Mathematica's automatic sort of output

I used Mathematica to greatly simplify an algebraic expression. I now want to copy it into some notes, but it by defaults things in a very non-intuitive manner. I have a sorting function that will ...
6
votes
6answers
175 views

Trying to write out the prime factorization of a number with CenterDot and Superscript

I am trying to use CenterDot and Superscript, in conjunction with Apply to write out the prime factorization of any given integer. Everything works well UNLESS the prime factorization of the number ...
13
votes
2answers
448 views

Paste data into Mathematica with formatting

Select the following Mathematica code and paste it into a notebook. In Windows 7(Mathematica 8) the line breaks are not interpreted in the expression. In fact any data copipasted from stackexchange ...
18
votes
1answer
423 views

How can I make a notebook with two column layout?

How can I make a notebook with two column layout? Is it possible? I saw something tools could do such thing? Author Tools?
14
votes
4answers
351 views

Prevent graphics render inside held expression

Assuming each odd line is input I would like the even lines to be the output of the following lines. In the above the Graphics are inside ...
0
votes
0answers
46 views

Write output to a file as well as showing it in my notebook

I know this is a bit vague, but I will try to be as specific as I can. Basically, I am looking for a way to save formatted output, like sink in R and ...
2
votes
3answers
104 views

Outputting numbers symbolically

Suppose I want Mathematica to output Table[2^n, {n, 1, 5}] Mathematica gives {2, 4, 8, 16, 32} but how can I get ...
0
votes
2answers
114 views

Variable Value as Range

Thank you for the help so far! I would like to assign +/i signs for the function and solution such as (+)(+)(-) and therefore (-). It is working for the first evaluation, λlower, but not for the ...
1
vote
0answers
90 views

Format Mathematica complex number for fortran code use

I'm using Mathematica 10. I am trying to write into a file complex number output to then be read by a Fortran code. But when I do : ...