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
0answers
42 views

Copy and paste in original form

In Mathematica 10, after I copy an expression that contains subscripts and fractions the pasted result is always reverted into input form such as Subscript[a,1]. How do I change this default setting ...
1
vote
1answer
46 views

How to format output numbers like 0.?

I have a function which is given below. If my number, n is 0. or 1. the function gives 0.E0 or 1.E0, respectively. However, I would like to form it as 0.0000E0 or 1.0000E0 like the other numbers given ...
0
votes
0answers
19 views

How to put the resulted equation on mse? [migrated]

i have establish the ODE model and in order to simplify the question,I just want to put the ODE,but when I get the ODE from mma,how can I paste it to mse? codes are as this ...
3
votes
2answers
294 views

Accidental notebook formatting?

As I was trying to save my notebook by hitting ctrl + s, I might have hit a different letter by accident and something unexpected happened: An extra row appeared ...
10
votes
1answer
168 views

Official status of TraditionalForm?

In Mathematica versions prior to 11.2 or 11.3 (not sure at the moment) it was possible to select the default format type of new output cells via ...
0
votes
0answers
25 views

Construct a generalised Kronecker sum

I would like to construct a Kronecker sum function in Mathematica that is similar to the answers to this post, but a more generalised construction. Presume I have a set of $2\times 2$ matrices ...
1
vote
3answers
44 views

How to add suffix to numbers in CForm?

I want to create C-Code from some expressions which have many explicit floating point numbers in them. I need real numbers to be in quadruple and not double precision. Is there a way to add a 'q' ...
0
votes
0answers
18 views

How to display an asterisk in an arbitrary font? [duplicate]

I have a string "abc*". How can I display this in an arbitrary font? The * character is usually interpreted as an operator and ...
2
votes
0answers
38 views

LaTeX/Markdown in notebook

I know that there is the wonderful MaTeX, which is a third party package, but is there a way to duplicate the Jupyter notebook functionality, where one can have ...
1
vote
1answer
88 views

Formatting in *.m file

I have my own package (just a bunch of functions) in the *.m file, which I load using the Needs[] command. Everything works fine ...
2
votes
1answer
44 views

Yet more on Manipulate[] - Formated Input

Suppose I have something like Manipulate[Plot[Sin[n x], {x, -Pi, Pi}], {n, 20, "Frequency"}] with a manual input field but I want to accept inputs like ...
0
votes
0answers
42 views

How can I output a 3D vector picture? [duplicate]

In mathematica, when I plot with the plot3D function, the output 3D surface graphics are not vector graphics (although I have saved them in .svg format). I want to ask, how can I output a 3D vector ...
2
votes
2answers
42 views

Number formating in manipulate

This is closely related to this question.. Suppose I have a slider control for Manipulate. Can I display the slider label in percent (or, in general, any other ...
3
votes
1answer
41 views

Live calculations in equation typsetting?

I want to put together an equation graphic with a live calculation in it. If I use HoldForm, it retains the formatting I want, but I don't know how to ReleaseHold (or whatever is required) to insert a ...
0
votes
1answer
47 views

How do you typeset raised indices in Mathematica?

I'm trying to follow a book that uses the variable $x$ for dimension in cartesian coordinates and $x'$ for the polar coordinates. I'd like to use this typesetting in my Mathematica notebook so I don'...
0
votes
1answer
74 views

Formatting results of a polynomial long division (Extension for finite fields)

I've just read Formatting results of a polynomial long division with great interest. For my teaching purposes it would be great to enable the code given in that post to treat polynomial division with ...
1
vote
0answers
67 views

Why Ctrl+ / doesn't work in my Mathematica?

I would like to type a fraction into my notebook using the Ctrl + / combination, but it doesn't work.
2
votes
2answers
54 views

How do you provide subscripts and superscripts in your comments?

I want to write a comment (text) describing what's happening in my function. I want the text to appear like this: Note that the ElectronNumberDensity is in units of $cm^{-3}$. Thompson cross section ...
0
votes
1answer
54 views

Prevent Mathematica from uncapitalizing letters (specifically for letter I)

I need to use I/I0 to label my y-axis to denote intensity ratio, yet Mathematica converts both I-s to imaginary symbols(small letter I). I tried using Holdform[I/I0] but it does not work. Also, I ...
1
vote
0answers
37 views

Wolfram cloud and typing short cut

I subscribed Wolfram Cloud just a few days ago, and now I trying to get used to it. I’m using iPad pro(gen 2) with the smart keyboard for it, and access on the Cloud via Wolfram cloud app. But I'm ...
3
votes
2answers
92 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
52 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
48 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 ...
5
votes
3answers
147 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
40 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
101 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
189 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
106 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
55 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
114 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
43 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
40 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
133 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
32 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
816 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
62 views

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

In the following table ...
0
votes
0answers
29 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
58 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
110 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 ...
5
votes
1answer
116 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
238 views

Problems with rounding giving too many digits

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

Formatting a table to look nice

my current code is: ...
2
votes
1answer
44 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
170 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
97 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
649 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
61 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 ...