Stack Exchange Network

Stack Exchange network consists of 174 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.

8
votes
1answer
130 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
56 views

Modify the `Head`of a function [closed]

I created a function HIntthat gives me a traditional output for integrates. ...
2
votes
1answer
50 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
624 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
57 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
42 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
125 views

Special Character boxtime

In LaTeX, \boxtimes works as follows: ...
2
votes
2answers
34 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
34 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
54 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
29 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
57 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
76 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
36 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
56 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
223 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
65 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
98 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
35 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
51 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
47 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
159 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
61 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
57 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
124 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
64 views

Diagonal formatting of grid / table

I have a table given by (a simple example for clarity) ...
2
votes
1answer
46 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
46 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
51 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
83 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
70 views

How to get the input string of Entity as output?

I have the following codes:- ...
3
votes
1answer
173 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
90 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
40 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
42 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" ...
10
votes
2answers
210 views

Schrödinger's MatrixForm: feature or bug?

Recently I noticed a peculiar behavior of MatrixForm that I failed to find a way to explain. Consider the following example: ...
14
votes
2answers
324 views

Column makes fonts smaller

When you use Column (or Grid) a previously styled element with explicit font-size setting appears much smaller. Here is an ...
2
votes
1answer
99 views

Can I stop Mathematica from corercing radicals to conform to its idea of correct format? Version 10.4

This almost exclusively pertains to textual content, not Input. In my documents (Notebooks), I often have complicated expressions which involve square roots. I spend good time trying to format them ...
2
votes
1answer
56 views

Display Dataset[Databin[]] as result for cloud deployed FormFunction

I am trying to set up a cloud deployed FormFunction where a user can enter a public databin ID and then view the contents formatted as a dataset. I keep running ...
24
votes
1answer
282 views

Recreational Challenge: Best looking output for Rubi integration steps

As some of you might know, I'm working with Albert Rich to improve the accessibility of his Rubi package for rule-based integration. I'm almost done with a first version that contains several ...
1
vote
0answers
45 views

How to write a power using `WriteString` function

I have a solution of an equation: aa = N[Rationalize[g6[[3, 2]], 0], 16] (* Out: 2.691607147352649*10^-6 *) I want to save this result in a file using ...
2
votes
0answers
70 views

Sequentially displaying bullet comments in a Mathematica presentation

Playing around with the 11.3 presenter tools today. I have generated a presentation entitled "Polynomials". 10 slides with Title and 9 sections. My goal was to create a presentation with 5 slides. ...
1
vote
0answers
46 views

How to compare 2 expressions regardless of form?

trying to do that: In[15]:= FullForm[FullForm[1/a^2]]==FullForm[Power[a,-2]] ...
2
votes
1answer
70 views

Behavior of MaTeX for a polynomial equation

I have been researching today the possibility of creating interactive mathematics documents using Mathematica for use in the classroom. I want to be able to use LaTeX typesetting within my notebook ...
1
vote
1answer
89 views

Writing partial differentiation in a subscript

I would like to represent partial derivatives in Mathematica as subscripts. e.g. $\frac{\partial f}{\partial x}(x,y) = f_x(x,y)$. Mathematica instead produces the output $f^{(1,0)}(x,y)$. Is there ...