Questions tagged [formatting]

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

3
votes
2answers
83 views

How do I import data formatted in C or Fortran into Wolfram Language?

I want to import some data that has been formatted using C language. I am not sure if there is a way to read in data by specifying column widths in WL. The data has been formatted using ...
1
vote
1answer
34 views

Two actions in the loop body

Help me please, how I can write two action in the body of the cycle "for"? For example, if I need to write Print[] and Append[] at each iteration.
6
votes
1answer
91 views

TeXForm doesn't work in wolframscript?

Consider that $ wolframscript -cloud -code 'TeXForm[ (d u)/(d t)]' TeXForm[u/t] yet I don't have a local wolframscript kernel installed. Is this something ...
7
votes
1answer
143 views

TraditionalForm-like typesetting in Jupyter notebook

One of the nice thing about running Mathematica codes in the front-end, is that one can attach custom typesetting rules to the user-defined symbols. Then, setting the format type of new output cells ...
3
votes
5answers
94 views

How to rearrange the terms in polynomials to the power of x?

Here is my code Eliminate[y == x + n && x^2/6 + y^2/3 == 1, y] I got 6 - 3 x^2 == 2 n^2 + 4 n x But I wanna it to be ...
2
votes
1answer
43 views

Typesetting environment for CloudDeploy

I am currently starting to develop a Web API for our schools mathematics placement examination for new students. We have the questions and we have what potential scores will mean for us. After ...
2
votes
1answer
105 views

Loading Latex packages into Mathematica

Is it possible to specify a latex package to load while pasting TeX expressions into Mathematica notebooks. For example I would like to load the braket package to typset something like \ket{\psi}
1
vote
1answer
28 views

How to display properly Dataset with index column?

I'm trying to construct and display properly DataSet. Everything works fine, except the index column('Year'). I'm trying different variants: Example 1: ...
2
votes
0answers
38 views

Is there a way to get a tilde to span characters in the way an overbar does?

I want this to work for textual input. This screen-scrape shows what I want: It's not all that uncommon in mathematical literature. Can it be accomplished in Mathematica V10?
4
votes
2answers
126 views

How do I add into a text cell a reference to a numbered function?

I have a document with lots of numbered equations in their own cells (which I numbered through Format->Style->DisplayFormulaNumbered). I also have lots of ...
0
votes
0answers
25 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
562 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
51 views

Create bold headings and rows in `TableForm` if `x` is prime

In the following table ...
0
votes
0answers
28 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
51 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
91 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
75 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
227 views

Problems with rounding giving too many digits

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

Formatting a table to look nice

my current code is: ...
2
votes
1answer
42 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
162 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
58 views

Modify the `Head`of a function [closed]

I created a function HIntthat gives me a traditional output for integrates. ...
2
votes
1answer
73 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
638 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
133 views

Special Character boxtime

In LaTeX, \boxtimes works as follows: ...
2
votes
2answers
58 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
40 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
58 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
36 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
75 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
79 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
40 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
62 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
237 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
37 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

difficulty in matrix operation with Log data

I have a code: ...
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
101 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
39 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
60 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
49 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
188 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
66 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
76 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
141 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
78 views

Diagonal formatting of grid / table

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