Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [formatting]

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

0
votes
0answers
23 views

Programmatically get InputText of box structure without spaces

I am looking for a way to get something similar to the "Input Text" form of an arbitrary box structure, but without the extra whitespaces. Before I explain the requirements in a bit more detail, let'...
6
votes
3answers
529 views

Typesetting a double Over Dot on top of a symbol

I wanted to make a notation with a double dot over a symbol in Mathematica. Searching online or in the documentation did not yield any results. However, just randomly attempting to give a second ...
0
votes
1answer
41 views
0
votes
0answers
27 views

Custom PopupMenu displays menu items as values instead of labels

I'm trying to create custom appearance for PopupMenu with the below code. The problem I have is with the menu items which are displayed as values instead of labels. ...
2
votes
1answer
46 views

Cell formatting and hiding code

I've written some code that's been getting longer and longer, Is there a way to "hide" the section of the code that does not require input so that i can just give it my two inputs and jump straight to ...
4
votes
2answers
83 views

DisplayForm problem with $\pi$ in FractionBox

The following line produces an output with the text "Pi" displayed instead of the symbol (greek letter) $\pi$. Code line: FractionBox[π,2] // DisplayForm ...
4
votes
1answer
70 views

All the group formatting available in Mathematica

I was wondering how many pre-defined group formatting style there is in Mathematica. From Format -> Style, one see that we can go from ...
3
votes
3answers
222 views

Problems with rounding giving too many digits

My current code is: ...
7
votes
2answers
357 views

Formatting a table to look nice

my current code is: ...
2
votes
1answer
41 views

Typing Control-6 makes text cell disappear

This morning, I opened a document I worked on last week, and all the lines of text that had Control-9 functions in them where the function involved a power written by typing Control-6 were completely ...
11
votes
1answer
157 views

Exporting Summary Boxes

I would like to Export a Summary Box in its expanded Form. How do i do this? I can Export a collapsed Summary Box by doing: ...
1
vote
1answer
57 views

Modify the `Head`of a function [closed]

I created a function HIntthat gives me a traditional output for integrates. ...
2
votes
1answer
60 views

How do I tell Mathematica to write numbers on a file without using scientific notation?

I need to write numbers out to a file without using the scientific notation. How do I tell Mathematica to do that? This is the code I am using: ...
13
votes
3answers
637 views

What is a satisfactory way to typeset ℕ in the Mathematica notebook?

I am familiar with typing: escintsesc escrealsesc to produce: (when typing inside a DisplayFormula cell). How would one typeset a similar looking ℕ ? I have tried ...
4
votes
1answer
59 views

Construct a function with subindices

I'm constructing a function that gives me subindices in output. The function is HAt. For example: HAt[u == u0, t -> 0] ...
1
vote
0answers
43 views

How can consistent scaling of ∧, ∨, etc., be accomplished?

I've added two examples of what the expressions I wish to reproduce look like: Here serves both as a binary operator and as the universal quantifier. I know ...
4
votes
2answers
132 views

Special Character boxtime

In LaTeX, \boxtimes works as follows: ...
2
votes
2answers
43 views

How do you change from Traditional form to Input form?

I have something like this: Hold[TraditionalForm[1/2 + x^2]] And wish to change it to Input form with the use of code (that is, without clicking Cell > Convert ...
1
vote
0answers
36 views

Typography of Mixed Tensor Index Notation

How can one properly and quickly write a mixed "tensor" such as $\Gamma{}_{1}{}^{2}{}_{3}$? Shortcuts such as esc Gamma esc, Ctrl+^, Ctrl+_ are prefered. I intendd to use this in an inline equation ...
0
votes
2answers
57 views

Enter formula in matrix forms

Hello I am a new Mathematica user and I have to finish a school project using it. I have the following Matrix Form, I need to calculate the growth rate of the following data by year. The growth rate ...
2
votes
1answer
34 views

How to use InputForm for printed and output expressions in console mode

When I run Mathematica in console mode (math.exe/wolfram.exe) without a GUI frontend, then printed and output expressions are (...
1
vote
2answers
65 views

How to reduce margins of text in GraphicsRow?

I used the code GraphicsRow[{Text["1"], Graphics[Disk[]], Graphics[Disk[]]}] to generate a row of graphics, but one of them is actually some text. I found that <...
2
votes
0answers
78 views

How to do long space in Mathematica 11.3

In some previous versions of Mathematica under Windows 10 you could type \:2003 and a long space (Unicode em space character) appeared, e.g. inside a text cell. This does not seem to work in version ...
0
votes
2answers
39 views

plot legend appearing in iteratively produced plot, missing colors

I'm trying to have the color of each line show up in the plot legend for the following block of code below, except the corresponding colors for each line of the plot do not show up in the legend. I ...
3
votes
1answer
60 views

Using Overdot in function Module?

Fundamental problem is: Is there any way I can use OverDot[var] as symbol in a function? I have tried to use Symbolize[OverDot[x,1]] for example, to no avail. If I ...
7
votes
2answers
230 views

Mixed fraction input

How do I make mathematica treat $5\frac{1}{2}$ as a mixed fraction rather than 5 times one-half? I'm using typesetting keyboard shortcuts (if that's important) Currently I'm using $(5 + \frac{1}{2})$...
0
votes
1answer
34 views

Entering negative fractions in formula mode

I find it awkward to enter negative fractions in Mathematica when using formula mode. For example I need to enter $ -\frac{1}{12}$ in a text cell. I would press ⌘7 ...
1
vote
0answers
64 views
2
votes
2answers
69 views

Create a cross-section, time series data set using Matrix operations

I have developed the following code, which produces what I aim to obtain. ...
0
votes
3answers
100 views

Replacements within a mathematica expression?

Say I have many expressions of the form $$\text{expr} = \frac{1}{AB(C+D)^n E^m}$$ where $A,B,C,D$ and $E$ are symbols and $n,m$ arbitrary powers. In order to convert between the mathematica output and ...
1
vote
0answers
37 views

Slide Show Presentation: Huge Margins [closed]

When I create a standard presentation and enter presentation mode, left margins are huge, like 25% of the screen. Is there a way to reduce it?
2
votes
1answer
59 views

Formatting an input cell

I want to create an input cell with two lines, like the following: a="aaaaaaa"; b="bbbbbb"; c="ccccc"; That is as I want to have it. Now insert in the first ...
0
votes
1answer
48 views

Joining strings in FrameLabel [duplicate]

I want the $ x $-axis of this plot to be $ \tau/\alpha_e $ without the "+", but I'm unable to do this without Mathematica putting the $ \alpha_e $ to the front of the string. ...
7
votes
4answers
177 views

Unitalicizing a label with a sub/superscript

I need to use a sub/superscript to label the x-axis variable on the horizontal axis of my plot. Mathematica returns the variable as italicized, but only the $x^2$ needs to be italicized, but not the ...
1
vote
3answers
64 views

How to draw lines touching x and y axes

I have a simple code to generate a plot ListPlot[Table[4.5 (x - 5) + RandomReal[{-20, 20}], {x, 5, 100, 10}]] I would like each point to have two red lines ...
3
votes
1answer
68 views

Replacement rule to display negative exponents as denominators

Suppose I have an expression of the form: expr=f[t]^b + f[t]^a g[t]^-a + g[t]^-c And I want to create a rule to convert negative exponents to denominators. In ...
4
votes
2answers
137 views

How to customize traditional form for inactive functions?

Let's say I define Lg[n_]:=Log[2,n]. How do I make Inactive[Lg][x]//TraditionalForm output ...
3
votes
1answer
71 views

Diagonal formatting of grid / table

I have a table given by (a simple example for clarity) ...
2
votes
1answer
52 views

Is there a way to produce an “evaluate at” vertical bar that resizes properly in display formulae?

There are two examples of what I am talking about in this equation: $$\displaystyle \left.\mathrm{d}\Phi\left(v\right)\right|_{p}\equiv\left.v^{\mu}\frac{\partial\Phi^{\lambda}}{\partial x^{\mu}}\frac{...
0
votes
0answers
27 views

.:Duplicated:..formatting - text cells and math cells [duplicate]

I'm writing a formulary in Mathematica and I'm experiencing issues while formatting the text. I create a new notebook and a text cell (Alt+9) with text style. Let's ...
0
votes
1answer
51 views

`PlotLegends` formatting mixing italics and upright letters

If I do: ListPlot[Range[10] ,PlotLegends->Placed[LineLegend[{"Subscript[N, σ] f(m; μ, p)"},LabelStyle->{FontFamily->"Times"}],{0.8,0.35}] ] where ...
0
votes
1answer
38 views

How to programatically generate a textual cell displaying the matrix with decorated raised and lowered indices?

This is a basic example of what I want to generate. Cell[BoxData[ FormBox[ RowBox[{"[", GridBox[{ { RowBox[{ SuperscriptBox["e", OverscriptBox["1", "_"]], ...
2
votes
1answer
54 views

can square brackets be set to 'SpanMaxSize -> Infinity', so they act like parantheses globally?

From an answer to Keyboard entry of square bracketed matrices in text cells, How to? , I cribbed this code: CurrentValue[EvaluationNotebook[], InputAliases] = DeleteDuplicates@ Append[...
3
votes
0answers
87 views

Formulas in text cells in Mathematica Online

Is there a way to typeset mathematical equations in text cells in Mathematica Online? Even if there is no direct support, is there a way to parse LaTeX snippets entered between ...
2
votes
4answers
157 views

What is better coding for turning list into sequence without curly brackets?

There are less satisfying Q/A for what I am asking but none that actually answer the question. Suppose one has a=1; b={2,3}; And one wants to print a sequence ...
4
votes
2answers
76 views

How to get the input string of Entity as output?

I have the following codes:- ...
3
votes
1answer
219 views

How to convert entity to string?

I have an entity city. For example, I run {city} = GeoNearest["City", GeoPosition[{41.8, -87.7}]] and then I got The entity "...
5
votes
1answer
94 views

Why Text Cells converted with Alt-7 have different fonts

So I am writing a report in Mathematica and experiencing a problem. First I create an input cell. Then write some text into it. Afterwards convert it to text cell with Alt-7. As a result some cells ...
1
vote
2answers
42 views

How to properly, with the most possible freedom, add a formula into a plot?

I would like to know the best way(s) to add a formula into a plot, with the most possible freedom ever. And I mean: possibility of writing the formula the dimension of which can be modified, put into ...
2
votes
0answers
44 views

How to remove “⍰” from parent cells with collapsed child cells in MMA 11.3?

I like to work with notebooks and collapse cells containing computations. This gives me a manuscript-like feel for the notebook, and I like the aesthetics of it. MMA 11.3 introduced a new "feature" ...