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

learn more… | top users | synonyms

0
votes
1answer
44 views

Changing notations for probability moments with subscripts

Suppose I have have two kinds of variables $X_{\alpha_j}, X_{\beta_k}$ in the form of Subscript[x,Subscript[α,j]] and ...
2
votes
1answer
19 views

How to change the OutputFormat of the Power operator in FortranForm

I'm trying to have mathematica automatically give me an equation which I can use in a different programming language. FortranForm produces output which is very similar to what the other language is ...
1
vote
4answers
117 views

Do not expand matrices in Mathematica calculation

Here is an example of a problem I'm having. Consider that I have defined: omega={{p[t]},{q[t]},{r[t]}} x={{a},{b},{c}} R={{1,2,3},{4,5,6},{7,8,d}} What I would ...
5
votes
2answers
113 views

Modifying the built in graphic format of colors

Can users modify the default format of colors in the front end? Red For example, dimensions, aspect ratio, EdgeForm? The motivation is the functional ...
5
votes
1answer
114 views

Using Padding with Text and Style

Suppose that I use: Text[Style["(1, 0, 0)", 12, Background -> White], {1, 1, 0}] How can I put a few points of padding around the text? Thanks to Jens: ...
1
vote
4answers
285 views

write fractions onto image [duplicate]

I like labeling my images with the variables used, so that when exported, I do not lose crucial information about the graph involved. Up until now, something along the lines of ...
0
votes
4answers
87 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.). ...
0
votes
1answer
44 views
3
votes
1answer
58 views

How to write a TraditionalForm for non-commutatively multiplied objects

I would like to write a TraditionalForm output for a string of non-commutatively multiplied objects. I don't really like the default output of the built-in symbol ...
1
vote
1answer
46 views

Show scientific form number in Epilog on a plot

I'd like to overlay a scientific form number on a ListPlot at a particular position. Simply using ...
0
votes
0answers
111 views

Piping StandardForm from within GUI

I am working on a GUI project where I need to pipe a string I constructed in Mathematica into an external program. For example ...
1
vote
0answers
55 views

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

How can I identify the d'Alembertian in this expression: $ -\frac{1}{c^2}V^{(1,0,0,0)}[t,x,y,z] + V^{(0,1,0,0)}[t,x,y,z]+V^{(0,0,1,0)}[t,x,y,z]+V^{(0,0,0,1)}[t,x,y,z]$ and convert it into the ...
5
votes
2answers
141 views

Displaying a list of percentage values according to their classification

I have a list of percentages as follows: percent = {21.15, 42.3, 57.68, 73.06, 84.6, 90.37, 96.14, 99.99, 99.99, 99.99, 99.99} I want to classify these ...
2
votes
0answers
26 views

Page breaks and headings in long table or grid

I have a need for long tables in a document I am producing but I am having difficulty. The printed document ends up with page breaks midway through the table which cuts rows part way through. I'd also ...
1
vote
2answers
93 views

How can I remove the decimals in the frame ticks?

Is there any way to remove the decimal places in the frame ticks. I would like to make the y axis ticks integers. I use the following code. My only problem is how to manipulate the y axis without ...
0
votes
0answers
58 views

Is there a better way to get nice looking equations in output?

I use Mathematica regularly for my schoolwork, however it's arduous to use TraditionalForm[HoldForm[f[x]==x]] every time I want it to spit out a good-looking bit of ...
11
votes
2answers
440 views

How to add a vertical line to a matrix?

Today, I want to write a program to show the solving process of a the inverse of a matrix, and I use the Elementary Transformation, so I need to add a vertical ...
3
votes
1answer
41 views

Change Property without re-evaluating [duplicate]

I am working with ContourPlot3D, and my expression takes a long time to evaluate (nearly 20 minutes). So I am wondering if there is a method to changing format ...
13
votes
1answer
392 views

Formatting Framed - some FrameStyle graphic directives don't work?

The FrameStyle option in Framed seems to work for some graphics directives but not others, eg: Framed["yo", FrameStyle -> Blue] But ...
8
votes
2answers
110 views

How to sort arguments of Times in nonstandard order?

Is there an elegant way to sort the arguments of Times in e.g. TraditionalForm so that factors go to the front and state ...
16
votes
4answers
879 views

How to keep Collect[] result in order?

For example, Collect[(1 + x + Cos[s] x^2)^3, x] gives the result ...
-2
votes
3answers
69 views

Formatting Tables in Mathematica [closed]

Ok, I created a table Table[j, {i, 4}, {j, 3}] // TableForm and the result is fine, from 1-4 in each column. Now, what if I wanted to extend this table into ...
3
votes
1answer
72 views

Engineering notation in mathematica 10 [closed]

It seems there is a bug in Mathematica 10.0.2 which is unable to display EngineeringForm properly: ...
4
votes
1answer
63 views

How to set default PageWidth for InputForm?

We can control the page width used by InputForm by applying SetOptions to "stdout": ...
2
votes
1answer
138 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 : ...
15
votes
2answers
160 views

How to create a dynamic expanding DisplayForm's styled like the ones in v10?

The display forms for objects like ClassifierFunction are nice clickable boxes I like this, and now I'm trying to create my a custom version of this for my ...
2
votes
0answers
24 views

Constructing new output object graphics [duplicate]

Occasionally, when you ask Mathematica to carry out a task for which there is no good compact representation for the output, it will generate a special icon in v10, or an abbreviation in lower ...
3
votes
4answers
248 views

Row and Column Headings for a Grid

It would be useful for me if I could write: Grid[{{a, b}, {c, d}, {e, f}}, GridHeadings -> {{"r1", "r2", "r3"}, {"c1", "c2"}}] just like ...
3
votes
1answer
101 views
1
vote
1answer
62 views

Displaying a matrix with integral entries

I have a matrix nxn with coefficients a[i,j] like: a[i,j]=NIntegrate[T[r], {r, -le, le}] - NIntegrate[T[r] Abs[r]/le, {r, -le, le}] I can solve the matrix but I ...
10
votes
5answers
217 views

Tidy form of numbers with errors using ScientificForm

Say I've computed something and got a number 0.02112398 with a computed error: 0.000331 Formatting it with ScientificForm[0.02112398 \[PlusMinus] 0.000331] gives ...
5
votes
1answer
70 views

Customized FortranForm output

Let's take the following example V = (-G*Mn)/Sqrt[x^2 + y^2 + z^2 + cn^2]; Vx = D[V, x]; FortranForm[Vx] The result is ...
7
votes
2answers
2k views

Formatting Ticks and FrameTicks labels with a function

Is there a convenient way to format tick labels? In this example I would like to use the default Mathematica tick intervals, but simply convert the X axis labels to strings with "s" added. As you ...
4
votes
2answers
83 views

How to scale multiple graphics to preserve relative sizes?

I'm looking for a simple way to make the displays of different Graphics expressions accurately reflect their relative sizes. (By "simple" I mean that it does not ...
5
votes
1answer
118 views

Set PlotTheme globally?

Can one set a default PlotTheme globally? While I recognize one can make lots of workarounds to sort of do this: Go to ...
5
votes
2answers
140 views

Showing AlgebraicNumber[1/2 (1 + Sqrt[5]), {-3, 2}] in human-readable way

Is there a function to show algebraic numbers in Mathematica more conveniently? I am looking for something similar to MatrixForm for matrices. For example, I would like to view ...
10
votes
3answers
456 views

Inconsistent display of TraditionalForm in version 9

After installing version 9, the default style sheet uses Arial font in text and formula cells. So far, so bad. At least one would hope this is done consistently. But now I see this: You can see ...
8
votes
3answers
205 views

Incompatibility of Row and TeXForm

Bug introduced in 9.0 and persisting through 10.1.0 or later 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. ...
2
votes
1answer
65 views

Change Tensor Product symbol for aesthetically pleasing output

I'm trying to find a way of keeping an ordered list of subscripted integers which can be outputted in an aesthetically pleasing way to make analysis easier. The idea is to have a list of numbers that ...
7
votes
1answer
86 views

Prepare mathematica output to be parsed in Python

I have Mathematica output that I would like to parse in python so I can generate equivalent expressions. So suppose I have the following: ...
5
votes
1answer
116 views

How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
0
votes
1answer
64 views

writing data in defined format into file

I have a code that writes datas into file using PutAppend[]. A simple form of the code is written below, ...
0
votes
0answers
46 views

Output of List formatted strangely

I'm running a monte carlo simulation which uses random input data and performs calculations on it, and then outputs a 100 by 100 sized array with my data. The code works without a problem but for some ...
2
votes
2answers
43 views

Format polynomial output for cutting and pasting into a text file

Suppose I have the polynomial given by the determinant of this matrix: matry = {{1 - R, 3, -3}, {1, 0 - R, 0}, {0, 1, 0 - R}} I am feeding the Mathematica output ...
0
votes
0answers
31 views

Mathematica hangs when computing page breaks

I'd like to set pagebreaks in my notebook according to my needs. But now I have huge problem with see print preview or saving as pdf because it gets stuck during computing page breaks on several dozen ...
0
votes
0answers
87 views

Are there examples that arrange graphs or plots with Mathematica?

If we have 4 graphs or output plots, could we arrange them and merge in one graph elegently?
2
votes
1answer
55 views

Change cell frame color in stylesheet

I am tryin to make a custom stylesheet but I am not able to get rid of the cell frame color from the base stylesheet. In particular I have, where I have changed the background color of the cell to ...