Questions tagged [output-formatting]

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

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
15
votes
2answers
304 views

Dataset shows an “All” Key when it contains a List of Associations

From a process I have a Dataset similar to this minimal example. ...
13
votes
0answers
137 views

TableDirections example produces an error message

Bug introduced in 10.0 and fixed in 10.3 Can anyone replicate this? In Mathematica 10.2 on Win 64: TableForm[{{a, b}, {c, d}, {e, f}}, TableDirections -> Row] ...
5
votes
0answers
71 views

Nested explicit StyleDefinitions not working

Bug introduced in 10.0.2 or earlier and persists through 11.3 [CASE:4061425], confirmed TL;DR; How can I add a style definition to a notebook with existing, arbitrary ...
5
votes
0answers
88 views

Line wrapping in a TextCell within an extensible window

Bug introduced in V9 or earlier and persisting through V11.3. [...] I sent your comments and my test results to developers for analysis. I do not know when a correction for this will be ...
5
votes
0answers
231 views

TableHeading Lines Do Not Show Up

For a list list = {{"a", "b", "c"}, {"d", "e"}}; Table heading lines do not show up ...
4
votes
0answers
45 views

Is it possible to embed the Manipulate into a WordPress post?

I have a manipulate Manipulate[n, {n, 1, 100}], I want to put it in my Wordpress blog post. Should I CloudDeploy it as below ...
4
votes
0answers
61 views

QuantityForm does not work with MixedRadixQuantity?

Bug introduced after 9.0 and in 10.1 or earlier, and persisting through 11.2 or later From 10.1 to 10.3.1, QuantityForm[q, "Abbreviation"] outputs From 10.4 to 11....
4
votes
0answers
121 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 ...
4
votes
0answers
110 views

Are there any rules about style inheritance in Mathematica?

I can style every part of an UI separately. But it is not handy and it would be nice to have list of Heads which are not inheriting at all or even partly. Are there any rules about inheritance? <...
4
votes
0answers
100 views

Using an external Pattern breaks Format

I noted while writing this answer that using an external Pattern on Format doesn't work: ...
3
votes
0answers
88 views

Why does Factor[] not factor -1?

Consider the two expressions -2a-2b and -a-b. The TreeForm[] looks identical However, ...
3
votes
0answers
113 views

Formatting derivatives in traditional output

This is related to this question, but goes a bit further. I have also seen Vitalyi's Blog Post on the topic. I, on the other hand, have used a modified version of Pekka Janhunen's DFormat package to ...
3
votes
0answers
280 views

Symbol with Subscript but no quotes in it!

If I use the following function to define me a fancy subscript: ...
2
votes
0answers
34 views

The default FormLayoutFunction

FormLayoutFunction allows you to specify a custom layout for form's items. But what if you want to only slight fix the default layout? It is not so clear what is ...
2
votes
0answers
84 views

How to draw such boxes in Netron?

How to draw a box like this: This was drawn by https://github.com/lutzroeder/netron My attempt: ...
2
votes
0answers
74 views

When print or save as PDF the font size is too large

When I print or save as pdf the font size is too large I have printed the whole notebook to pdf or saved it to pdf, but the font size was too large, and I have set the ...
2
votes
0answers
46 views

Unexpected behavior with output formatting for numbers

In documentation for EngineeringForm states: prints with all real numbers in expr given in engineering notation. However, if one evaluates the following ...
2
votes
0answers
66 views

What do these parentheses inserted after “Pretty Print” with StandardForm?

Background: I have a list containing individual elements and sublists. tab = {1, 2, 3, a, {4, 1}, {5, 2}} The individual elements are also to be converted into ...
2
votes
0answers
123 views

Obtaining a Previously Constructed Function as Desired Output

I was playing around with some Generalized Trigonometric Functions defined as follows; ...
2
votes
0answers
576 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 ...
2
votes
0answers
252 views

Displaying subscripted symbols with TraditionalForm

I have pasted this code in from Mathematica 10 ...
2
votes
0answers
127 views

Visible (or selectively visible) multiplication operator in output

I don't like the way that Mathematica hides the multiplication symbol when two variables appear adjacent in the multiplication, because the space between them isn't always sufficient to clearly see ...
2
votes
0answers
72 views

Panel size undesired behaviour

This is next question from the series: better avoid Panel if you care about details. previous about FrameMargins In the ...
2
votes
1answer
106 views

Save selection as PDF - non-image format

I am trying to save the following plot as a pdf, so that I can import it into LaTeX: ...
1
vote
0answers
45 views

Can I store output data in the Notebook file? Specifically output from NDSolve[ ]

I am having some outputs from NDSolve of the form {{x→InterpolatingFunction[…], y→InterpolatingFunction, … }} and the ...
1
vote
1answer
82 views

Why do I get different symbols (a) with the same FontFace (Cambria Math)?

When I create an equation in MS Office, it uses Cambria Math, and I get the following when I use variable 'a'. When I try to use Mathematica to create graphics for my files, I can try to use ...
1
vote
0answers
53 views

Mathematica symbolic question - Subexpressions?

Apologies in advance if this has been asked but I cannot find any information. I'm calculating the determinant of a large symbolic polynomial matrix. In the result are symbols such as this: as in ...
1
vote
0answers
64 views

difficulty in matrix operation with Log data

I have a code: ...
1
vote
0answers
55 views

Make exponents line up with their base in terminal

For some reason, the exponents displayed on a terminal (Mac OS X 10.13) Mathematica 11.2 do not line up with their bases: ...
1
vote
0answers
62 views

How to write a power using `WriteString` function

I have a solution of an equation: aa = N[Rationalize[g6[[3, 2]], 0], 16] (* Out: 2.691607147352649*10^-6 *) I want to save this result in a file using ...
1
vote
0answers
106 views

Fortranform output in double precision

I want to take the output in fortran form but written in double precision notation. For example, exp=1 + 8*as^2*Log[2*x] which gives ...
1
vote
0answers
103 views

How to get mathematica to display scientific notation to the correct amount of significant figures?

I need to evaluate this expression in scientific notation to four decimal places: ((10*((10.8*10^3)/300)^(1/2))+4)^(1/3) I used Scientificform[expr,precision] but mathematica is displaying my answer ...
1
vote
0answers
175 views

Printing Precision of Machine Numbers

Is Mathematica making the print precision rounding judgment more stringent based on whether or not the number is above or below the rounding target? If so, why? In my real case, I have many numbers ...
1
vote
0answers
51 views

Generating .eps figures from array data

I present this as a question and will give my solution (below) because others may have confronted this problem. I have a large array of data, which I would like to plot in a ...
1
vote
0answers
55 views

How to convert `LogTicks[0, 2][[1, 2]]` to a regular number

I want to convert the $10^i$ tick labels generated by LogTicks of the CustomTicks package to regular numbers. The first tick ...
1
vote
0answers
202 views

Is there an option to let DSolve output exponential functions in preference to trigonometric functions as default results?

For example, DSolve[y''[x] + y[x] == 0, y[x], x] gives {{y[x] -> C[1] Cos[x] + C[2] Sin[x]}} as the result. Can we ...
1
vote
0answers
83 views

How to control variant of digits for a given font?

Is it possible to control style of digits for a given font? In the following example 2nd, 3rd and 4th lines print old style digits. How to get linear digits for these fonts? ...
1
vote
0answers
63 views

FormBox in pretty strings

My goal is to write usage messages in the same style as Mathematica's built-in ones, such as List::usage. This involves a mess of ...
1
vote
0answers
88 views

Output in FunctionExpand for function of Gamma

I used of this code: α Gamma[α] // FunctionExpand and get output: Gamma[1 + α] Also I used of this code: ...
1
vote
0answers
89 views

Changing default display behaviour for Dataset

I have a function (whose code is in this site) to display Dataset in a more convenient way. To the extent that I never use the default one. I find myself constantly ...
1
vote
0answers
257 views

How to hide arguments of a function in traditional output?

There are some interesting suggestions concerning how to hide function's arguments in output (Hide function arguments (from unknown functions) for simpler output) and how to make traditional output ...
1
vote
0answers
334 views

How to format convert simple Mathematica expressions into a Maxima-compatible format?

I am trying to compare really long algebraic results from Mathematica with those from Maxima. Maxima can parse the simplest types of expressions output by Mathematica, such as ...
1
vote
0answers
95 views

Partial Differential Formatting by default

I read http://blog.wolfram.com/2011/12/15/mathematica-qa-series-converting-to-conventional-mathematical-typesetting/ and I could use pdConv mentioned there, or <...
1
vote
0answers
73 views

How do I reassign canonical ordering of special expressions?

1. Default behavior of Sort Note: this peculiarity is described in a comment to a related question at StackOverflow but I think it's worth restating here at mma.sx. It is estabilished in ...
1
vote
0answers
179 views

How to hide brackets and create bars over variables

I have two problems figuring out how to format my formulas properly so that when I print out the notebook the formulas look like the ones in my textbook. So far I've got this: $\sum\limits_{i=1}^5 x[...
1
vote
0answers
49 views

Output of the comand Put

I have a do loop in which I "Put" a ListPlot of a list in every iteration by doing Put[ListPlot[list],"file"] While the process is running and is still not ...
1
vote
0answers
105 views

Set form of all output to InputForm

I try to interact with mathematica using MathLink for symbolic computations. By default it returns strings such as 2\012-1 + E\012-------\012 3\012 E if the ...
1
vote
0answers
73 views

Symmetric FrameMargins problem

Such details are driving me crazy while creating GUIs with Mathematica: ...
1
vote
0answers
159 views

TableForm behavior change

In an older version NoteBook, I was able to specify some options for TableForm, which enabled the printing of an expression in a simple fashion: ...
1
vote
0answers
306 views

How to control Boundary conditions after integrating over piecewise function?

The following code ...