Questions on typesetting and making your expressions, matrices, operators, equations or formulae look how you want them to.

learn more… | top users | synonyms (1)

1
vote
2answers
73 views

How to turn an expression into a number

I am working with a function that computes the covariance between two variables. After computing this, I'd like to use Plot or Plot3D to see how this covariance depends on the parameters of the mean ...
2
votes
1answer
53 views

How to prepare a Mma expression to insert it into Comsol?

Preamble Sometimes I have to solve nonlinear PDEs using Comsol. Often these equations I already have in Mma, written in a Mma notations. For this reason I would like to be able to transform them so ...
1
vote
0answers
27 views

How to stop font resize of input?

How do you stop Mathematica from resizing the input font when entering formulas with fractions and such? When I enter a formula with a few fractions the text becomes microscopic. For example: ...
1
vote
1answer
60 views

How do I change the size of the font for the output of the Print[] command?

I created a Stylesheet that increased the sizes of the fonts for the styles Input, Output and Text. Still, when I use the command Print[] the output comes out tiny. In the code below I added some ...
3
votes
1answer
53 views

Why are the edge items in `Grid` truncated?

The first and last rows and columns of my Grids always seem to be smaller than all the other rows in my Grid, as of they had ...
2
votes
2answers
51 views

Can I use 'ItemStyle' in 'Grid' to specify the style of individual items? [closed]

I'm confused by the documentation for ItemStyle. I can't figure out how to specify styles for individual items in a Grid. ...
0
votes
0answers
27 views

ParagraphSpacing inside Style'd Text

From ParagraphSpacing's documentation: ParagraphSpacing is an option for Cell, StyleBox, and Style that specifies how ...
1
vote
0answers
24 views

Greek symbols are all bold in MM 10 over Linux [duplicate]

I upgraded recently to Mathematica 10, on a Linux system, and I'm quite annoyed to find that all the greek symbols automatically show up in bold: I suspect the issue is some missing font somewhere ...
6
votes
5answers
541 views

What is the best way to draw a shaded table?

I'm trying to format a raster-style table with row and column headings and in which each cell is shaded according to the value in the cell, and the value of the cell is displayed in as text in a ...
1
vote
1answer
60 views
27
votes
3answers
717 views

Is there a convenient way to copy/paste text-interspersed SE code snippets into Mathematica?

Is there a way to copy and paste code snippets from SE to Mathematica if these snippets are interspersed with text? Like e.g. in Morphing Graphics, color and location in both the question and answer, ...
3
votes
2answers
141 views

How to have shaded grid entries

Teaching a unit on log scales for a high school math class. I saw this table on the internet. I know how to colour individual grid entries, is there a nice way to incrementally colour them like ...
22
votes
6answers
3k views

Fixing quirky typesetting in plot labels

Consider this example plot. Plot[ 1-Exp[-x], {x,0,3}, AxesLabel->{"thickness (μm)","power density (W/m^2)"} ] Let us hold the typographical quality of ...
1
vote
0answers
34 views

How to make a real number parameter go 2 decimal precision? [duplicate]

I'm new at community and I'm starting with Mathematica. I'm now having a trouble with a very simple problem which for many of you might be really obvious. In documentation ...
14
votes
1answer
276 views

Usage displays properly only after second call

If I have a usage message containig two-dimensional stuff (subscripts or formulas) and I call the usage, then sometimes I get an improperly formatted output enclosed in "...". Linebreaks are gone, but ...
6
votes
1answer
80 views

How do I format the output to include the function definition?

To explain, I do most of my probability homework in Mathematica, and use the typesetting built into Mathematica to finish answers. Often, I want to output a function as the answer to a problem, but I ...
12
votes
2answers
232 views

Strange behavior when using Row with packed arrays

Bug fixed in 10.0.0 Today I lost a lot of time with a strange behavior and I narrowed it down to this small piece of code: ...
0
votes
2answers
74 views

Open a .txt file in Mathematica [closed]

i have a .txt file written for Mathematica, but wenn I open it with Mathematica, there is just an unreadable text and no graphs and simulations like it should actually be, could you tell me how to ...
8
votes
2answers
704 views

What is special about 70.329862 and InputField and Number and Dynamic?

Is this a bug (happening in V9 and V10 Windows, Linux) or not? It only happens for certain numbers and you need Number in InputField. ...
0
votes
1answer
59 views

Keyboard shortcut for changing style of selected text (NOT the whole cell)

For many years I have been using Alt+Shift+(number) to quickly change the style of text in a text cell. For example when I write descriptive text and want some of that text to look like input form, ...
6
votes
0answers
48 views

Foreign Keyboards and Mathematica?

I have a foreign language keyboard (French). All programs are set so that it recognizes this - EXCEPT Mathematica, which behaves as if the keyboard were English. And I can't find any way of changing ...
3
votes
2answers
125 views

Convert matrix rows into variables

Can anyone show me how to set all matrix rows to variables. For example, I have matrix w={{1,2,3},{3,2,1},{0,0,0}} and I need to set each matrix row to be separate ...
-1
votes
0answers
128 views

Discrepancy between Mathematica and Fortran expressions — Fortran gives wrong output (C,C++ programmer trying to use Fortran) [closed]

I typically program in C or C++, but recently wrote some code in Fortran. I am worried that I've made a mistake in the Fortran code due to lack of knowledge of Fortran. I basically need to plot two ...
3
votes
1answer
99 views

Formatting ticks of axes to scientific format and modifying the labels [duplicate]

I was trying to plot a function, but had a problem with the tick labels staying close to each other (top plot). DiscretePlot[RmvsB[b], {b, bmin, bmax, bstep}] ...
4
votes
1answer
80 views

Casting Dataset internal type from Assoc to Struct

Using: planets = ExampleData[{"Dataset", "Planets"}]; The full form of this projection displays the internal type def: ...
7
votes
2answers
176 views

Convert units to String

Is there a way to convert compound units to string? For example, I have "Newtons"/"Meters"^2, how to I convert it to "N/m^2"? I know If I do the following ...
5
votes
2answers
143 views

Format-Size-Larger/Smaller shortcut disabled in M10?

It seems that the keyboard shortcuts for enlarging/reducing the font size (ALT+= / ALT+-) don't work anymore in M10 as it did in M9. If I select the text (or code) inside a cell they work. But if I ...
15
votes
4answers
528 views

HoldForm doesn't hold form

Bug introduced in 10.0.0 and fixed in 10.0.1 In Mathematica version 10, HoldForm no longer produces the same results as in version 8 (edit: I only have versions ...
7
votes
1answer
111 views

Auto highlighting input cells depending on input expression (eg its Head)

Is it possible to programmatically highlight (eg, by change background color) an input cell conditional on the input expression's Head (or other attributes) upon evaluation? For example, would like ...
14
votes
3answers
1k views

WYSIWYG table creating and editing

In Microsoft Office OneNote 2010, creating and editing tables is easy. There are simple toolbar controls for creating tables: , and editing them once they exist: . My question is, what's an easy ...
2
votes
2answers
542 views

A Symbol with Subscript and Superscript as an Axis Label

I am trying to have the symbol $\epsilon_{9/2,4}^-$ as the axis label in a graph in Mathematica. First problem is that: when I use Subscript[$\epsilon$,9/2,4], 9/2 changes to $\frac{9}{2}$ (which I ...
4
votes
2answers
63 views

Rational display with Quantity

Why is that Power[Quantity["ElectricConstant"],-1] is represent different of Power[Pi,-1] What I am doing wrong ?
0
votes
0answers
48 views

Disable Input Assistant Mathematica 10 [duplicate]

In the new Mathematica 10, every time I hover over a function for more than 0.001 second, this stupid box appears. In Mathematica 9, I had disabled it. However, no matter what I change in the ...
5
votes
2answers
101 views

How to robustly apply ToBoxes to a Dynamic expression?

Inserting a Dynamic object in a boxform expression messes up syntax colouring. See the following example. where the variable ...
2
votes
1answer
119 views

Space around indices in Mathematica 10

When i write something like f(x_0) in traditional form mm puts white space around the index, so that especially the distance to the end parenthesis looks weird. In mm 9 I could reduce the issue by ...
5
votes
1answer
166 views

Restrict Mathematica command to what is inside parentheses

I have a bunch of expressions like this one: $\frac{e^{-\frac{7 J}{2 k T}} \left(2 e^{-\frac{2 g H \mu _B}{k T}}+e^{-\frac{g H \mu _B}{k T}}-e^{\frac{g H \mu _B}{k T}}-2 e^{\frac{2 g H \mu _B}{k ...
1
vote
4answers
102 views

Converting format of list

I have a 2D array, data = {{0,1}, {1,2}, {2,3}}; I would like to convert it such that I get the x- and y-values separately, specifically ...
9
votes
2answers
153 views

Backslash commands in strings?

I discovered by playing around that Text[DisplayForm@SubscriptBox["\[Lambda]", "k"]] produces the same result as ...
2
votes
1answer
40 views

Can I use what “headerlines” removes from a CSV as TableHeadings for the table I create from that File?

I am reading in some data from a CSV file that has a line which gives titles to each "column". Here is an example: ...
0
votes
2answers
67 views

Suppressing reduction in fraction box size in multi-level fractions [duplicate]

Mathematica display complex fractions like this, the second x look smaller, I want it look like this, how can I get it in Mathematica?
4
votes
0answers
90 views

Make Mathematica show function template's arguments in different lines (i.e. in column) by default?

I feel a bit uncomfortable with Mathematica 10's layout. I mean, I'm impressed how powerful functional programming can be and so on, but it's me or those programs are often just a bunch of nested ...
0
votes
1answer
48 views

Manipulate Discrete Values Labelling

I have 3 lists of plots (generated in other code), rawplots, weightplots,linearizedplots. ...
1
vote
1answer
65 views

How to restore the font size and other options to default Globally

I have messed up the font size globally. I was playing with SetOptions and I think I have accidentally changed the font setting of the FronEnd setting globally as can be seen here. I tried to ...
3
votes
1answer
112 views

How to preserve In/Out tags like what they did in documentation files

Every evaluation generates a pair of In[n]/Out[n] signs tagged before actual input and output. Like the following: If I save the file, close it and re-open it, that In[n]/Out[n] signs will ...
3
votes
1answer
334 views

How can I export specific data into different pages in .PDF format?

I have made various Grid-s and arranged them column-wise in another Grid. All Grids are ...
0
votes
1answer
94 views

Some Characters From Custom Font Do Not Show Up

I'm using version 8.0.4.0 on a Mac, and recently made my own .otf and .ttf fonts at PaintFont.com. The font can be based on pretty much anything, including handwriting, and covers everything from ...
11
votes
3answers
834 views

Can Mathematica show me a fraction with a repeating decimal notation?

The value of 3/817 when expressed using the N[3/817, 100] shows me data without helping me see the repeating patterns: After I ...
0
votes
1answer
37 views

How to remove styling from a formatted object? [closed]

I have an object of the form Style[Grid[...,...],...] What function do I need to apply to it to get the Grid[...,...] part ...
2
votes
2answers
112 views

Create formatting wrapper for use with ToString

I'd like to create a custom number format for use with ToString. However if I do the obvious and create a function that calls ...
2
votes
1answer
99 views

A Box for the integral or partial derivative d

I am looking for the name of the box in the Box Language of Mma making integrals, such as those shown in the image below as well as of the sign of the partial derivative. I understand that I can get ...