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
0 answers
43 views

The standard of creating blank space to write down something

I want to create some blank spaces, and type a number in each blank space, and do something with the numbers. ...
user avatar
  • 3,063
7 votes
4 answers
316 views

Fit text within a button

Column[Table[ Button["ABCDEFGHIJKLMNOPQRS", Null, ImageSize -> i], {i, {50, 100, 150, 200}}]] will output As in the above example, Mathematica ...
user avatar
  • 3,063
2 votes
2 answers
254 views

How do I make a table of values that looks like this?

I want to make a table that looks like the above image to record values from my function $\omega(m,n)$ as defined in the following Mathematica code: ...
user avatar
  • 287
-1 votes
0 answers
40 views

How to get the data row wise rather than column wise. and how to export the data into excel? [closed]

d1 = 0.2; d2 = 0.8; c1 = 1; c = 2; b1 = 2; b2 = 1; a = 500; m2 = 20; [Beta] = 0.2; [Tau] = 0.1; e = 4.65; ss = 0.1; ...
user avatar
  • 39
1 vote
1 answer
53 views

Wolframscript: Removing prepended message from Print in slave kernel

I am running a parallelized algorithm using WolframScript and inside the function being passed to the various kernels, I have print statements that track the computation and output the print ...
user avatar
  • 557
2 votes
0 answers
35 views

Automatically iconize all Associations in output cells

I work with expressions containing large associations (<|…|>) as subexpressions, and I want to automatically iconize all such subexpressions in all output ...
user avatar
7 votes
4 answers
154 views

How to determine the current width of the output cell area?

When answering this question, I suddenly realized that it is surprisingly difficult to determine the current width of the output cell contents. I tried to employ the ...
user avatar
0 votes
1 answer
52 views

ToString[SetPrecision[x,1.2]] doesn't work as expected

2nd Code Block demonstrates failure in comment of output ...
user avatar
6 votes
3 answers
244 views

How to export a .svg with same width as the front-end window

ResourceFunction["CreateSortableUniqueID"][20] As we see, each row has 2 UUID in the current window. But when I export ...
user avatar
  • 24.5k
1 vote
0 answers
28 views

The same figure prints on two consecutive pages

I have a Mathematica 13 notebook that includes some illustrations that repeat across pages when the document is printed. The figure is not duplicated in the notebook - there are not two figure cells ...
user avatar
  • 2,075
4 votes
0 answers
67 views

What are some basic references for learning "box language" and further mathematica language customization techniques? [duplicate]

I'd like to be able to understand and write mathematica code that is able to customize in some way the output of mathematica in notebooks, for example. I believe I need to learn the so called ...
user avatar
  • 41
1 vote
1 answer
60 views

Draw the values of two variables each on a axis in a square

I plot lists of {xA1} over time and lists of {yB1} over time. Now, How can I draw two lists {xA1} and {yB1} so that the values of each are shown on a separate axis inside a square? (same as below ...
user avatar
  • 55
1 vote
1 answer
106 views

Why is Alignment not honored in the first two headline columns?

Consider this example: ...
user avatar
1 vote
0 answers
56 views

How to understand the very long confusing output of a command?

I have a complicated expression with many parameters ...
user avatar
  • 1,110
-1 votes
1 answer
84 views

How to apply the style of one set of data to another set of data? [closed]

I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example: ...
user avatar
  • 4,376
2 votes
2 answers
88 views

How to set number of digits automatically in NumberForm?

I have a code where I used NumberForm[i] where i can be an integer or rational number. I would like the output to have the same ...
user avatar
0 votes
0 answers
40 views

What is wrong with FrameTicks in this small code?

I'm having a problem with FrameTicks not working with this MWE: ...
user avatar
  • 3,645
5 votes
2 answers
294 views

How to generate a list of random numbers with conditional statements

I want to generate a list of numbers with certain conditions. Eg. First I generated 10 random numbers between 1 and 20. M1= RandomReal[{1,20},10] Now I want to ...
user avatar
  • 107
3 votes
0 answers
134 views

Can anyone reproduce or explain this possible Mathematica 13 bug that causes invisible output style sometimes? (ISSUE GONE AFTER COMPUTER RESTART) [closed]

I came across this odd behavior in Mathematica 13. The output to the following line is invisible. ...
user avatar
  • 31
4 votes
1 answer
87 views

How can I preserve parentheses enclosing a dot product in a HoldForm[]?

I am having a problem with keeping the parentheses enclosing a dot product in HoldForm[]. I want to keep them in my equations since they indicate important grouping ...
user avatar
  • 403
5 votes
1 answer
142 views

How can I remove the outermost pair of brackets enclosing a Piecewise function when it occurs in an equation?

Recently I have been annoyed by an automatic formatting in MMA, that is when a Piecewise function occurs in an equation, it will be enclosed by a pair of brackets automatically by MMA, although when ...
user avatar
  • 403
1 vote
1 answer
87 views

How to make warning and errors messages on console print in RED? so easy to see them?

When I run large computation with 1,000's of iterations, then later look at the console looking for any errors or warnings generated, it is hard to locate them scrolling up and down, as the color of ...
user avatar
  • 112k
1 vote
2 answers
97 views

Display Binary Tree as Centred Array

I would like to display a binary tree using something analogous to TableForm. For example, a small such tree is given by this array (which except for the root still ...
user avatar
  • 445
2 votes
2 answers
82 views

Select rows with a specific element from a given table

Lets say I have 4 rows in alist = {{1, 1, 3, 3, 1, 6}, {1, 1, 3, 4, 1, 1, x}, {1, 2, 3, 3, 1, 6}, {1, 2, 3, 4, 1, 1, x}}; If I want to select and print out ...
user avatar
  • 95
12 votes
2 answers
163 views

Applying Style to Around objects

How do I apply Style to Around objects? Are there any workarounds, resource functions or custom solutions available? Thanks for ...
user avatar
  • 16.3k
1 vote
0 answers
48 views

How to get rid of the unwanted first output? [closed]

I have the following code: ...
user avatar
  • 2,911
0 votes
0 answers
38 views

Dynamically hiding/showing the output

Consider some reference table: table=Table[i,{i,1,100,1}] Is there any way to dynamically hide/show the output without placing ...
user avatar
  • 4,038
4 votes
5 answers
142 views

Display Conjugate[x_] as a long overbar permanently

In TraditionalForm output, I would like to have Conjugate be always displayed as an overbar, not an asterisk superscript. In particular for complicated expressions like ...
user avatar
  • 140
6 votes
3 answers
240 views

HoldForm is not working as I would expect

Why HoldForm do this? HoldForm[a/b \[Integral]f[x] \[DifferentialD]x] Output is this ugly looking formula: $$\frac{a \int f(x) ...
user avatar
  • 2,822
0 votes
0 answers
55 views

Print with color - is it possible?

I want to color parts of what Print prints. Is there anything to switch the color for all subsequent print items?
user avatar
3 votes
2 answers
184 views

Is there a function similar to Print which really respects tabs and newlines?

I am looking for something which acts like Print, preferably with the same syntax, which lets me arrange things in columns of proper width (i.e. if an item in a ...
user avatar
2 votes
1 answer
88 views

Mathematica is messing around with absolute values and sqrts of complex numbers?

I know that $$\begin{pmatrix}0&Z\\Z^*&0\end{pmatrix} \quad\text{has eigenvalues}\quad \lambda_\pm=\pm|Z|$$ but Mathematica gives me ...
user avatar
  • 384
1 vote
1 answer
127 views

Creating and exporting .dat file as desired

Please help me create a .dat file with the data format is as in the link given below https://pastebin.com/CXq0N3aT And export the file. Part of the data format in ...
user avatar
  • 123
4 votes
2 answers
106 views

Formatting the output of Abs[x] to look like $|x|$

I have a program where I deal with multiple complex variables and it is convenient to ouput all absolute values and complex conjugates as $|x|$ and $x^*$. To achieve this, I've added these lines to my ...
user avatar
  • 384
3 votes
1 answer
77 views

Bug with ScientificForm[] and Around[]?

I'm using Mathematica 12.3. You can use ScientificForm[] to display a number using scientific notation irregardless of its magnitude. When using ...
user avatar
3 votes
1 answer
108 views

How can I make MMA give me \mathrm{d} when converting definite integrals into Latex code?

Recently my work contains a lot of expressions with definite integrals, and I need to convert them into latex code to present my results. To my disappointment, MMA always converts the differential ...
user avatar
  • 403
2 votes
4 answers
179 views

Constructing a specific polynomial Monomial ordering of $f(z,w)$ to convert to latex

Note: Afraid I did not initially adequately specify the precise Latex format of the algebraic expression. Edited to make more clear. I am having problems transferring polynomials in two variables $f(...
user avatar
  • 1,169
3 votes
1 answer
56 views

Symbolic representation of large output

The package xAct does something really nice when it handles large outputs, which is to represent the expression as a symbol and display that symbol when the cursor hovers over it. For example, ...
user avatar
  • 557
1 vote
1 answer
91 views

How to get + ... notation at the end of a serie sum

$1+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8+x^9+x^{10}+\text{...}$ Wanted output with extra + ... added to the series end This is the output from the series with using Normal <...
user avatar
  • 649
0 votes
1 answer
75 views

Is it possible to change $SystemCharacterEncoding?

In my machine I get Now let's check the official CP949 map. http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT ... ... ... ... The code point of ♥ in CP949 is 2665. (The code ...
user avatar
0 votes
1 answer
63 views

How to output data according to specific requirements and improve the calculation accuracy of NDsolveValue

How to output data after solving an equation? That is, the output x, and the y value corresponding to x. ...
user avatar
  • 13
2 votes
1 answer
41 views

How can I prevent my self-introduced integral sign being multiplied into the numerator of the integrand when converting the expression into TeXForm?

Recently I have been doing a lot of double and triple integrals. To my disappointment, MMA does not have built-in integral signs for those advanced or special integrals. Fortunately, I have found out ...
user avatar
  • 403
5 votes
3 answers
235 views

How do I show a list of variables and their associated values as a list or table?

I would like to do calculations using various variables as inputs along with functions or formulas and once all variables are calculated I need to output some or all of them in a table (or list). Here ...
user avatar
0 votes
0 answers
80 views

How to change the notation of mathematica's output?

If Mathematica intends to output an elementary function, it will output them in the form of $f(x)$. Like if its output should be a power function, it outputs $a^x$; nevertheless, I don't like the ...
user avatar
0 votes
1 answer
101 views

Table heading function thought Manipulate output

...
user avatar
  • 141
-1 votes
2 answers
76 views

How to use FindSequenceFunction to obtain the general expression of Fourier series?

I want to get cosine series of the following functions. $f(x)=\left\{\begin{array}{cc}\cos x, & 0 \leqslant x<\frac{\pi}{2} \\ 0, & \frac{\pi}{2} \leqslant x \leqslant \pi\end{array}\right.$...
user avatar
  • 1,407
3 votes
2 answers
173 views

Series solution of a differential equation

Calculate the series solution of a differential equation: $\frac{\mathrm{d} y}{\mathrm{~d} x}=-y-x$, ( $\left.y\right|_{x=0}=2$) AsymptoticDsolvevalue can calculate ...
user avatar
  • 1,407
2 votes
2 answers
114 views

Series for $(1+x)^{m}$ with specific notation

I'm trying to get mathematicas series function for $(1+x)^{m}$ to output a result that look like this: $(1+x)^{m} = \sum_{n=0}^{\infty} \frac{m !}{n !(m-n) !}x^{n}$ However, ...
user avatar
  • 1,407
2 votes
1 answer
66 views

How to prevent output of Entity object in EntityValue?

By default, no matter ElementData["Hydrogen", "DiscoveryCountries"] or ...
user avatar
  • 16.2k
0 votes
1 answer
68 views

How to use map and slot effectively?

I want to change my code from : f[n_, x_] := n Sin[x ] Table[{x, f[0, x], f[1, x], f[2, x], f[3, x]}, {x, -\[Pi], \[Pi],1.0}] // Chop with OUTPUT : ...
user avatar
  • 449

1
2 3 4 5
26