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
3
votes
2answers
75 views

Extract outputs from a WHILE loop in a table format

How can I convert my multiple outputs of a while loop in a table form and save it for later use. Here is a sample code: ...
2
votes
0answers
46 views

What do indices in brackets mean? [closed]

Solving the Schrodinger equation for a free particle gives me this output: What does the $\psi^{(2,0)}$ mean here?
1
vote
0answers
42 views

Tools that can convert mathematica images into tikz or pgf code to import to latex?

I have learned about Mathematica2latex from some websites, I don't know where to download it and how to use. Is there any other tools that can convert mathematica images into tikz or pgf code to ...
1
vote
0answers
25 views

Controlling the baseline position of a fraction numerator in a notebook style?

I'm using a built-in Notebook style "Equation" from the "Book/Textbook.nb" stylesheet. When entering fractions, the space between the bottom of the text in the numerator and the fraction line is too ...
3
votes
2answers
86 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
35 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
97 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
161 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
97 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
44 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
109 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
34 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
39 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
130 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
27 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
592 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
54 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
53 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
98 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
78 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
235 views

Problems with rounding giving too many digits

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

Formatting a table to look nice

my current code is: ...
2
votes
1answer
43 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
165 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
60 views

Modify the `Head`of a function [closed]

I created a function HIntthat gives me a traditional output for integrates. ...
2
votes
1answer
80 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
645 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
60 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
44 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
134 views

Special Character boxtime

In LaTeX, \boxtimes works as follows: ...
2
votes
2answers
70 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
42 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
38 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
86 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
81 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
42 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
63 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
242 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
38 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
70 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
104 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
63 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
197 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
68 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
79 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 ...