Questions tagged [formatting]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
93 views

Mathematica can not interpret parentheses correctly [closed]

I want to sum up four terms but Mathematica does not interpret the parentheses correctly. In the picture, in second line there is only one term that starts with 1/12...
user avatar
4 votes
1 answer
86 views

How can I preserve parentheses enclosing a dot product in a HoldForm[]?

I am having a problem with keeping the parentheses enclosing a dot product in HoldForm[]. I want to keep them in my equations since they indicate important grouping ...
user avatar
  • 383
5 votes
1 answer
139 views

How can I remove the outermost pair of brackets enclosing a Piecewise function when it occurs in an equation?

Recently I have been annoyed by an automatic formatting in MMA, that is when a Piecewise function occurs in an equation, it will be enclosed by a pair of brackets automatically by MMA, although when ...
user avatar
  • 383
0 votes
0 answers
15 views

Pressing Command+b (for boldface) seem to work intermittently in inline cells

As expected, pressing Command+b will usually change the font-weight of the currently selected (highlighted) text to bold. However, I'm noticing that this often fails in inline cells. For example, ...
user avatar
  • 4,559
0 votes
1 answer
162 views

How to copy Mathematica code into Microsoft Word?

Is there a way to copy my mathematica code (with preserved formatting) as text into microsoft word? Below is part of my code. ...
user avatar
  • 105
2 votes
1 answer
88 views

Mathematica is messing around with absolute values and sqrts of complex numbers?

I know that $$\begin{pmatrix}0&Z\\Z^*&0\end{pmatrix} \quad\text{has eigenvalues}\quad \lambda_\pm=\pm|Z|$$ but Mathematica gives me ...
user avatar
  • 385
3 votes
1 answer
133 views

A bug in copy&paste of plain text

My mathematica version is 12.2 and OS is windows 10. In a new .nb document Write a string "abc" in the first cell Right mouse click on the first cell bracket click copy as - plain text ctrl+...
user avatar
  • 2,825
1 vote
2 answers
108 views

Change style of the above cell

How can I change the style of a given cell, by writing some code on the cell directly below the cell and executing it? ...
user avatar
  • 2,825
2 votes
1 answer
69 views

Text cell numbering

For input cells and output cells, there are automatic,natural numbering. In[1] 2+2 Out[1] 4 I mean In[1] and Out...
user avatar
  • 2,825
4 votes
2 answers
102 views

Formatting the output of Abs[x] to look like $|x|$

I have a program where I deal with multiple complex variables and it is convenient to ouput all absolute values and complex conjugates as $|x|$ and $x^*$. To achieve this, I've added these lines to my ...
user avatar
  • 385
3 votes
3 answers
85 views

How to type special characters used in $\LaTeX$?

While using $\LaTeX$, there are two characters, \Re and \Im, that represent the real and imaginary parts of a complex number. These look like this: How can I type these two characters in Mathematica? ...
user avatar
  • 2,643
4 votes
2 answers
207 views
+100

Computing maximal FontSize to fill a rectangle?

I'd like to compute the proper FontSize for a given piece of text to fill a given Rectangle. ...
user avatar
  • 3,679
3 votes
1 answer
75 views

Bug with ScientificForm[] and Around[]?

I'm using Mathematica 12.3. You can use ScientificForm[] to display a number using scientific notation irregardless of its magnitude. When using ...
user avatar
1 vote
0 answers
38 views

How to declare at the beginning of the notebook that a variable belongs to a set?

In the notebook I am working on I have certain symbolic variables (e.g., c and r) which I would like to declare since the very first few lines to be non negative real numbers. Correct me if I am wrong ...
user avatar
  • 53
1 vote
0 answers
80 views

Mathematica typesetting (writing in Text cells) PROBLEMS - unpredictable behaviour!

I've been using Mathematica for years. Even the latest v.13 is still giving really weird behaviour when writing in a Text cell, and completely unexpectedly: Changes unexpectedly the text style, text ...
user avatar
0 votes
1 answer
74 views

Is it possible to change $SystemCharacterEncoding?

In my machine I get Now let's check the official CP949 map. http://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WINDOWS/CP949.TXT ... ... ... ... The code point of ♥ in CP949 is 2665. (The code ...
user avatar
1 vote
1 answer
59 views

Dollars with Superscript Cents in text

I would like to show the cents of the dollar amount as superscripts inside text. I can define a function for making the cents into a superscript, but when I add the result in text, the text gets ...
user avatar
  • 1,585
1 vote
1 answer
41 views

How can I copy the cell as LaTeX code but the look remains as what I typed?

I typed this on Mathematica. ...
user avatar
  • 1,862
0 votes
0 answers
32 views

DecimalForm export problem

When I'm trying to export data formatted using DecimalForm I have "DecimalForm[0.002, 4], DecimalForm[0.0004567, 4]" in the exported file for the following example ...
user avatar
5 votes
3 answers
231 views

How do I show a list of variables and their associated values as a list or table?

I would like to do calculations using various variables as inputs along with functions or formulas and once all variables are calculated I need to output some or all of them in a table (or list). Here ...
user avatar
2 votes
1 answer
57 views

How to write the expression of norm in Mathematica

Please how I can write the following expression of Latex in Mathematica $\parallel F \parallel_{L^2 (\omega)} $ Thank you in advance.
user avatar
5 votes
2 answers
192 views

How to type following expression in Mathematica

I want to eneter following expression in mathematica $$\prod_a^3 \prod_{b\neq a}^3 \frac{x(a)}{b-a}$$ How is this extra condition in product entered in Mathematica? Without the restriction, I would ...
user avatar
4 votes
2 answers
134 views

Make very long equals sign

My goto in LaTeX is \stackrel{\text{by obviousness}}{=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=\joinrel=} where I stick together enough equals signs ...
user avatar
  • 2,688
2 votes
2 answers
78 views

How can the format of Initialization Cells be set to the format of normal input cells?

I don't like how initialization (or "Code") cells are formatted in notebooks, namely the grey background color and the spacing/wrapping settings. I want ...
user avatar
  • 483
6 votes
4 answers
517 views

How to scale the parenthesis like how the LaTeX \left \right commands do?

I am trying to use Graphics[Text[]] to label some curves on a plot. However, I cannot format the text properly. I want my text to look like this $$F= \left(\dfrac{2\...
user avatar
7 votes
4 answers
279 views

How to write LaTeX style math in notebook (as text)

If I have a notebook and I am just typing out ideas, I would like to be able to write math just as TeX style formatting for display and not as input to Mathematica. I have found that I can use CTRL-4 ...
user avatar
  • 173
6 votes
1 answer
165 views

Extracting Format of Tutorial Notebook

I noticed that the documentation contains some beautifully formatted notebooks which I would like to use for my file. However, simply copying the cells does not work. So how can I get the formats of ...
user avatar
  • 1,941
1 vote
1 answer
89 views

How can I make ToString keep significant numbers with zeros?

I would like the output of ToString to keep the zeros as in the input, how can I do that? ...
user avatar
0 votes
0 answers
34 views

Make InvisibleComma's in output

Entering something that outputs like $a_{bc}$ is as simple as actrl-_besc,escbesc,escc, using \[InvisibleComma]s. The form of the expression is actually ...
user avatar
  • 2,688
5 votes
2 answers
154 views

Align paragraph text to left (not just first line)

The following looks wrong to me, how can I fix the alignment for the whole paragraph? ...
user avatar
  • 3,679
5 votes
1 answer
149 views

How to recover these TemplateBox into normal form?

I often use $\TeX$ editor by Insert→Inline TeX Input in PlotLabel to label graphics: I will get a well-formed plot label: But when I Copy As Input Text and paste ...
user avatar
  • 23.7k
0 votes
1 answer
84 views

Force union "∪" to typeset big

I'm asking about typing math in an inline text cell. So in a text cell, ctrl-9 puts the cursor in an inline cell. Then escunesc1ctrl-_2 produces so evidently that subscript isn't "low enough&...
user avatar
  • 2,688
0 votes
0 answers
19 views

Modify typesetting of ↪ with MMA equivalent of \raisebox

I was going to ask about the MMA equivalent of $\TeX$'s \raisebox, since the character ↪ is way too high up in inline cells: vs from TeX Then I found it: ...
user avatar
  • 2,688
0 votes
0 answers
32 views

How to Hold a Form function

For Example Hold[HoldForm[FullForm[x]]] ...
user avatar
  • 275
29 votes
2 answers
541 views

Writing a technical note in Mathematica

I have been using Mathematica for many years, mostly for plotting, derivations and numerical computations. Many times I tried to incorporate some text and formulas in my worksheets. Text is Ok, but ...
user avatar
  • 16k
4 votes
1 answer
129 views

Remove the Times x from display in Inactivate expressions in V13

I tried the solutions given in How do I remove the little × that shows up in the frontend when typing? and Getting rid of the horrible Times x in Mathematica 12.3. They work for standard expressions: ...
user avatar
  • 109k
2 votes
1 answer
75 views

Output function definition as TeXForm with big bracket

I've checked this answer. While it works in Mathematica, the $\LaTeX$ output is weird. ...
user avatar
7 votes
2 answers
344 views

Why is Mathematica changing the output display format?

I do a command like Table[i^5/(i^5 + 7*i + 1) Sin[x]/E^(3 i x), {i, 1, 5}] The output shows up as $$\left\{\frac{1}{9} e^{-3 x} \sin (x),\frac{32}{47} e^{-6 x} \...
user avatar
  • 2,076
1 vote
0 answers
54 views

A question about generating table [closed]

Consider a vector that is generated somehow, say vec:={RandomReal[{0,2}],RandomReal[{0,1}],RandomReal[{2,3}]}; Note that it is evaluated on-flight, I cannot ...
user avatar
  • 3,832
1 vote
1 answer
90 views

How do I make a symbol for a second derivative?

In my script, I want the second derivative of a function to be a symbol that I can manipulate (i.e. give a value to, use in an expression, etc.). So I want to build a box for the expression:$$\frac{d^...
user avatar
  • 1,481
0 votes
0 answers
17 views

How to map a keyboard combination of two keys pressed in sequence with modifiers to a palette?

I am aware of the question How to add a keyboard shortcut to open a Palette. I would like to modify the example there to open the special character palette when I press Ctrl+Shift+S,C. How would I ...
user avatar
0 votes
0 answers
41 views

Why does Format produce this warning as a side-effect?

I'm trying to Format[event[][digit[n_], pos[j_]]] ^:= Column[{n, Row[{"[", j, "]"}]}, Alignment -> Center] which seems to work; evaluating <...
user avatar
  • 122
1 vote
2 answers
79 views

Control size of extensible parentheses and bracket

Consider \!\(\*SuperscriptBox[f,0]\)((a,b]). I would want that typeset something like $$f^0((a,b])$$ or maybe $$f^0\Big((a,b]\Big)$$ Instead it formats like $$f^0((...
user avatar
  • 2,688
3 votes
0 answers
93 views

Creating a style that center aligns columns but tweeks terms that are negative

I have created the following style in a private stylesheet that applies to gridbox structures for matrices. So far I have ...
user avatar
  • 4,559
1 vote
1 answer
82 views

Palette to control alignment in formula cells

I would like to create a palette with three buttons: Inserts an alignment marker at the current cursor insertion point (i.e., inserts the character ...
user avatar
2 votes
0 answers
40 views

How to automatically name a Wolfram Notebook after the first title line of code if present?

I have a goal of somehow using Wolfram Mathematica's Notebook object functionality to program an initialization cell that will automatically save and name a new file after a title line of code ...
user avatar
7 votes
0 answers
169 views

How to format notebook like ACL Papers?

I typically use the ICML or ACL paper format in latex which is two-columns (shown below). Is there anyway to get a two column stylesheet that looks similar?
user avatar
  • 30.4k
1 vote
1 answer
68 views

Is there a way to reduce the vertical white space between input and output in a notebook cell?

Is there a way to control the vertical spacing between input and output cells? If CellMargins is supposed to do it, then what am I doing wrong? In[8]:= CellMargins -> {{1, 1}, {1, 1}}; a = 7 Out[9]...
user avatar
1 vote
1 answer
80 views

How to format linear equation solve

I need to solve the system of linear equations $S_i = \sum_ {r = 1}^\lambda x_ {r, i} E_r$, where $S_i$ is a $\lambda$ - dimensional vector, $i$ runs from 1 to $n$, $r$ runs from 1 to $\lambda$,...
user avatar
  • 155
16 votes
1 answer
1k views

Getting rid of the horrible Times x in Mathematica 12.3

Revised question to reflect new issues pertinent to Mma 12.3 and that are unresolved by the linked question - this is NOT a DUPLICATE and should not be reflected as such As of Mathematica 12.3, if I ...
user avatar
  • 8,451

1
2 3 4 5
16