# Tagged Questions

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

3answers
237 views

### Wrapper for inexact numeric complex numbers that maintains polar form

Related question: How can I convert a complex number a+b I to the exponent form A Exp(I phi)? Mathematica insists on displaying complex number in form a+I b when <...
3answers
287 views

### Wrapping EventHandler by Table

I am making a grid on the screen. The grid is composed of different expressions. I want all of them to have a Gray background, which turns into a ...
3answers
323 views

### Transforming a mutiplication into an addition

How can I force Mathematica to transform 5a into a+a+a+a+a
1answer
2k views

### How can I get better control over StreamPlot?

I'm having some difficulties with the command StreamPlot in Mathematica 7.0. Here's the basic plots I'm doing : ...
2answers
197 views

### PaddedForm adds an additional padding character

I would like to get a sequence from "01" to "10". I tried ...
1answer
195 views

### How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
1answer
771 views

### How to substitute the following conditions into an expression?

I have an expression: $p=a\;b\; x + b^2\; y + a\;c\; z$. I want to substitute $a\;b=1$, $b^2 = 2$ and $a\;c = 4$ to obtain $p = x + 2y + 4z$. How can I tell Mathematica to do that? I dont know how to ...
2answers
393 views

### Display Log with desired notation in output

I wish to display logarithms with different bases in the single-term rather than numerator/denominator form during output: ...
3answers
393 views

### How to make rational expressions formatted using FractionBox

This is what I get using Mathematica 9.0.1. Instead I want this: I know how to use MakeBoxes, Format and I thought this code would work: ...
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 ...
1answer
86 views

### Separate integer fractions from variables?

Whenever I write a rational number times a variable, i.e.: (2/3)a the result Mathematica displays looks very cringeworthy: $$\frac{2a}{3}$$ I would prefer ...
3answers
411 views

### Making large tables easy to read with frozen headings and scrollbars [duplicate]

I would like to represent a table containing a large amount of information in such a way that I can (a) use scrollbars and (b) have table headings that don't scroll off the screen [just like the Free ...
2answers
728 views

### How to eliminate the zero real part of a purely imaginary number?

In Mathematica 9, a purely imaginary number, e.g. 0.9 I, will display as 0. + 0.9i in the output form. How can I eliminate the ...
1answer
405 views

### Guides for programming CDFs

Are there any tutorials for programming high-quality CDFs, like the interactive calculus textbook presented at wolfram.com? Mathematica's Help is extremely impressive but it really does not help much ...
1answer
156 views

### Problem with exporting nested Rows/Columns to HTML

I will show the problem on the following MWE: Export["test.html", Column[{ Row[{"test", "1"}] }], "HTML", "CSS" -> None] ...
1answer
257 views

### Can the Notation function support complex structures on its left hand side?

In my investigation of the possibilities offered by the Notation package, I came over a limitation in the complexity of the left hand side symbol. For instance, although I am able to enter ...
1answer
92 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 ...
1answer
151 views

### Converting string representation of boxes into explicit boxes [duplicate]

It is very easy and convenient to write textual labels as Strings in the WYSIWYG mode. For example, I define a short form describing a linear model: ...
1answer
370 views

### Creating formulas for the Moodle CMS question bank

Edit I have made some progress on this problem, which is given below the question. I use the Moodle course management system for much of my teaching, and the CMS comes with a tool for creating on-...
5answers
3k views

### Is it possible to “pretty print” my input integral in Mathematica like Wolfram|Alpha does?

With Wolfram|Alpha, if I enter: Integrate[r^3, {t, 0, 2Pi}, {r, 0, 2}, {z, r^2, 4}] Wolfram|Alpha will pretty print my input like so: Which is very readable, ...
6answers
606 views

### How to output an expression to an external file in “plain text” format without breaking lines?

Given a pretty long expression, such as ...
6answers
270 views

### Trying to write out the prime factorization of a number with CenterDot and Superscript

I am trying to use CenterDot and Superscript, in conjunction with Apply to write out the prime factorization of any given integer. Everything works well UNLESS the prime factorization of the number ...
2answers
1k views

### 3- dimensional plot of 2-dimensional systems of differential equations

Let's take this first example of a 2D output: ...
2answers
127 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 ...
4answers
107 views

### Multiple output cells, suppressed by semicolon

I'd like to write a function that outputs multiple cells, as in Multiple output cells, but not when the function is called with a semicolon at the end. Any idea how?
3answers
194 views

### Multiplication sign in TeXForm?

How do I get Mathematica to produce TeX output that does not omit the multiplication signs ? For example, this expression: ...
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 ...
2answers
124 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. ...
2answers
104 views

### How to recover “pretty” format after split?

I'm doing this: And get this: But what I wanted is: How can I get the desired output? Is there a way to recover the format from the cryptic output? Note: my "real" list is way longer than ...
1answer
166 views

### Using Padding with Text and Style

Suppose that I use: Text[Style["(1, 0, 0)", 12, Background -> White], {1, 1, 0}] How can I put a few points of padding around the text? Thanks to Jens: ...
2answers
329 views

### Add arrows over matrix

How can I plot this graph g1 = Table[x[i, j], {i, 5}, {j, 5}] // Grid; Rasterize@g1 I added these arrows by Ctrl+D's graphics tool. This way maybe hard ...
1answer
612 views

### Multi-column table layout the right way

How do I create book-like multi-column table formatting for a long, narrow tables in a preferably elegant way? Should I be thinking of stylesheets, instead of formatting? I guess this is a solved ...
4answers
218 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, ...
2answers
2k views

### How do I set the fonts for Input and Output in my stylesheet?

I'd like to change the font that Mathematica uses for output by setting the font of the corresponding style in my stylesheet; bit simply overriding the default ...
1answer
82 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 ...
3answers
536 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 : ...
1answer
95 views

### How to set default PageWidth for InputForm?

We can control the page width used by InputForm by applying SetOptions to "stdout": ...
1answer
2k views

### Possible to export Excel formulas?

I would like to export an .XLS file complete with data and formulas. Is this possible using Export? For example, here is data and a formula :- I can import ...
2answers
158 views

### Fractions formatting in Column / Grid

Fractions are squished in GridBox: ...
1answer
169 views

4answers
335 views

### Concatenating strings, unevaluated expressions and evaluated expressions/values

Maybe this is something very simple to some of you. Anyway, I think this can be useful to many others like me. I would like to build an output that involves strings, unevaluated expressions and ...