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

learn more… | top users | synonyms (1)

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 ...
3
votes
4answers
363 views

Are table headings functional?

Are table headings for aesthetics only? For example, if I have: ...
10
votes
3answers
405 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
2k 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
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
204 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
329 views

How to write markdown with Mathematica? [duplicate]

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
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 ...
9
votes
1answer
98 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
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
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: ...
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 ...
21
votes
1answer
649 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 ...
5
votes
2answers
187 views

Format-Size-Larger/Smaller shortcut disabled in M10? [fixed in v.10.1]

Bug introduced in 10.0.0 or earlier and persisting through 10.0.1 and 10.0.2. Fixed in 10.1 It seems that the keyboard shortcuts for enlarging/reducing the font size (ALT+= / ALT+-) don't work ...
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 ...
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
3answers
789 views

Mixing Text and Formulas

I'm trying to do some typesetting in which I mix text with formulas. The Mathematica documentation has a section titled "Mixing Text and Formulas" which pretty ...
5
votes
1answer
115 views

Why does the degree symbol disrupt this FrameLabel?

This plot Plot[x, {x, 0, 1}, FrameLabel -> {"x", "temperature / \[Degree]C"}, Frame -> True] displays beautifully, but exporting to PDF ...
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 ...
2
votes
0answers
196 views

Problem when merging cells including commentary

Bug introduced in 9.0 and fixed in 9.0.1 This is a more of a problem report than a question. When merging the two cells Cell1: foo (*foobar*) bar and ...
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. ...
-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, ...
23
votes
6answers
2k views

Understanding Pie Chart Annulus generation and alternate style using Disk[]

Background I have been working with a set of data for some time now and I recently decided to change the format. The data is a tree-styled listing of hierarchical names and positions. (* Names ...
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
1answer
105 views

Is there a way to change the indentation behavior of the postfix operator //?

For example, using newlines after // results in some really weird indentation: Ideally, I'd love to be able to do something like this: ...
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. ...
11
votes
5answers
247 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:...
7
votes
3answers
352 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 ...
6
votes
1answer
352 views

Can I enter the traditional form for Binomial as input in an expression?

Is there a way to enter the traditional form of a binomial coefficient, i.e. ${n \choose k}$ instead of Binomial[n,k], like I would enter a radical sign $\sqrt{x}$ ...
9
votes
1answer
470 views

Syntax Highlighting for Mathematica on a Blog

Every once in a while I want to paste Mathematica code on my blog. When I do, I would like it to be somewhat readable, and it would be nice to have syntax highlighting. So far all my searches have ...
7
votes
1answer
209 views

How to specify the square-bracket analogue of MatrixForm?

MatrixForm uses "round brackets" as delimiter. These are like parentheses, but contrary to "regular" parentheses, they stretch vertically to accommodate the height ...
4
votes
1answer
153 views

Collect without grouping terms

The built-in function Collect, when applied to more than one variable, will group expressions by the first variable, as here: ...
0
votes
1answer
40 views

Testing Conditions in For Loops

I am attempting to create a set of coefficients that satisfy a set of conditions using the Do function and If statements. I did this successfully with a basic set of conditions: ...
1
vote
2answers
262 views

How can I show cursor coordinates as I move the mouse over a contour plot?

How can I show cursor coordinates as I move the mouse over the contour plot in the result displayed by evaluation the following: ...
2
votes
0answers
58 views

How to format the background color of page footers and headers

I have created a StyleSheet by modifying a copy of Default.nb. The StyleSheet applies a dark grey background at the Notebook level. However, when I export to PDF and exam Print Preview (although PDF ...
1
vote
1answer
38 views

Removing vertical/horizontal edges from some cell frames

I recently asked a question regarding adjusting adjacent cells' margins to make their background color appear continuous. With these settings in place, I'd like to put a single frame around the ...
3
votes
0answers
119 views

Transferring analytic expressions from Mathematica to R

I have a series of large-ish algebraic expressions I would like to move from MM to R. I've no doubt the way I'm doing it is rather stupid, but so far the best way i've found is to use CForm and then ...
0
votes
1answer
96 views

Create new style where elements are arranged in a grid

I'd like to create a new style where elements are arranged in a grid. I'm taking notes and I have some definitions. I'd like to have every definition formatted like this: ...
3
votes
1answer
64 views

Splitting formatted output to multiple lines in a controlled fashion

Let's consider a slightly complicated expression in TraditionalForm: ...
-2
votes
1answer
67 views

Doing calculation on an imported data file [closed]

I have a data file which has been calculated from mathematica code and saved in test.txt, I need to import the data and do new calculation on it, here is the simple ...
16
votes
3answers
418 views

Notebook vs. DocumentNotebook; display a Notebook inline, like a DocumentNotebook

If you evaluate a DocumentNotebook[] expression in the front-end, it nicely displays inline, inside of an output cell in the current notebook: For my purposes, <...
9
votes
4answers
369 views

Interactively inspecting parts of an object

There have been times when I want to find the structure of an object in order to extract some part of it. For example, extracting the x and y coordinates from a Graphics object generated by Plot. I ...
3
votes
1answer
71 views

Cannot normally underline slash characters and hyperlinks

Really, if you evaluate Style["/", Underlined] or type / and set the font of the character to be underlined through Format|Font..., you get $/$, not $\underline{/}$....
0
votes
0answers
56 views

DisplayFormula badly rendered if style is set before writing

If I have to write a display formula, I go to the cell after the text cell I'm currently into, select the DisplayFormula from the Style menu and then write. The ...
4
votes
1answer
196 views

Converting a sum into $\Sigma$ notation

I have a simple expression of the form $\quad \quad t^5+t^4+t^3+t^2+t+1$ and I want Mathematica to convert this to the form $\quad \quad \sum _{i=0}^5 t^i$ Is there a way to do this?
1
vote
2answers
111 views

Trouble with ToString and StringForm

The command ToString[StringForm["SomeText=`` as well as OtherText=``.", "textA", "textB"], FormatType -> InputForm] produces the output ...