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

learn more… | top users | synonyms (1)

18
votes
6answers
2k views

Annoying display truncation of numerical results

I have a lot of data to inspect. An example of a number in my program is 123.189094 This gets displayed as 123.189 ...
7
votes
1answer
80 views

How to create permanent intra-notebook links [duplicate]

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 ...
0
votes
1answer
75 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 ...
1
vote
0answers
24 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
152 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: <...
17
votes
1answer
251 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 ...
0
votes
1answer
91 views

Interpreting Mathematica output or producing cleaner output [closed]

Could someone please explain what the following would look like in standard math notation (or explain to me what this means): ...
6
votes
0answers
49 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
58 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
2answers
488 views

Using Greek $\LaTeX$ fonts

I want to use the $\LaTeX$ font in graphics. For text/numbers, this is easily done by FontFamily -> "CMU Serif" (on Ubuntu) like this: ...
-4
votes
1answer
81 views

How to type this certain expression (duplicate question for reference purpose)? [duplicate]

In graphing I hope to output the following format for example $|a_{1020}|^2$. I need to use this as my axes label in a plot and to type this expression in Mathematica. I am fully aware there is a ...
6
votes
1answer
101 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 ...
5
votes
1answer
94 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 ...
0
votes
0answers
5 views

How to insert figure from my pc to Mathematica SE [migrated]

How to upload figure from my pc to Mathematica SE ? On Mathematica SE editor there is a panel called figure, put it describes how to upload figure from a website .. So any help
10
votes
1answer
2k views

How best to embed various cell groups into a $\LaTeX$ project?

I'm an author and a coder. I want to reference various parts of my notebooks in my $\LaTeX$ project. I've tried doing the following, using a post on the $\LaTeX$ side of this problem. I'd like to ...
3
votes
2answers
110 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 ...
14
votes
1answer
413 views

Automatic formatting of isotope symbols in a text cell

InputAutoReplacements is an obvious choice for formatting isotope names in text cells. I'd like to be able to type "1H", for ...
4
votes
1answer
109 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: ...
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
54 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. ...
5
votes
4answers
200 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
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
327 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
251 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
51 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
131 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 ...
2
votes
0answers
49 views
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
41 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
537 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 : ...
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
7
votes
1answer
93 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 ...
0
votes
0answers
31 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
23 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 ...
25
votes
3answers
9k views

How to use $\LaTeX$ for typesetting labels and titles in Mathematica

I need to typeset large number of equations to be used for PlotLabel and Titles and such. These have to look nice. Hence I use <...
0
votes
1answer
44 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 ...
4
votes
2answers
144 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)$ ...
17
votes
1answer
315 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
82 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. ...
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 ...
1
vote
1answer
30 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
92 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
200 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 ...