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

learn more… | top users | synonyms (1)

4
votes
2answers
96 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 ...
6
votes
1answer
71 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: ...
6
votes
2answers
240 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: ...
4
votes
1answer
52 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
397 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 ...
2
votes
1answer
805 views

How to make underscript like underscript in InlineFormula of lim in Notebook and (inline) Latex

This question maybe a little tiny. Firstly, Let's input underscript Ctrl+4 in an inline cell. InlineFormula inline cell $\underset{n\to\infty}{\text{li}}$ ...
24
votes
1answer
453 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 ...
4
votes
2answers
729 views

What is the correct way to break a long expression across multiple lines?

This is probably a very simple question and I am probably not using the right keywords in my search; but I have a long expression that I would like to break across multiple lines to improve ...
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: ...
3
votes
1answer
191 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
vote
0answers
34 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 ...
9
votes
1answer
938 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 ...
4
votes
2answers
144 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: ...
1
vote
1answer
93 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
113 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 ...
-1
votes
1answer
73 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
95 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 ...
10
votes
1answer
289 views

User-defined usage message template; removing repeated text

In Mathematica 9.0.1, I want to write a user-defined template for a function that I wrote: myfunc ...
5
votes
1answer
113 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
58 views
1
vote
2answers
98 views
2
votes
2answers
280 views

How can one type a box with “x” marked?

In some text portion of my notebook, I would like to be write check boxes which are empty, check marked or "x" marked. The following commands work for the first two: ...
4
votes
0answers
36 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 ...
1
vote
1answer
82 views

How would I set the equation number for an EquationNumbered cell?

Regardless of how many EquationNumbered cells are above or below, every new EquationNumbered cell that I add in my notebook shows (1) as the equation number. Is there a way to correct the equation ...
4
votes
3answers
96 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
46 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 ...
1
vote
2answers
108 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 ...
0
votes
1answer
47 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)}$ ...
19
votes
5answers
4k views

Is there a way to hide or toggle the visibility of code?

Many of my notebooks have a similar repeating structure, which is very convenient and reliable for my workflow: a chunk of code defining a Manipulate for exploring ...
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 ...
5
votes
1answer
110 views

Continuous background color of adjacent cells

I'm trying to make continuous blocks of cells so that their background colors are the same, but without breaks of white space between them. E.g. After some recent digging, I found the option "Show ...
2
votes
1answer
230 views

Is there a keyboard shortcut for Centered Math Cell?

I've been typesetting in mathematica and would like to know if it is possible to use a keyboard shortcut to place a centered math cell or equation symbol aligned math cell in my document without ...
1
vote
1answer
101 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 ...
5
votes
1answer
102 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: ...
3
votes
2answers
93 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
117 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 ...
3
votes
4answers
356 views

Are table headings functional?

Are table headings for aesthetics only? For example, if I have: ...
10
votes
3answers
395 views

How to set a TraditionalForm output for a symbol

How do I set a TraditionalForm output for a particular symbol/function? In particular I would like my user-defined symbol ...
7
votes
3answers
1k views

How to type a capital 'E' in Mathematica 9 using 'ToExpression' and 'TeXForm'? [duplicate]

I am trying to use Mathematica's ToExpression[] combined with TexForm to type the Einstein's famous result: E = mc^2. Now this is dead easy in LaTeX, the code is: ...
3
votes
1answer
98 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
171 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 ...
8
votes
0answers
301 views

How to write markdown with Mathematica?

Usually I typeset with Latex and Compute with Mathematica and then copy the outputs as Latex code and insert them in Latex, so I have to switch between Latex and Mathematica frequently. Thanks to the ...
2
votes
0answers
71 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 ...
9
votes
1answer
95 views

Foreign Keyboards and Mathematica?

I have a foreign language keyboard (French). Most of my programs recognize the my French keyboard, except Mathematica, which behaves as if the keyboard were English. So far I haven't found any way to ...
1
vote
0answers
41 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
1answer
148 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: ...
3
votes
0answers
84 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 ...
21
votes
1answer
611 views

How to strip all formatting from a string and convert it to plain text?

The documentation on String states: But if I try to perform some manipulations on this string, for example, take 2 words from the left, I get some shards of ...
-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 ...