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

learn more… | top users | synonyms

3
votes
2answers
166 views

Why don't these styling rules work when viewed in TableForm?

m = RandomInteger[{-5, 5}, {10, 10}]; m /. {x__, y_ /; y > 0} -> Style[{x, y}, Red] % // TableForm When m without style ...
3
votes
2answers
454 views

Calculate with units

If I want to calculate with units, for example using Pythagoras theorem, I would do this: c = Sqrt[(3m)^2 + (5m)^2] The result will be ...
3
votes
2answers
199 views

Can I ask Mathematica to replace the arguments of my functions with a replacement rule?

I have an equation that I evaluate at some point (let's say $x=1$) that have terms of the form f[1,y] D[g[1,y],{y,2}] Is there an easy way to replace [1,y] by ...
3
votes
2answers
171 views

ScientificForm is not being applied

I am looking to compute the value of $\sum^{3249}_{n=58} 2^{n \choose 2}$, but when I try to execute ScientificForm[Sum[2^Binomial[n, 2], {n, 58, 3249}]], I get a ...
3
votes
2answers
104 views

Display Quantity in full form

Is there a way to display Quantity[] in full form in the output? I know you could use Quantity[valuse, Unit]//InputForm, but ...
3
votes
2answers
226 views

Changing order of TeXForm output

I am creating Taylor polynomials and exporting them using TeXForm. When a polynomial p[x] is displayed in Mathematica, it shows, ...
3
votes
3answers
203 views

Subscripts in programatically generated section headers

Consider the following command: TextCell["\!\(\*SubscriptBox[\(H\), \(2\)]\)", "Section"] How can I display the string as section header and get the DisplayForm? ...
3
votes
1answer
155 views

Control over the way matrix is displayed

I am wondering how to change the output format in Mathematica. For example, I have $x=\binom{3}{1}$ and $y=\binom{2}{5}$, and I want to find what linear combination of $x$ and $y$ produces ...
3
votes
1answer
276 views

Formatting data tables with Grid + Dividers vs. SplitBy --> GridBy?

A quick method to format human-readable data tables with headers, is to use Grid, eg: ...
3
votes
2answers
157 views

Real and/or improved CForm of expressions

I'd quite like to be able to automatically generate C++ versions of certain mathematical expressions that I've manipulated in Mathematica. The resultant C++ code fragment is then going to be used ...
3
votes
3answers
180 views

Generating a list of questions (simultaneous equations)

I am trying to create a list of simultaneous equations showing steps, where I only need to change a, b and the question number, and maybe a couple of minor things about q (where q is the factored ...
3
votes
1answer
119 views

Is it possible to show Tooltips in a ListPicker menu?

Is it possible to show Tooltips in a ListPicker menu? This effect is possible using TabView, but I would much prefer using ListPicker. Below is a simplified version of my code. ...
3
votes
2answers
227 views

Manually adjust graph vertex location by dragging?

Sometimes I have a graph and I want to make tweaks to the vertex locations. Is there any way to manually adjust graph vertex location by dragging? If I double click to edit, I can move around the ...
3
votes
2answers
87 views

How to specify a StyleSheet of a newly programmatically-created notebook?

I would like to make a button that opens a notebook upon pressing. The point is that I would like the notebook to be made according to a specified StyleSheet. To be more specific, here is a simple ...
3
votes
2answers
110 views

How to “explode” a list inside a function call argument list? [duplicate]

I'm trying to do something like below, but it doesn't work, since StringForm requires each item from parts to be given ...
3
votes
2answers
195 views

How to remove border points from InputForm?

I have this code, and it generates the below ListStreamPlot. The second graph is the ListStreamPlot overlaid with the points ...
3
votes
1answer
106 views

Force ellipsis to print an end of an expression

For pedantic reasons I want to display an infinite sum of fractions in fractional form (i.e. as 1/x not as x^(-1)) with an ellipsis at the end of the expression. I have tried a number of ways and ...
3
votes
2answers
116 views

Getting the complete Cell expression some input would generate as output

I can think of calling Print and then SelectionMove to copy the expression and then delete it. Is there any more transparent ...
3
votes
2answers
115 views

How do I NOT change the input/output number when editing?

I tried to search for a topic on this, but didn't seem to find anything, so here goes. I'm pretty new to Mathematica, so there are a lot of things I don't know yet, but one thing is pretty annoying ...
3
votes
1answer
301 views

Matching parentheses size in plot labels

I am attempting to do a seemingly-simple task: label ordered pairs in a Plot that display with parentheses that grow to match the expression within. I've trawled ...
3
votes
1answer
129 views

How do I edit the background of Axis labels in my plot?

I'm using the standard report stylesheet in Mathematica and when I output a plot, I've set it up so that I get a white background, however the axis labels still have a gray background. How do I change ...
3
votes
1answer
1k views

Embed CDF into an Apple iBook?

Edit From the comments I received and verifying the information about CDF at wolfram.com, it appears that it is presently impossible to embed CDF into iBooks. WRI does not appear to be happy with this ...
3
votes
1answer
79 views

how to write TableForm expression into file?

Now I have a list stored in data as follows data = {{"Ca", 1, 1, 1}, {"Ca", 2, 2, 2}, {"Ca", 3, 3, 3}} the ...
3
votes
1answer
61 views

Set number of columns in text-based interface

Is it possible to set the number of columns in Mathematica's text-based interface? Or disable word wrapping in the text-based interface ? Specifically, my concern is output from ...
3
votes
1answer
59 views

Print prints into the Messages notebook rather than into the evaluation notebook

Some time ago I noticed that the results of the evaluating the function Print[something] does not emerge in a new cell created in the notebook where the operation ...
3
votes
1answer
74 views

PostProcessing TraditionalForm output to append a vertical bar?

This simple task is giving me trouble. Suppose I'd like to take the output from TraditionalForm[Integrate[x^2,x]] and post-process it to append a vertical bar ...
3
votes
1answer
447 views

How can I efficiently write formatted data to a Gaussian Cube file?

I am working with data files that contain information about electronic wave functions. The data format is specified by the quantum chemistry program Gaussian. I need to import the data, manipulate ...
3
votes
2answers
345 views

Representation of negative exponents [duplicate]

Possible Duplicate: Way to improve “show me this decimal number to M places, don't use scientific notation”? How can I expand e.g. number 1.*10^-8 so that there would be no ...
3
votes
1answer
237 views

How to write output to an external text file in addition to the standard output stream?

How to write output to an external text file in addition to the standard output stream, i.e. a notebook for a session with FE and stdout for command-line session?
3
votes
2answers
2k views

Mathematica output doesn't work as input

Sometimes when I do, for example, a series expansion Mathematica gives me output that it won't take as input. For example if I do a series expansion: ...
3
votes
1answer
74 views

Symbolic Output after numerical computation

I have a small question about the symbolic output. I started to write a program that generates the coordinates of n-dimensional polytopes by Wythoff construction. For crystallographic groups, all is ...
3
votes
1answer
86 views

Converting string representation of boxes into explicit boxes

It is very easy and convenient to write textual labels as Strings in the WYSIWYG mode. For example, I define a short form describing a linear model: ...
3
votes
1answer
112 views

Copy/paste of Interpretation to Latex fails, but works for InputText

As part of another issue, the following has come up. Create an Interpretaion: Interpretation[Subscript[a, b], a[b]] Select ...
3
votes
1answer
313 views

How can I export specific data into different pages in .PDF format?

I have made various Grid-s and arranged them column-wise in another Grid. All Grids are ...
3
votes
1answer
185 views

How to see a long output expression

I often run into long expressions in the process of solving equations. To go forward I need to be able to eye-ball the expressions to make some substitutions or use some existing relations I know to ...
3
votes
1answer
63 views

Combination of CellPrint and PrintTemporary, or DisplayForm for Cells

I'm programmatically generating some formatted output that generates a cell in the form of a Cell[] expression. For instance, the output might be ...
2
votes
2answers
449 views

I get weird <<…>> symbols in my output — what does it mean?

After I input the following: data = Table[{3 + i + RandomReal[{-3, 7}], i + RandomReal[{-2, 5}]}, {i, 1, 20}]; model = LinearModelFit[data, x, x] I got ...
2
votes
3answers
151 views

Wrapping a data selection in Mathematica

I was wondering what would be the most efficient way to add brackets to given elements in my data set in order to change it's form from {{a,b},{c,d}} to {{{a},b},{{c},d}}. I took a look through a few ...
2
votes
3answers
109 views

How do I save a Unicode string?

I am having a problem saving a long complicated string with Unicode characters in it. I have boiled the problem down, I think, to this minimal example: ...
2
votes
2answers
331 views

Awkward output of TeXForm

When I try to format a number that has a big exponent with TeXForm the following happens: ...
2
votes
2answers
250 views

How to output an expression as a Dot[] product

How to force Mathematica to output an expression such as $a1u1+a2u2+a3u3$ as a Dot product like this one: ...
2
votes
1answer
690 views

Equation of the plane passing through the three points [duplicate]

Possible Duplicate: How to put terms in lexicographic order? I write the equation of the plane passing through the three points $A(-1, 5, -2)$, $B(2, 4, -3)$ and $F(4, -8, 6)$, and this is ...
2
votes
2answers
95 views

Set all output to be of specific form

I want every output expression in a notebook to use //PowerExpand and also to format numbers as scientific. Is there a way to do this without explicitly calling ...
2
votes
3answers
113 views

String formatting

I have the following string: "174,861.00 ( 4,053.52) 206,850.48 118.29 ( 31,989.48)" Parentheses stand for negative numbers. I will like to get ...
2
votes
1answer
116 views

How to change the output format of a built-in function

Is it possible to change the output of build-in functions? I would like to change the output for IdentityMatrix[n] to "I", so I tried ...
2
votes
2answers
79 views

Inconsistency of output format in `Eigenvalue`

I am bothered by the output format of the last two elements of efre. Is there a way to make these two look like the same format as the first two in ...
2
votes
1answer
150 views

Representation of product with exclusions

Is there a nice way to define output formatting for my expression, a product from n = k to j with ...
2
votes
2answers
864 views

How to display a different number of significant digits in each column of TableForm output?

Say I create a table with three columns of numbers. Is there a way to control the number of significant digits displayed in each column. To make this concrete, take the following command: ...
2
votes
1answer
54 views

How to right adjust the output of a print statement

Suppose i want to print numbers in a loop/table For[n = 1, n < 31, n++, Print[BaseForm[n ,7]]] the output comes with numbers left adjusted. How Can I make them right adjusted?