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

learn more… | top users | synonyms

6
votes
3answers
1k views

Why does N[1.000 01, 10] return 1.00001, but N[1.000 001, 10] returns only 1.?

Why is it so? When I ask for N[1.00001, 10] I get quite reasonably 1.00001 But when I ask for ...
2
votes
0answers
27 views
5
votes
1answer
72 views

Visualize Pascal's triangle with the product of the terms in the $n$th row

How to make the following graphics by using Mathematica? What I tried: I used J.M's answer for the Pascal triangle ...
5
votes
4answers
165 views

Getting AbsoluteTiming to display in hours, minutes, and seconds

I'm doing some extended length calculations and was wondering how I could get AbsoluteTiming to display in hours, minutes, and seconds. I googled and found nothing, ...
17
votes
2answers
278 views

Understanding evaluation and typesetting

Background So, one could be surprised by the fact that: Hold @ Grid[{{1, 2}}] (*or*) Hold @ Graphics @ Disk[] This issue and methods of prevention are ...
49
votes
8answers
2k 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 ...
13
votes
2answers
631 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 ...
2
votes
1answer
98 views

Can I improve this sloppy code used with Manipulate?

I'm not an advanced user of Mathematica, and yet I managed to get the Manipulate command work to do something interesting. The problem I have is that I have the ...
1
vote
1answer
57 views

Save a fraction matrix in Mathematica into C++ friendly format

In MMA I have a 2d matrix whose each entry is a irrational number(in fraction format in MMA). Say: ...
24
votes
2answers
4k views

Way to improve “show me this decimal number to M places, don't use scientific notation”?

The best way I can come up with to say "show me this fraction as a decimal number to M places, don't use scientific notation" is: ...
15
votes
2answers
197 views

How do I use the third and fourth arguments of Parenthesize?

Parenthesize seems to do a good job with constructing boxes that need to be appropriately parenthesized: ...
4
votes
3answers
175 views

Using different style on segments of a plot [duplicate]

Is it possible to plot a function with two different colors? To illustrate, let's have: Plot[Sin[x], {x, 0, 2 π}] which plots a curve. And I would like it to be ...
2
votes
2answers
147 views

How can I get LogIntegral[z] to be printed as “li[z]”?

I have no problem with the current formatting of the function, but for the sake of the reader less familiar with Mathematica functions, is there a way to define, say, ...
4
votes
1answer
49 views

Using TraditionalForm to express equations

I have a notebook in which a couple of partial derivatives are calculated. At the time of publishing this notebook, I'd like to make the resulting equations look the way they would in standard ...
0
votes
1answer
36 views

Sum over abstract value

My plan is to write a sum over an index. Currently I write Sum[f[OverTilde[q]], OverTilde[q] ∈ Subscript[l, i]] but Mathematica always tells me that "The ...
4
votes
1answer
99 views

To style Sound object

While doing some signal processing research my aesthetic feelings were heavily struck by following output: The problem here is that 211.96 s label is partially ...
6
votes
2answers
119 views

Bar chart scale in multi-chart visualisation

This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!). I'm trying to create a chart which shows the smooth kernel distribution of ...
2
votes
1answer
61 views

Using Mathematica to batch-produce text files

I need to make a bunch of plaintext files, all of which differ only in a single parameter. The text I want to "copy" or "batch produce" is a little bit complex, since it contains quoted areas and ...
2
votes
1answer
68 views

Output short denominator as pre-factor

How can I make the output print like the input, with the short denominator written as a factor in front of the long expression? I was messing with styles earlier today to do something else, and at ...
2
votes
1answer
30 views

Delete Cell Inside of Module

I want to print a dynamic output while some code is running and then automatically delete it when when the output is done. PrintTemporary is not quite what I am looking for -- I want the output to be ...
3
votes
2answers
96 views

Are there any code which just derivative of piecewise function(same distence)?

I wrote this code: Piecewise[{{x^2, 0 <= x <= 1}, {x, x <= 4}}] and I got derivative of this code: ...
3
votes
2answers
68 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
2
votes
0answers
31 views

Indenting Bulleted List in Notebooks [duplicate]

I am writing a paper using Mathematica Notebook and need to create a bulleted list. I saw this answer (Indenting bulleted lists in notebooks) and was able to create a new stylized notebook with the ...
6
votes
1answer
42 views

Heading in Table Form Question

I have: modadd = Table[Mod[i + j, 3], {i, 0, 2}, {j, 0, 2}]; TableForm[modadd, TableHeadings -> {{0, 1, 2}, {0, 1, 2}}] Which produces: How can I put a ...
28
votes
1answer
337 views

How to speed up TextJustification in Mathematica 10

Based on this question: - Version 7 print environment - I set up two 10 page test documents in version 7.0.1 and version 10.1. The version 7 document exported to PDF in 4.18 seconds whereas the ...
0
votes
0answers
37 views

CForm and Piecewise

I am trying to use Mathematica to evaluate a long function and I would like to export the result to C using CForm. However, my function is a ...
2
votes
2answers
43 views

Output lists with new line for each record element [closed]

When Mathematica outputs nested lists, it just gloms one record right after the next record and it wraps around in the space available, for example: ...
1
vote
1answer
41 views
0
votes
3answers
74 views

Write complex number in terms of absolute value and phase

I have a long vector and some of the values (19 out of 64) are complex. I got them using the Mathematica Rationalize function, so the complex ones are written in the a+bi form. Is there a function I ...
6
votes
0answers
81 views

TeXForm output in a tabular environment

As far as I can see TeXForm of a matrix produces LaTeX arrays, which assume LaTeX is in math mode. However, Mathematica can be used to produce whole tables ...
6
votes
4answers
114 views

How to add/insert a well aligned graphics on top of another one?

I need to add a small graphics on top of a larger one, and the small graphics should stick very close to the large one, with their axis aligned. Here's a minimal code to work with, using some ...
1
vote
0answers
57 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: ...
4
votes
2answers
439 views

How cut any integer number?

I have this output: (323909701210368 Sqrt[3] t^(56/3))/(11 Gamma[2/3] Gamma[59/3]) + ( 23266815064996478976000 t^(71/3))/(Gamma[2/3] Gamma[74/3]) I want to have ...
4
votes
2answers
82 views

How to override DisplayForm of (mixed) time Quantity

What's the best approach to overriding DisplayForm for specific types of Quantity eg time especially w/ mixed units? Current is ...
3
votes
2answers
99 views

How to create some macros

I have two question in one. In the following code, I want to manipulate a plot in a centered cell. It is fastiduous to try always to remember the way to act. Could I define some macro as in a standard ...
2
votes
1answer
55 views

Same mesh graduations on a plane as axes ticks

I need to define a plane with a mesh as a reference plane. Currently, the mesh lines don't match the axes ticks. That plane is defined so it can adapt automatically to a variable scale in a ...
2
votes
1answer
92 views

Can one prevent $\TeX$ conversion from changing form of expressions?

This is similar to my previous question Can one prevent operators like `Factor` or `Apart` from changing full form of some algebraic expressions? but concerns $\TeX$ and I cannot figure out whether I ...
14
votes
4answers
678 views

How can I turn off SingleLetterItalics in PlotLabel, etc, when the Options Inspector won't do it?

One of the requirements set for the graphing project I am working on is that plot and axis unit labels sometimes need to include superscripts. Here is an approximately minimal example (I have some ...
3
votes
1answer
47 views

How to separately define TraditionalForm and TeXForm

According to the documentation, TeXForm uses the TraditionalForm formatting to generate the TeX code. However, for some cases, ...
0
votes
0answers
19 views

How to remove extra space around polar plot in manipulate? [duplicate]

In Manipulate, PolarPlot adds lots of useless space around the exterior circular grid. Is there a way to remove that space, so the whole circular plot could take more space ? Here's a MWE showing ...
6
votes
3answers
528 views

Ugly fraction in a label

I'm having difficulties in displaying a proper fraction in a label. Here's the 2D graphics which shows the problem : ...
15
votes
2answers
2k views

Any way to make my equations look better, more Latex like?

I find that the equations I write in Mathematica are not always publication quality. Here is a typical example: If I copy as Latex, then I get the following code: ...
0
votes
2answers
75 views

Ticks on axes with a frame without frameticks [duplicate]

I would like to draw a simple 2D graphics with a frame, without any FrameTicks, but still having central axes with ticks. The code is this : ...
7
votes
1answer
84 views

Multiple PlotLegends ignore NumberForm

Imagine a set of curves data = Transpose@Table[{Exp[t], Exp[1.1 t], Exp[1.2 t], Exp[1.3 t]}, {t, 0, 5, 0.1}]; which should be labelled with numbers ...
19
votes
2answers
863 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 ...
5
votes
3answers
452 views

Writing Mathematica's Root function output in a academic paper form

I need to write the following (which is the result of a Solve command I ran in Mathematica) in an academic journal paper: ...
3
votes
1answer
53 views

How is `MakeExpression` processed by Mathematica?

According to the documentation on MakeExpression, MakeExpression[boxes, form] is the low-level function used in Wolfram System sessions to construct expressions ...
3
votes
2answers
142 views

How to expand error messages truncated by Skeleton (<< >>)

I have a command that gives me an error message with lots of abbreviations like Power[<<2>>]. Specifically, I get Sorry for the bad formatting, I ...