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

learn more… | top users | synonyms (1)

2
votes
1answer
32 views

Type Setting Issues with Inline Cells

So I like using Mathematica for quickly typing up notes and progress reports. However, I've never liked the way in which it autoformats inline cells. I've been able to modify style sheets to some ...
1
vote
2answers
25 views

Place Holder or Suppressing Re-ordering

Using the for loop how can I print: file0.jpg file1.jpg file2.jpg file3.jpg file4.jpg file5.jpg file6.jpg file7.jpg file8.jpg file9.jpg The closest code I came ...
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 ...
1
vote
2answers
201 views

Problems opening a notebook in Mathematica

Reviewers: please see the comments below my answer for additional information on why the edits were made. -bobthechemist I have a text file (with a .txt extension) written for Mathematica, but ...
1
vote
0answers
50 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
46 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) (2)...
7
votes
2answers
139 views

How can one create hanging indent within text?

Short of writing a highly specific function for particular text strings, is there a simple way to format text, as say in a bibliographic record, to produce a hanging indent (first line of full with, ...
2
votes
1answer
87 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 ...
0
votes
2answers
116 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 ...
1
vote
2answers
65 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
64 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
1answer
88 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 ...
15
votes
6answers
452 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 ...
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.
4
votes
2answers
360 views

Mathematica Presentation Cell Formatting

In one of the Mathematica (v9) slide templates, they have an example cell that looks like this: Where there is a "SideCaption" that appears to be the Mathematica-equivalent of a text box to the ...
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 ...
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: ...
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: ...
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
519 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
813 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
471 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 ...
5
votes
2answers
897 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
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
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 ...
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 ...
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: ...
1
vote
1answer
113 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 ...
-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
121 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 ...
11
votes
1answer
318 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
123 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
1
vote
2answers
99 views
2
votes
2answers
308 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
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 ...
1
vote
1answer
85 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
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 ...
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 ...
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)}$ ...
21
votes
5answers
5k 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
115 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
234 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
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 ...
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: ...