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
2
votes
1answer
59 views

Why does PageBreakAbove / PageBreakBelow not work here?

Bug introduced in 12.0 or earlier and persisting through 12.1 Create a notebook having interspersed cells of figures and text: ...
3
votes
0answers
34 views

Mathematical Typesetting in Mathematica Online

Is there any way to insert mathematical typesetting into text cells in Mathematica Online? I'm a teacher and I want my students to be able to do their assignments using Mathematica Online and hand ...
1
vote
1answer
41 views

How to replace terms without rearranging

I have a long expression which I'd like to export to Latex, so I'm using the copy as latex function. However, in my Latex document I'm using different notation, so I'd like to use the replace rule to ...
1
vote
0answers
40 views

Semi-direct product and crossed product symbols

Does Mathematica have any symbols for the semi-direct product $\rtimes$ (or $\ltimes$) and the crossed product $\bowtie$? I have looked at the lists containing all symbols and couldn't find it there. ...
0
votes
0answers
11 views

Description of Menu Format -> style individual styles and their implications for the cell behaviour

Is there any documentation for the menu Format->Style? I wanted to include in the notebook examples of the code and I used for those cells the style called ...
2
votes
1answer
30 views

Stylesheet control of system panel font colors?

I'm trying to make a custom dark mode stylesheet, and I started with Kuba's great DarkPackage. The issue is how to deal with text in panels (you can barely see the white-on-white text, unless you ...
1
vote
0answers
22 views

For ``Formulate'' and then Hold/Print Maths expressions?

I have written a function myPfuntest, ...
2
votes
2answers
52 views

The ordering problem of multivariate polynomials

This is the result of Taylor expansion of a binary function ...
4
votes
0answers
61 views

About the behavior of comments in Mathematica

We all know that comments in mathematica are enclosed by (* and *) and what is written there is not run. Nevertheless I find ...
5
votes
0answers
60 views

Mathematica Global Menu Size

How do you change the text size for the GLOBAL MENUS in MATHEMATICA 12? I am NOT talking about anything INSIDE the notebook (this has been asked and answered many times). I am talking about the "...
3
votes
1answer
39 views

How define boxes to avoid parenthesis

The following definition for boxes in TraditionalForm formats as $\{a,b\}\{c,d\}$ (for simplicty, it matches only if the arguments literally are ...
0
votes
0answers
33 views

Ctrl+6 does not produce a typeset exponent

When I type Ctrl+6, the result is a 6 rather than the expected place holder for entering a superscript/exponent. This is not consistent — on rare occasions the ...
1
vote
0answers
51 views

The order of partial derivatives on a symbolic function

I was wondering if it is possible to get the partial derivative of a symbolic function while maintaining the same order of derivation. Here is what I get when I plug the following command: ...
1
vote
0answers
50 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
64 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 ...
3
votes
2answers
296 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
184 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
27 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
63 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' ...
2
votes
0answers
34 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
45 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
102 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
46 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
43 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
49 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
93 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
72 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
60 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
55 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
69 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
102 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
54 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
52 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
27 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
192 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
84 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
115 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
229 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
113 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 ...
3
votes
1answer
70 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
122 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
50 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
41 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
149 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
37 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
1k 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
69 views

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

In the following table ...
2
votes
1answer
61 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 ...

1
2 3 4 5
14