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
1answer
52 views

How to indent/align Header 4

What's the deal with Header 4 (⌘ + 4 on OS X)? Are there options to align under or to the right of Header 3? Also remove the overbar? Couldn't find anything in Options Inspector.
6
votes
1answer
73 views

how to test if a string containing boxes is syntactically correct?

This is a string that displays as formatted x^2: "\!\(x \^2 \)" If I left off the closing parenthesis for example: ...
15
votes
6answers
450 views

How do I insert a calculated value into a text cell?

Suppose in a notebook I've calculated the value of some expression and assigned it to a variable. How do I insert the value of that variable in a text cell without just typing in the value? That is, I ...
4
votes
1answer
60 views

Export data with the number form but is not same as shown in notebook

I want to export data nicely with NumberForm, However it displays Ok in the note book, but not the exported file. Here is the code: ...
6
votes
1answer
511 views

What´s the best way to COPY/PASTE Mathematica code into Word?

As you can see in the image the code, with a standard copy/paste you obtain squares instead of "Return=New Line". What´s the best way to copy and paste Mathematica code into Word? One choice is a ...
1
vote
0answers
24 views

Strange behaviour with Line Breaks [duplicate]

When placing Terms in several lines for better readability it comes to a strange behavior: ...
6
votes
2answers
244 views

Looking for PostScriptForm or ForthForm to print expressions as RPN code

Mathematica has very useful functions CForm and FortranForm. I want the same for a different language: ...
1
vote
0answers
35 views

Why doesn't the keyboard shortcut Insert->Typesetting->Nudge Up work for x\[Prime]?

I am using iMac with OS X "El Capitan" and found that Insert->Typesetting->Nudge Up works on "Primed" variables when done from the drop-down menu but not with the keyboard shortcut. The keyboard ...
1
vote
1answer
111 views

Output arrays in format that can be compared with Python numpy

Is there a way to convert an array in Mathematica such that its output format resembles that of Python's numpy arrays? I want to go from: ...
2
votes
3answers
115 views

How to typeset and evaluate $u \big|_a^b$

Sometimes I need to evaluate an expression at the end points. e.g. the right hand side of $\int_a^bf(x)\textrm{d}x=F(x)\big|_a^b$. $F(x)$ could be complex at the right hand side so I can't just ...
4
votes
2answers
163 views

How to set the bar exactly in the center of plot marker?

ErrorListPlot usually does not put the error bar exactly in the center of the plot markers. For example: ...
4
votes
2answers
97 views

Unescape Formatting in Strings [closed]

Mathematica has a dirty habit of sometimes escaping all the formatting in my strings when loading a .nb. I know this is inevitable for ...
3
votes
1answer
210 views

Mysterious Difference in Equation Formulation for NDSolveValue and NDEigensystem

I have taken a standard equation from Mathematica help from here for a stress operator. I have also formulated the equivalent equations from engineering texts. When I compare the two equations Using ...
-1
votes
1answer
84 views

Export table to latex - copy as

I have the following final expression which is a table (I am posting only a subsection of the table to illustrate the problem). I am pasting it from mathematica without table formatting (to the bottom ...
1
vote
1answer
118 views

How to change the default font for all cells in all notebooks [duplicate]

I am new to Mathematica. Currently I am using Mathematica 10 on Mac Yosemite. I have tried: Edit the default.nb and core.nb ...
5
votes
1answer
121 views

How to set different background, input and output colors

I want to create a notebook where the background is one color, the input cells are another color, and the output cells are white. I have tried messing around with Option Inspector and creating a ...
3
votes
1answer
59 views

Annotating output without changing the value [duplicate]

I like to annotate output, using something like the following: ...
1
vote
2answers
99 views

Converting Units in formula

I have the following formula ...
4
votes
0answers
38 views

DateObject's DateFormat option has inconsistent result in TimelinePlot LabelingFunction and by direct call

I want to strip time and time zone from dates in the LabelingFunction of a TimelinePlot. I am using the ...
4
votes
3answers
100 views

How create text label of form “var = ”, var properly formatted

If I use z = 99; Row[{TraditionalForm@HoldForm[z == 1], z}] then as output I get a property formatted math expression $z = 199$. How do I accomplish the ...
1
vote
0answers
47 views

Collect fails to collect all powers of my variable [closed]

I am fairly new to mathematica and have not used it to really code anything at all, but just used it as an kind of advanced calculator. My issue is the following: I need to extract the power of a ...
0
votes
1answer
48 views

Get dominant terms in asymptotic expansion

I'd like to find the dominant terms of an expression given the conditions $x,y >> 1$: $c_0 y+\frac{y^2 \left(4 c_0^2 y - 12 c_1 c_2^2+y^2\right)}{24 x^2 \left(\text{c1}^2+\text{c2}^2+y\right)}$ ...
0
votes
0answers
63 views

Ctrl + Shift + 6 produces some weird symbol instead of power

I'm trying to configure the Ctrl+^ shortcut to produce Superscript instead of Power as described here, but for some reason I ...
1
vote
2answers
111 views

Can Mathematica make the closed-path-integral sign?

Mathematica seems to have the most complete library of mathematical typesetting characters anywhere outside of LaTeX, so I'm somewhat surprised that I can find no way to create the closed path ...
5
votes
1answer
104 views

ToExpression not accepting standard TeX strings

I am having trouble entering equations in TeX form. I have actually tried a bunch of different equations and gotten similar errors. For example: ...
1
vote
1answer
106 views

Wavy red line under a word?

How can I style my word so it shows a wavy line under it in a text cell? (Similar to what MS Word does when it finds a misspelled word) --- update or better - displaying a wavy line without ...
3
votes
2answers
96 views

Question about formatting subscripts and superscripts for display

I want to display a variable with multiple subscripts (divided by commas) and a superscript surrounded by parentheses. Namely, I want something like this: ...
5
votes
0answers
96 views

Calibre + Mathematica? [closed]

The latest version of Calibre converts doc.x files (with hyperlinked tables of contents built to Smashwords specifications) to beautiful epubs in a matter of seconds. Calibre even flows text around ...
1
vote
0answers
118 views

How to write input code on several lines [closed]

In Mathematica, how can I write input code on several lines? My version of Mathematica (10.2) on my computer (Windows 8) PC using Google Chrome evaluates at Enter instead of Shift+Enter. (Thanks to ...
9
votes
1answer
949 views

Why doesn't PlusMinus[a]^2 simplify to a^2?

So, I've been playing around with Mathematica lately, and I found an interesting (what I presume to be an) error. Trying to simplify (PlusMinus[a])^2 does not give ...
3
votes
1answer
107 views

Easy way to enter conventional forms of limit expression?

(1) I want to insert into a Text cell conventional in-line mathematical notation like $\lim_{x\to a} f(x)$. I know I can do it by typing the StandardForm ...
5
votes
3answers
203 views

How to center a graphic in its output cell

Say I have produced a single graphic ouput, perhaps a plot. Instead of displaying left-aligned in the notebook, I would like it to display in the center of the output cell. I would like it to stay ...
1
vote
1answer
94 views

NewLine Inconsistency

Copy and paste the following two lines into Mathematica. 1 \[Alpha] \[NewLine] 2 f[ 1 \[Alpha] \[NewLine] 2] The first posts ...
2
votes
0answers
77 views

Typesetting a formula

I want to input a formula like the one below: but occasionally when I use classroom assistant in Palettes the formula I am still typing will become something ...
1
vote
0answers
42 views

Formatting the output of SubstitutionSystem to create a Cantor set [closed]

I want to create a Cantor set using SubstitutionSystem, and plot it appropriately. This is the best I've been able to do so far: ...
3
votes
0answers
86 views

Change the background color of matched strings when doing find-and-replace

This is not a fundamental question, but it puzzles me. In doing a Find & Replace for some string in a notebook, the matched string is highlighted temporarily with some background color (green for ...
1
vote
1answer
59 views

Using Get function to return a specific expression

I am trying to use Getto import data saved as a .nb document. The problem is Getevaluates all expressions but only returns the ...
-5
votes
2answers
151 views

How to create and format a table via menu [closed]

I created a 3x3 table via menu Insert > Table/Matrix > New..., but afterwards I cannot add a new line or column. The tool doesn't add a row of 3 columns, but a row of one column at the end; when ...
1
vote
0answers
36 views

How to disable OperatorSubstitution in a style sheet without losing syntax highlighting for local variables

I'm trying to define a custom style sheet that has "OperatorSubstitution" set to false in order to keep fonts consistent. However, whenever I disable this, I lose ...
5
votes
1answer
111 views

Control line wrapping within a Grid cell

I'm trying to display a number tables of data in my document which have column headings that are longer than the cell width for those columns so they need to wrap within the grid cell. I have no ...
19
votes
2answers
303 views

Dataset seems to break Information

Bug present in version 10.2 My little function, from pre-10.2 ,to turn a headed table into a Dataset. ...
3
votes
1answer
151 views

What role to sub/superscripts play in Mathematica?

I'm not sure I understand the role of subscripts and superscripts in the Mathematica language. For me, the expression: ...
7
votes
1answer
84 views

How to create permanent intra-notebook links [duplicate]

I'm trying to create a documentation notebook for a package and have entries which reference other entries. I'd like to include the hyperlinks in text formatted cells so that when a reader clicks on ...
-1
votes
1answer
156 views

How to set the derivative of a function to zero? [duplicate]

Maybe this is very basic, but I'm not getting it. I've googled around and searched here for an answer but I can't find it. I need to set D[h[r], r] equal to zero, ...
-4
votes
1answer
81 views

How to type this certain expression (duplicate question for reference purpose)? [duplicate]

In graphing I hope to output the following format for example $|a_{1020}|^2$. I need to use this as my axes label in a plot and to type this expression in Mathematica. I am fully aware there is a ...
3
votes
0answers
18 views

Declare new “Form” wrapper and avoid this wrapper being recorded in Out[…] [duplicate]

When I input {{1,0},{0,1}} // MatrixForm and then m = %;, the value that m takes is the ...
11
votes
5answers
246 views

Tidy form of numbers with errors using ScientificForm

Say I've computed something and got a number 0.02112398 with a computed error: 0.000331 Formatting it with ScientificForm[0.02112398 \[PlusMinus] 0.000331] gives me:...
3
votes
4answers
481 views

How to Find “n” for n-th Triangular Number

For example, the 7th triangular number is 28. How do I create something that will tell me that 28 is the 7th triangular number? This is what I have created. ...
7
votes
3answers
351 views

Copy/Pasting a Grid of Numbers from Project Euler

On Project Euler Problem 11 (link: https://projecteuler.net/problem=11), there is a 20x20 grid of numbers. However, when I pasted it into Mathematica, I got this strange result where the times symbol '...
2
votes
1answer
71 views

How to define a custom template for entering a partial derivative?

I want to define a custom template for entering a partial derivative. For example, When I press ctrl + shift+', I want to get To make my template, I followed a previous solution that made a ...