Questions tagged [output-formatting]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 views

Why is a simple vector list inside Row not rendering in MatrixForm when passed in as an argument to a user defined function?

I stripped down a function makeRuleRow down to its bare essentials (of irrelevant descriptions) to understand why my vector list ...
0
votes
0answers
24 views

Using Experimental`OptimizeExpression for expression optimization

I am trying to optimize the following expression (example only) expr = Normal[Series[(1 - y - 2 z)^-2, {z, 0, 3}]] whose output becomes ...
0
votes
0answers
29 views

Write Tensor Product in Matrix Form

I want to write the tensor product A $\otimes$ B in matrix form, where\begin{equation} A= \left[ {\begin{array}{cc} 1 & 2 & 3\\ 4 & 5 &6 \\ 7 & 8 &9 \\ \end{array} } \...
1
vote
1answer
23 views

Formating of cells with Dates on Exporting [closed]

I am trying to export a matrix into a .CSV file which has dates with format: Year/Month/Day. When I try to export it into a CV those cells are converted into Day/Month/Year When I try to export it ...
2
votes
1answer
75 views

How to control the output of Polygon

In the documentation article for Polygon in Mathematica 12, there is an example with the input: ...
0
votes
0answers
51 views

Can you create a list of pairs? Not a list of list

Is it possible to get this:{(x1,y1),(x2,y2),(x3,y3)......} -> This is a list of pairs. Not a list of list. x would be the input into a function, y would be the output. If not, I will have to create ...
2
votes
0answers
67 views

How to obtain input and output of a function as a pair? [closed]

I thought this was going to be simple. But, I just wanted to print the input and the output of a function as a pair. But, I can't find it. I found this on another questions and this works(this was ...
1
vote
1answer
33 views

How to have a common input for different nb file

I have a set of five files. Each file takes a common input. But I need to change the input and run the files. The output of some file are used in other files. So how to do this. And also is there any ...
5
votes
1answer
153 views

How can I prevent Mathematica from cutting sentences in the middle when printing strings?

I have a very simple but annoying problem. Consider the following example: ...
2
votes
0answers
27 views

Reformatting $y$-axis labels from decimal to exponential form [closed]

I have this graphic How can I reformat 0.001 as 10^-3? just like the 10^-4?
0
votes
0answers
23 views

Vertical text in a nested grid not aligning correctly along the horizontal (center desired)

I reconstructed the results of several functions that generate rows and nested grids so as to do away with the minutia. I am having difficulty getting the vertical text to ...
1
vote
1answer
48 views

How to change the TeXForm output while exporting an array to LaTeX format?

I have an array in Mathematica, which I would like to export to a file in TeX format. ...
0
votes
1answer
54 views

Remove Two sets of curly brackets from output

My output for my "c" values is given in two sets of curly brackets, how can I remove these? I need to be able to take a "c" value and test whether it is positive or negative. Also ...
5
votes
2answers
78 views

Adding interactive text

I have two text style cells as shown in the picture (second one is hidden). Is it possible to add an interactive button so that if someone clicks on that button/...
1
vote
1answer
28 views

How can I tell Mathematica to use ScientificForm also on the first column?

I want to calculate the value of a function for some particular values of the variable and put it in table. This is my code: ...
2
votes
0answers
37 views

How to copy and paste special characters out of Mathematica [duplicate]

I'm doing a bit of string manipulation, and the output has Greek characters in it. I want to be able to copy and paste those Greek characters out of Mathematica and into another file. For example, ...
7
votes
5answers
270 views

Rewriting partitions using exponents

I'm looking for a way to re-express a partition given in full form, like $\{{2, 2, 1, 1}\}$, into the shortened form $\{2^2, 1^2\}$, i.e. given a partition with repeated entries, count the number of ...
1
vote
1answer
48 views

How to rearrange polynomials to be more readable?

Why is Mathematica not able to identify that this polynomial: ...
2
votes
1answer
47 views

Change Font and Size of Print[] output

I managed to create a definition for the "Print" style, following the instructions here. However, the result does not work in my v.12.1. On the plus side, a "Print" entry exists at the bottom of the ...
1
vote
3answers
71 views

Mathematica inverting algebraic output order

This is a somewhat silly requirement, but would help a lot in my workflow. Whenever I output an algebraic expression which contains a number, mathematica always orders the number first whenever ...
0
votes
0answers
38 views

Arrange the output by 3-adic valuation

I have a number that has the form $x=\sum_{k=1}^n c_k3^{q_k}$, where $q_k\in\mathbb{Q}$ and $0\neq c_k$ is in $\mathbb{Z}$ or $i\mathbb{Z}$. We may define the $3$-adic valuation of $c_k3^{q_k}$ as $...
6
votes
1answer
54 views

Option Inspector “Permanent” Change

Whenever the package LieART is loaded using << LieART`, ...
2
votes
1answer
80 views

Problem calling function defined with HoldFirst

V 12.1 on windows. I am trying to use nice function from a recent post How to directly get the TeXForm of each steps from Rubi? ps. to run MWE code below, requires Rubi package, which if you do not ...
0
votes
1answer
48 views

Easy number formatting for axis of plots?

Is there a trivial or extremely easy way to get this?
0
votes
0answers
10 views

How can I obtain the traditional form of variable defined by Notation?

I use Mathematica to deduce the equation. My formula contains many derivative, for example I have a variable $\sigma_x=\frac{\partial u_0}{\partial x}$. I want to directly copy the deduced formula to ...
5
votes
1answer
64 views

how to use MatrixForm on a matrix after applying NumberForm on it?

V 12.1 on windows. I do not remember if I've seen this and googling is not helping. I wanted to format a numerical matrix for display using MatrixForm. But first ...
0
votes
1answer
44 views

Controlling label alignment/spacing in large grids

I have a matrix, here called result that I want to place in a grid. The first rows of the matrix newcolumnlabels contains the column labels each of which is a string containing the column label ...
3
votes
2answers
60 views

Advice for making addition and multiplication tables for my kid

I'm working with my 6 year old on understanding and mastering addition. As a result, I want to be able to make some custom addition (and eventually multiplication) tables for her to fill out. ...
1
vote
1answer
59 views

How do I keep the Standard Form from reducing negative powers?

I have the following input form: R[η_] := (3*Subscript[ρ, B]*aEta[η]^-3)/(4*Subscript[ρ, γ]*aEta[η]^-4) It's supposed to look like this: $$R[\eta\_]:=\frac{3 \...
3
votes
1answer
58 views

Keeping Parentheses in TraditionalForm

I have an equation that I want to display, emphasizing one part by putting it in parentheses. However, Mathematica removes the unnecessary parentheses. I'm looking to output something like:
2
votes
0answers
30 views

Text in Grid cells not aligning correctly and how to style them all with single rule

This is the entire module that contains all code to output with a Print[Grid[data, rules]] statement. I have all cells arranged in stacked rows in a convenient <...
0
votes
2answers
71 views

Trying to generate strings using Recurrence Table

I'm trying to generate strings recursively that look like this: ...
2
votes
2answers
72 views

Isn't there a better way to display mathematical equations as labels, in Manipulate[ ] etc.?

I often want to output a mathematical equation in a text environment, and I find it very cumbersome and often the result is also not satisfactory. This example out of the "Advanced Manipulate ...
0
votes
1answer
74 views

How to make Mathematica less than 100 million not output by scientific counting

I want the result of 1200000000*0.001 to be 1200000. But Mathematica's output is in the form of scientific counting. How can I ...
13
votes
1answer
134 views

Control grain size of stipple shading

Mathematica 12.1 introduced a number of amazing shaders such as StippleShading. Is there a way to control the grain size of ...
14
votes
2answers
968 views

How to draw a “proper” tree diagram

...
2
votes
2answers
31 views

Inputting a function into frameticks with ArrayPlot

Here's some data: data={{1,2,3},{2,3,4},{3,4,5}} Here's the data plotted: ArrayPlot[data,FrameTicks->Automatic] I want to ...
3
votes
3answers
277 views

Table of Derivatives looks better on Wolfram|Alpha

I would like to reproduce the table format on the right side of the included image (Wolfram|Alpha) in Mathematica (left side). How best to do this? I copied the Mathematica code from wolfram|...
6
votes
2answers
189 views

Consistent tick label height in BarChart

Consider the following BarChart example: ...
1
vote
0answers
25 views

Output with cases. How to interprete the case `True'? [closed]

I am performing the following integration Assuming[{r > 0, s > 0, a == 2}, Integrate[s^(2 - a)/Abs[r - s] s^2, s]] and I get two cases for the output. ...
2
votes
1answer
26 views

Formatting a DateDifference string

I have code like startTime = DateString[]; ... endTime = DateString[]; timeElapsed = DateDifference[startTime, endTime, {"Hour", "Minute", "Second"}]; Then ...
0
votes
0answers
11 views

Description of Menu Format -> style individual styles and their implications for the cell behaviour

Is there any documentation for the menu Format->Style? I wanted to include in the notebook examples of the code and I used for those cells the style called ...
4
votes
1answer
49 views

Around formatting won't work with a imaginary number and small error

The new function of Mathematica 12, Around, is a replacement of the obsolete ErrorBar function from ...
1
vote
0answers
23 views

For ``Formulate'' and then Hold/Print Maths expressions?

I have written a function myPfuntest, ...
2
votes
1answer
62 views

how to make Greek alphabet more readable

I often use $\alpha$,$\beta$ ,etc. in my mma program. But when I Ctrl+C,Ctrl+V , They become \[Alpha] .which is longer. So is there a directly way to copy they ...
3
votes
1answer
91 views

Display returned integral containing assumptions with integral sign

From solving the PDE example of the general 1 dim heat equation in Nasser Abbasi's site https://www.12000.org/my_notes/pde_in_CAS/maple_2019_and_mma_12/insu157.htm#x182-1810003.1.1 (his problem No 151)...
7
votes
3answers
280 views

How to Reverse a table in Mathematica?

This is my first time using Mathematica and for a homework assignment we were asked to print this table: By using this code TableForm@Table[j , {i, 1, 9}, {j, 1, i}] to print the table but with the 9 ...
1
vote
1answer
48 views
1
vote
2answers
55 views

The ordering problem of multivariate polynomials

This is the result of Taylor expansion of a binary function ...
1
vote
2answers
88 views

Why Mathematica does not interpret this LaTeX code correctly

ToExpression["$ \\frac{\\partial ^{n} f}{\\partial x^{n}} $ ", TeXForm] It outputs 0 instead of the partial derivative: $$ \frac{\partial ^{n} f}{\partial x^{n}} ...

1
2 3 4 5
22