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
0
votes
1answer
75 views

Mathematica front-end code alignment issue

I am having a frustrating recurring issue with the frontend (Mathematica 12.1.1 for Mac OS X x86 (64-bit) (June 19, 2020)). I will have a notebook which works just fine, all lines evaluate. Next, I ...
0
votes
0answers
82 views

How to copy Mathematica code with subindices in a readable way?

I'm trying to post some Mathematica code that makes heavy use of indices on a blog, and when copying and pasting I end up with unreadable stuff like ...
2
votes
1answer
73 views

Pie chart plot formatting

I have been looking through numerous stack posts to answer 1-4 below. I am trying to generate a pie chart with several very small slices that have long labels. when I do the callouts how can I ...
1
vote
2answers
75 views

Enter without execute

As far as I know shift+enter executes the code whereas plain enter merely goes onto the next line. However, sometimes pressing just enter also runs the code and I cant type onto the next line without ...
1
vote
0answers
34 views

How to retrieve the original mathematical expressions from some sort of scripts?

I quit my Mathematica notebook session mid-computation. When I reopen it, the mathematical expression disappeared leaving something like ...
1
vote
0answers
30 views

How to change Font size

Please tell me please how can I change the font size globally. I tried through Option Inspector-> FontOptions-> Font size. Global Preferences parameter changed, but the font in notepad is not
5
votes
2answers
78 views

Adding interactive text

I have two text style cells as shown in the picture (second one is hidden). Is it possible to add an interactive button so that if someone clicks on that button/...
1
vote
1answer
51 views

Why does renderig my equation in Mathematica using MaTeX does not work out?

I have some problem with showing this LaTeX input: ...
1
vote
0answers
25 views

Formatted Strings while use Ask and AskConfirm

What I am trying to do is use AskFunction and CloudDeply to prepare an on-line quiz for students. However, I have found using Ask does not obey formatting for strings in web-form output. For example, ...
1
vote
1answer
42 views

How to change indent in notebook input cell without shifting the whole code to the right?

V 12.1 on windows. This is easier shown in pictures. I like to have large indent for If and Do etc... to make it more clear. ...
2
votes
2answers
62 views

Remove comma from a list

I have this type of thing again and again in a long list: Row[{"F", ",", "G"}] and Row[{"B[Flat]", ",", "A"}] etc. I want these automatically replaced by "F","G" and "B[Flat]","A" etc.
8
votes
1answer
71 views

obtain properly formatted code from autogenerated package

Overview: I have written a few mathematica packages, always using the method of writing my code in a mathematica notebook and letting mathematica autogenerate the .m package file. Currently I do not ...
1
vote
0answers
24 views

Word Wrapping, Hyphenation, Text Justification

I'd like to use Mathematica to write up homework assignments and project reports. The problem is, the way I have it set up, it does not behave like a traditional word processor, and I don't know how ...
2
votes
2answers
72 views

Isn't there a better way to display mathematical equations as labels, in Manipulate[ ] etc.?

I often want to output a mathematical equation in a text environment, and I find it very cumbersome and often the result is also not satisfactory. This example out of the "Advanced Manipulate ...
4
votes
0answers
25 views

How to copy Mathematica settings from Linux to Windows

I have installed Mathematica both in Windows and in Linux. Can I copy the \$UserBaseDirectory folder in Linux (usually ~/.Mathematica) to the \$UserBaseDirectory in ...
2
votes
0answers
58 views

how to find derivative of an equation of matrices with element-wise multiplication or division

For an equation like this: $$ M= \left(\begin{array}{c} A\:x-B \otimes y\end{array}\right) \oslash C $$ where $\otimes$ is an element-wise multiplication and $\oslash$ is an element-wise division. ...
2
votes
1answer
76 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
44 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
45 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
46 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
40 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
23 views

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

I have written a function myPfuntest, ...
1
vote
2answers
55 views

The ordering problem of multivariate polynomials

This is the result of Taylor expansion of a binary function ...
4
votes
0answers
62 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
129 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
43 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
36 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
54 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
55 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
297 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
190 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
36 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
80 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
35 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
55 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
119 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
47 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
45 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
43 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
51 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'...
1
vote
1answer
121 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
81 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
89 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
57 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
132 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
113 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
57 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
2 3 4 5
14