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

learn more… | top users | synonyms

13
votes
2answers
393 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 ...
17
votes
1answer
370 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
341 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
41 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
102 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
104 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
48 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 : ...
13
votes
3answers
245 views

Intelligently formatting PDFs

I'm exporting a Grid[] to a PDF. It's working, but it's real ugly. Here is an example of what it looks like: Possibly the first problem is the reason I posted a picture of (rather than sharing) the ...
5
votes
6answers
120 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 ...
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?
8
votes
2answers
508 views

A femme is a wife is a Frau

As can be seen from LanguageData["Properties"] // Multicolumn Mathematica's translation capabilities seem to be very limited. It can translate month names, ...
0
votes
0answers
36 views

Keyboard icon under windows

The following command Style[ "\:2328", Large] should display a keyboard icon on some operating systems. Is that correct? And on which systems? However it ...
1
vote
0answers
64 views

Why does my dataset lose its typesetting when I add columns?

I've tried multiple methods of adding and removing columns to a dataset, but it seems no matter which way I choose I can't get the data to typeset as a table. Here's my initial dataset: 1) ...
2
votes
1answer
645 views

How to export CSV from Mathematica?

I have previously been using logf[x_, y_] := f[x, y] /. v_ :>(PutAppend[Unevaluated[f[x, y] = v;], "out.txt"];); which produces output like ...
8
votes
4answers
269 views

Why do quote marks appear in output when saved with Save Selection As?

Update #2: This behavior has been confirm across platforms and in multiple versions. Therefore: Is this a bug or a feature? Can I disable this "feature" so that copying a selection of Cell contents ...
4
votes
2answers
77 views

TableHeadings align to the right

Is there away to get TableHeadings align to the Right instead of the default to the Left? ...
41
votes
7answers
1k views

How to “Copy as Unicode” from a Notebook?

I spent some time manually editing a post replacing Mathematica ASCII \[Alpha] with Unicode α. I did this by laboriously ...
4
votes
2answers
105 views

Sorting out atom types in an XYZ file

I am trying to rewrite the output of "VertexCoordinates" such that instead of a hybrid list of atoms and coordinates that result from using the following input program, I want all coordinates of the ...
4
votes
3answers
145 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 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 Wolfram Support if this ...
6
votes
0answers
63 views

Bug in TreeForm: “Plot” formatted as True

Bug introduced in 7.0.1 or earlier, persists through at least 10.0.1 I believe I have come across a rather curious bug in TreeForm: ...
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 ...
-2
votes
1answer
118 views

Creating a table giving the statistics of random polynomials [closed]

I already have a formula for generating random polynomials as well as for counting the real roots of every polynomial (see my previous question). But now I face the problem of how to organize the ...
1
vote
0answers
45 views

Changing face as you type in an expression in notebook

I've a Mathematica notebook for my class notes. When writing plain text in cells, I can dynamically bold and unbold with the ctrl+b shortcut. However, when in a mathematical expression, this shortcut ...
5
votes
4answers
191 views

Concatenating strings, unevaluated expressions and evaluated expressions/values

Maybe this is something very simple to some of you. Anyway, I think this can be useful to many others like me. I would like to build an output that involves strings, unevaluated expressions and ...
0
votes
1answer
32 views

Remove extra space between commas in subscripts generated by InputAlias

There are (unwanted) extra spaces between comma separators that are generated when I create an alias with subscript. Here is the code I am using: ...
7
votes
2answers
117 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. ...
4
votes
2answers
55 views

numerical precision in output file

I want to write the numerical results of a computation to a file which is to be read in Fortran. The data looks like: ...
1
vote
1answer
80 views

Transforming parametric representation of coordinates into cartesian coordinate system

Is it possible in Wolfram Mathematica to transform output of BSplineFunction so it returns results in cartesian coordinates not in parametric representation? Thank you for your responce. I should ...
9
votes
2answers
116 views

Automatically add appropriate prefix to Quantity

Is there a function that automatically adds the appropriate prefix to a Quantity object? For example, I would like a function ...
-1
votes
1answer
86 views

Formatting and inserting a parameter table into a plot

I'm fitting data, and I want to put the parameter table generated by NoninearModelFit into the plot. How can I do that in a reasonable way? I want to format the ...
5
votes
1answer
165 views

Restrict Mathematica command to what is inside parentheses

I have a bunch of expressions like this one: $\frac{e^{-\frac{7 J}{2 k T}} \left(2 e^{-\frac{2 g H \mu _B}{k T}}+e^{-\frac{g H \mu _B}{k T}}-e^{\frac{g H \mu _B}{k T}}-2 e^{\frac{2 g H \mu _B}{k ...
2
votes
0answers
46 views

Is there any way to get Times displayed as $\cdot, *,$ or $\times$ in output form? [duplicate]

In the output of Mathematica, operators $\cdot$ or * or $\times$ are usally displayed as space; e.g., $x * y$ becomes $x \, y$ in output. Is there any option that can be set to make "space" becomes ...
2
votes
2answers
66 views

Postfix with two arguments

This must be duplicate but can't find any related post. I'm want to pas it two argument in postfix like f[a_,b_]:=a+b; 1,2//f ...
1
vote
0answers
100 views

How could I make an Excel-like table?

I am looking to build a simple Excel type of a table with four columns. I have spent some time researching Mathematica documentation, but haven't come across a way to implement that. Here is a ...
5
votes
3answers
114 views

Why does TraditionalForm[Inactivate[x y]] show x * y ? instead of x y?

Given that both x and y are expressions, in my case x is ...
10
votes
5answers
366 views

TableAlignments -> Left not working

Bug present in versions 7 through 10.0.0. For a very simple dataset TableAlignments->Left does not work: ...
0
votes
0answers
75 views

Displaying subscripted symbols with TraditionalForm

I have pasted this code in from Mathematica 10 ...
1
vote
2answers
50 views

How do I format expressions so that replacement rules correctly apply to exponents? [duplicate]

I have a series of rules that I would like to apply to a series of expressions with variables, but cannot get Mathematica to correctly recognize that these rules should apply when my variables have ...
12
votes
3answers
782 views

Why doesn't PlotMarker option None return no PlotMarkers?

After reading the PlotMarkers documentation it seems to be all or nothing. For example if you wanted markers on some of you lines the code below seems ...
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 ...
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 ...
4
votes
2answers
74 views

Why can't I pass in a product of matrices in my modified matrixform? [duplicate]

In attempt to build a function that would work like MatrixForm but would wrap a matrix with brackets, I tried the following function: ...
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 ...
2
votes
1answer
59 views

TreeForm expression that will automatically spread nodes vertically so labels do not overlap

My deeply and unevenly nested lists and equations generate a TreeForm image which is too small and compressed to use. Then we must expand it manually by grabbing the edge of the image, and sometimes ...
8
votes
2answers
324 views

Telling mathematica to output * instead of space for multiplication, so I can copy as plain text

I am trying to get some symbolic expressions in Mathematica which I would like to paste into my C/MATLAB codes. This can be accomplished nicely by selecting the expression and right-clicking to ...
1
vote
1answer
60 views

How to increase significant digits in Mathematica

How can I increase the number of significant digits in Mathematica? When I import a matrix, an element like 112.5276 is rounded to 112.528. I would like to increase the number of significant digits ...
1
vote
1answer
52 views

How to update Print-out “in place”?

I want to run an exhaustive search algorithm that will take several hours to finish, so I'd like to have it execute Print statement periodically, showing the ...
0
votes
1answer
53 views

Forcing an integral to be solved in separate terms

Using Mathematica I want to solve an integral over a function that contains both determined and undetermined parts which looks like this: ...
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 ...
1
vote
2answers
124 views

Stopping Mathematica from reordering expressions [duplicate]

I want Mathemtica to stop manipulating my polynomials! I mean, I want the output of Print[3 x + 5 + x^2] to be just $3x+5+x^2$, not $5+3x+x^2$ as Mathematica ...