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
0answers
36 views

Shortcuts for Indentation in Text Cells?

Marking a cell's bracket and then using Alt-7 I can make it a Text cell using the formatting set forth in Default.nb or in a modification of it stored with the notebook itself (so called "private ...
1
vote
1answer
37 views

How can I change the autonumbering criterion?

In a notebook I have three cells whose format is DisplayFormulaNumbered: a=1 b=2 c=3 and in a text cell I refer to them respectively as (1) (2) (3), where (1) ...
0
votes
2answers
75 views

Referencing elements of ArrayRules

How do I call elements of ArrayRules by their indices rather than by Part[ArrayRules[list],i]? I'd like to call the element that ...
2
votes
1answer
73 views

Hoare-Ramshaw (two dots) interval notation

In a Mma notebook math cell, how can one write an interval with Hoare-Ramshaw (two dots) interval notation? The obvious answer (\:2025) does not seem to work; two full stops produces odd spacing; and ...
1
vote
2answers
48 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
52 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 ...
4
votes
2answers
77 views

How to Return $Failed symbol in a MakeBoxes context?

Three months ago, I asked a question about How to build a function object like the built-ins? Today, I used a solution proposed by István Zachar ...
1
vote
1answer
48 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.
5
votes
1answer
64 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
360 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
50 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
184 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
233 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
28 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
52 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
103 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
122 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
94 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 ...
2
votes
1answer
149 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
58 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
68 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
90 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
57 views

Annotating output without changing the value [duplicate]

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

Converting Units in formula

I have the following formula ...
4
votes
0answers
33 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 ...
3
votes
3answers
91 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
43 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
38 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
62 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
92 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
95 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
90 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
81 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
94 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
113 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
912 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
83 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
119 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 ...
0
votes
0answers
57 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
62 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
40 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
80 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
56 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
136 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
30 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
83 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 ...
18
votes
2answers
287 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
145 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
40 views

How to create permanent intra-notebook links

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 ...