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

learn more… | top users | synonyms

6
votes
4answers
118 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: ...
5
votes
2answers
440 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
86 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
100 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
57 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
95 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
693 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
51 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
537 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
78 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
94 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
881 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
457 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
56 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
152 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 don'...
0
votes
1answer
44 views

How to use a PopupMenu in Manipulate? [duplicate]

I need to build a Manipulate to show one of several functions in 3D. The functions should be selected in the Manipulate box using a PopupMenu, but the documentation isn't very helpfull on this. So ...
0
votes
0answers
39 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 ...
2
votes
1answer
29 views

How to change the number display of output from RecurrenceTable

Is there a way to change how numbers are displayed in the output from RecurrenceTable? ...
3
votes
3answers
121 views

How to remove the white border in Manipulate?

Is it possible to remove the default white space around a 3D graphics, inside the Manipulate box ? Here's a small MWE to show the white border I'm talking about : ...
5
votes
2answers
83 views

Hiding independent variables of a function in Traditional Form

I would like to perform a computation which involves fourth-order derivatives of a composite function of four variables. I am defining my function as ...
6
votes
2answers
126 views

How to horizontally center a button in manipulate?

I just need to center a button in the MWE code below. Currently, all I try doesn't work. I would like to horizontally center the button relative to the sliders over it, for aesthetical reasons only. ...
7
votes
1answer
67 views

How to ask Mathematica to display all the logarithms (in output) in base 2?

Instead it always displays in base $e$. Very often I need to do a lots of things with mixed expressions having some $\log_2$ terms. But Mathematica always convert every $\log_2$ into $\ln$. So I was ...
14
votes
1answer
227 views

Grid cuts my images

Bug introduced in V9.0 or earlier and persisting through V10.4.0 pic2 = ImageResize[ ImageCrop@Rasterize@Graphics@Disk[], {Automatic, 40}] ...
3
votes
0answers
103 views

Obtaining a Previously Constructed Function as Desired Output

I was playing around with some Generalized Trigonometric Functions defined as follows; ...
1
vote
0answers
39 views

How can I change the way a Head is printed on the notebook? [duplicate]

Consider the following simple example: Interpolation[{0, 1, 2, 3}] Despite the FullForm of the output of this expression is ...
5
votes
1answer
41 views

How to order terms in a polynomial in two variables negative lexicographically

I have several polynomials in variables p and q, each term in which has total degree n, a constant. I would like to output the polynomial in increasing powers of p (and hence decreasing powers of q), ...
3
votes
1answer
439 views

Convert Mathematica equation to C/C++ expressions

I have written some mathematica-code which allows me to compute some equation in general relativity, which I would like to solve using a C++-program. However, the equations are roughly 1000 characters ...
2
votes
1answer
32 views

Conditional Formatting based on Option

Consider the function Foo[symbol_String, opt:OptionsPattern[]] which has as one of its options Label which defaults ...
1
vote
0answers
40 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
1answer
46 views

Formatting the prime factorization of expressions

I have a series expansion in $x$ and $a,b$ are constants which I want to type in $\LaTeX$. But the numbers/integers are pretty large (have a lot of digits) so it becomes a bit messy in $\LaTeX$. ...
1
vote
2answers
51 views

change the output of Print command in Article style

I am working with the Article-style. How can I change globally the output of Print command? For example typing ...
3
votes
1answer
72 views

How to align text to left and output to right, in manipulate?

I need to show a layer of information on a 3D graphics, inside a manipulate box. Currently, all the code is working great, except that the text should be aligned to the left, while the output numbers ...
1
vote
2answers
85 views

How to add text with output on a 3D manipulate

I need to add a string of text with some output data at the bottom-center of a manipulate output. The manipulate output itself is 3D. Here's a MWE to work with : ...
0
votes
1answer
50 views

Grid with recurrence relation terms

I want to get the recurrence relation for several values of n in a grid form. At the moment I am using ...
20
votes
3answers
6k views

About the number format in ticks

I want to LogPlot a function, but I have the trouble in the number format in the ticks. For example, ...
2
votes
3answers
81 views

How to express Log[b,x] in traditional format in Epilog without changing to base e

I'm having difficulty understanding how to express text in epilog that is dynamically updated using Log[b,x]. Mathematica changes this to base e but I would like ...
2
votes
1answer
63 views

Exponential number with negative base? [closed]

Consider the following number: (-1)^(2/3) I want to get output in real field, equal with: (-1)^2 = 1, 1^(1/3) = 1 Thus <...
1
vote
1answer
72 views

Double arrow in the outcome

Does anyone know how do I get rid of one of the double part at the start of the outcome rh-> rh-> ...
3
votes
3answers
415 views

Postfix with two arguments

This must be duplicate but can't find any related post. I'm want to pas it two argument in postfix like f[a_,b_]:=a+b; 1,2//f ...
0
votes
1answer
67 views

NumberForm pesky warning from Manipulate

I'm using the NumberForm command inside a Manipulate environment, and in some special cases Mathematica gives a pesky and mostly useless warning message : NumberForm::sigz: In addition to the ...
1
vote
2answers
61 views

styles and print and output

I know I can use styles to change how the result of Print looks. But I have a case where I use Print to display some ...
2
votes
1answer
63 views

Why the curly bracket? [closed]

Why are there the curly braces in the output of DY = {{Cos[ay], 0, Sin[ay]}, {0, 1, 0}, {-Sin[ay], 0, Cos[ay], 0}}; DY // MatrixForm It looks inconsistent ...
0
votes
1answer
65 views

How can I get Mathematica to print ConjugateTranspose[c] as $c^{\dagger}$? [closed]

Is there some kind of pretty print option that I can use? I'm writing down a lot of matrix elements. They would print out much more concisely as $c^{\dagger}$ than as ...
3
votes
2answers
88 views

Frame with round corners does not look the same in Working and Printout environments

I want to generate some graphics that contain framed texts with rounded corners that display correctly in the Working and ...
1
vote
1answer
84 views

change color of the face in a 2D ConvexHullMesh [duplicate]

If I say tri = ConvexHullMesh[{{0, 1}, {1, 1}, {1, 0}}] a triangle is rendered in blue. How can I change that color? An answer to an earlier question suggested ...
1
vote
5answers
176 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 ...