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

Weird bug with Esc, string, and underscore?

There seems to be a bug with esc key, strings, and underscores. For instance, see the following code: a = f["1_2"]; If an esc character is typed anywhere ...
6
votes
1answer
205 views

How to type sentences into Mathematica

I am writing a paper and in conjunction with the paper I want to submit a Mathematica file that shows the numerical calculations. But I want it to follow in order of the paper. I know this is ...
6
votes
0answers
52 views

Extracting, Formatting, and Exporting Mathematica AstronomicalData - Is There an Easier Way?

If any of you have tried to use Mathematica AstronomicalData and its newest replacements like StarData, you may already be familiar with the large data issues, and the almost impossible download times....
7
votes
3answers
147 views

How to create a Text with certain size given in a specified way?

Note: all these coordinates are in Graphics system, not text size system. so specifying simply by Style[text, 5] or so won't ...
0
votes
0answers
15 views

How to type greek letters on mathematica.stackexchange [migrated]

I usually ask questions on this website, and many of them contain greek letters in the code part. For instance: \[CapitalTheta]=0 After a while, someone edits ...
1
vote
0answers
28 views

FormBox in pretty strings

My goal is to write usage messages in the same style as Mathematica's built-in ones, such as List::usage. This involves a mess of ...
5
votes
1answer
161 views

Background colour of text in graphics [duplicate]

I see this strange behaviour when both the containing cells and the graphics have a non-white background. I set the style of a notebook to "Standard Report" (Format -> Stylesheet) and did this: <...
18
votes
1answer
264 views

The character sequence “\\. d” triggers line break in strings

Bug introduced in 7.0 or earlier and persists through 10.4.1 Bug isn't present in version 5.2 Update: Sjoerd pointed out that this happens with any string and it is not related to StringForm. Just ...
6
votes
0answers
51 views

TableDirections bug?

Bug introduced in 10.0 and persisting through 10.4.1 Here is the example in the TableDirections documentation: ...
4
votes
1answer
63 views

DateObject with DateFormat displays incorrectly in Dataset

DateObjects with DateFormat option appear to have the first date part truncated when displayed in a ...
6
votes
0answers
106 views

How to input Abs[x] as |x|? [duplicate]

I could swear that I have seen Mathematica expressions (in something like InputForm or FullForm, as opposed to ...
3
votes
2answers
114 views

Replace non-zero elements with symbol

I have a very large matrix (tensor) in Mathematica with some zero and non-zero elements. I am interested in replacing the non-zero elements with some symbol or a 1 so that it is easier to view the ...
1
vote
0answers
32 views

*Form is not working in script

I want to generate code with a script. But functions as CForm, FortranForm and TeXForm does ...
4
votes
1answer
112 views

How to automatically label the cluster distances in a DendrogramPlot?

I have a distance matrix data, and want to visualize it as below: The current codes I am using is: ...
5
votes
1answer
95 views

How to get “one Cell - one line” code format inside of NB files?

The PageWidth option controls the way the Cell's content is displayed, not the manner it's written in a ...
1
vote
0answers
26 views

Palette Sizing Options [duplicate]

I am writing a palette to work with units on Mathematica 9, using just PasteButtons, and have a Button map that works as I want it to, but the formatting of the palette itself is giving me issues. I ...
5
votes
1answer
55 views

Using TraditionalForm to express equations

I have a notebook in which a couple of partial derivatives are calculated. At the time of publishing this notebook, I'd like to make the resulting equations look the way they would in standard ...
1
vote
0answers
23 views

Styling CurrentValues in Stylesheet

I've succeeded in putting the notebook title into page headers (thanks to @Kuba), but I failed at styling the label. ...
0
votes
1answer
80 views

function for toggling a symbol inside a FullForm

Hello I would like to build a function for the hermitic conjugation of f[i]. When applied to f[i], it should result in f\[Dagger][i], and when applied to ...
2
votes
0answers
31 views

Indenting Bulleted List in Notebooks [duplicate]

I am writing a paper using Mathematica Notebook and need to create a bulleted list. I saw this answer (Indenting bulleted lists in notebooks) and was able to create a new stylized notebook with the ...
6
votes
3answers
342 views

Indicate minimal path sum

Described on the page: http://www.mathblog.dk/project-euler-81-find-the-minimal-path-sum-from-the-top-left-to-the-bottom-right-by-moving-right-and-down/ It is an example of the solution indicated in ...
1
vote
0answers
69 views

How to input therefore sign in mathematica

I'm wondering how to input a therefore sign in Mathematica? For example, I want to input / output something like: ∴ a == 2 + 1 // TraditionalForm ∴ a = 3 ...
8
votes
2answers
262 views

Is there a way to diagonally strike through a character or group of characters in a DisplayForm equation?

In mathematical derivations, one often diagonally strikes through a variable, term, or factor -- either to indicate that the variable/term is zero/negligible, or that it is being cancelled with ...
2
votes
1answer
36 views

Insert Sum template with limit tokens in text cells

I write up problem sets in Mathematica. One thing that I haven't figured out is position limit tokens. In a text cell (cmd+7), when I type "ESC sum ESC ^_ x", it comes up like $\sum_x$. How do I ...
2
votes
1answer
54 views

Convert Power to Product multiplication format [duplicate]

I need to convert input expressions with explicit powers e.g.: $x^2 + 2*y^6$ to this format: $xx + 2 y y y y y y$ or this: $x*x + 2*y*y*y*y*y*y$ and then preserve this new format for other ...
12
votes
1answer
137 views

How to type text with an underbrace underneath it like: $\underbrace{g…g}_{n-times}$?

I want to use the underbrace "esc u{ esc" but have it placed underneath text. Like $$\underbrace{g...g}_{n-times}$$ in a mathematica text cell. Is it possible? Thanks
6
votes
4answers
118 views

How to add/insert a well aligned graphics on top of another one?

I need to add a small graphics on top of a larger one, and the small graphics should stick very close to the large one, with their axis aligned. Here's a minimal code to work with, using some ...
5
votes
4answers
202 views

Creating Nested For Loops for modifying values to append to a List

Basically, the title says it all. I am familiar with python, not so much with mathematica. For the program, I am starting out with three unique lists of values for which I am using a triple nested ...
2
votes
0answers
53 views

Reference a notebook's title cell contents in its stylesheet

In my stylesheet I have the following code: ...
1
vote
0answers
35 views

What does 'Inherited' mean in StyleData? [duplicate]

I'm having a trouble with notebook styling. Please, consider the following, self explicative, screenshoot. I thought that this code ...
1
vote
0answers
42 views

How to pack arguments of a function into a vector for brevity? [closed]

I have a function like the following one: F[a_, b_, c_, d_] := Product[f[x, y, z, j, i], {j, a, b}, {i, c, d}] where ...
0
votes
0answers
19 views

How to remove extra space around polar plot in manipulate? [duplicate]

In Manipulate, PolarPlot adds lots of useless space around the exterior circular grid. Is there a way to remove that space, so the whole circular plot could take more space ? Here's a MWE showing ...
6
votes
3answers
538 views

Ugly fraction in a label

I'm having difficulties in displaying a proper fraction in a label. Here's the 2D graphics which shows the problem : ...
7
votes
1answer
95 views

Multiple PlotLegends ignore NumberForm

Imagine a set of curves data = Transpose@Table[{Exp[t], Exp[1.1 t], Exp[1.2 t], Exp[1.3 t]}, {t, 0, 5, 0.1}]; which should be labelled with numbers ...
44
votes
4answers
5k views

How to make the digits of π go around in a spiral like this?

Here is a start. MapIndexed[Text[Reverse[First[RealDigits[Pi,10,252]]][[Tr@#2]],#]&, Table[{t Cos[t],t Sin[t]},{t,0,16Pi,0.2}]]//Graphics
0
votes
0answers
32 views

Generate tags for all types of headlines automatically

Is it possible to create for each headline a tag with the same content (i.e. for all Title, Chapter, Subchapter, Section, Subsection, Subsunsection) automatically? When using text processing tools ...
4
votes
0answers
26 views

AppearanceRules on multipage Web Form

I'm attempting to make a web survey using FormFunction. To list the questions I am using AppearanceRules to give each page an ...
0
votes
1answer
46 views

How to use a PopupMenu in Manipulate? [duplicate]

I need to build a Manipulate to show one of several functions in 3D. The functions should be selected in the Manipulate box using a PopupMenu, but the documentation isn't very helpfull on this. So ...
17
votes
1answer
325 views

What options and settings can be used to create print quality typeset documents with Mathematica?

If I am proficient on dedicated typesetting software (e.g. LaTeX) it makes sense to use that for typesetting but if I am not how can I use Mathematica to create good quality documents. The question ...
2
votes
1answer
85 views

Putting label on other side in TimelinePlot

How to put the label on the other side of the interval. For instance in the following code, how to push the label End on the other hand. ...
4
votes
2answers
147 views

$\LaTeX$ in labeling: TimelinePlot

I am struggling to use $\LaTeX$ in labels in TimelinePlot, but was not successful. For instance in the following code how can I insert $\sum_{i=0}^{10} f(x_i)$ ...
2
votes
2answers
53 views

parenthesis issues

I am having rather unpleasant issues with parenthesis. Sometimes, when I change some part of the code that does not relate to a line with parenthesis, this line suddenly turns red and mathematica ...
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
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)...
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 ...
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 ...
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 ...