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
1answer
85 views

Doing calculations on values input in USD currency format (e.g., $1,234.56)

I'd like to be able to copy and paste, into MMA, numbers that have a standard USD currency format, i.e., that include dollar signs and comma separators, and get the output in the same format. I'd ...
0
votes
0answers
29 views

Yet Another Expression Ordering Question (not polynomial but transcendental)

Forcing a particular ordering of terms, i.e. overriding Mathematica's, is a recurrent issue, especially for users working within particular domains where there is a particular ordering tradition or ...
4
votes
2answers
141 views

Organising and examining a complicated CSV file

I am being sent data in CSV files. The sender is providing helpful comments and lots of headings so that it is fine to look at in a spreadsheet environment. However, when I import it into Mathematica ...
0
votes
0answers
60 views

On the precision of `Table` calculation [duplicate]

I want to add two arrays length and Apice, It's accuracy to six decimal places. When I use ...
1
vote
1answer
26 views

How to use Power with NumberForm?

Being in need of calculating the following numbers with 18 decimals of precision: $2^{2^{-x}}, x\in{\mathbb{N}}$. I looked for what built-in symbols can help me and found Power and NumberForm. I tried ...
8
votes
1answer
95 views

List of all formatting elements available for .m files

I'm looking into generating .m files programmatically and would like to explore different possibilities of formatting their content when opened in the front end. For example, if you write ...
3
votes
0answers
46 views

Pasting multiline commands

If i copy and paste something from one nb to another it works normally. But if I copy from any other app it just puts everything in the same line. Recently, I have automated my workflow in ...
1
vote
0answers
17 views

Palette to align formulas in input cell

I have a palette that formats input cells for display, and also copies the number of cells in DisplayFormulaNumbered format so I can paste references to them in the ...
2
votes
1answer
111 views

What would you substitute for { and } in Mathematica code so it will display in YouTube comments?

Curly braces are not allowed in YouTube comments, so it would be good to find another character that Mathematica doesn't use and YouTube will allow so a global find and replace will put back the ...
0
votes
1answer
40 views

UnitSimplify for unit multiples and submultiples

Is there any way to automatically rewrite units so that they display more naturally looking magnitudes? By this I mean that ...
0
votes
0answers
29 views

Formatting code in .wl and .m files from the command-line?

I use an external editor (Sublime Text) to edit my .wl and .m files and run them with WolframKernel from the command line. This means everything I do is outside of Mathematica. Is there a way I can ...
3
votes
1answer
60 views

How to Create a Shortcut to put a frame around an equation

I use mathematica for typing Physics and other notes. For important equations, I prefer to put a box around them. To do so I use either: Insert-> Typesetting -> Add Frame from the menubar ...
1
vote
0answers
55 views

Format of codes

For example, in .wl file, I typed a symbol like this, However, When I reopen the file, it becomes like this. How can I keep expression of the form of first picture in .wl file?
3
votes
1answer
40 views

Performance - Plot with Calloutmarker ->“Arrow” and ImageSize->Full

This is a little esoteric, but I noticed that using CalloutMarker -> "Arrow" on a Plot that uses ...
2
votes
1answer
39 views

Can you use boxes to create a primed variable?

I want to use a symbol to distinguish $\lambda$ in one coordinate set from another $\lambda$ in another set. Traditionally, we'd use a prime symbol ' to do this (e.g. $\lambda'$). I tried using this ...
2
votes
0answers
51 views

Equations in text cell in wrong format

In order to type an equation in a text cell one presses Ctrl+9 and then you get a highlighted region into which you type an equation. Here is an example The problem here is that the equation is in ...
4
votes
2answers
238 views

How to format a Grid command

Creating some extra notes for students in a trig class. A bare bones table can be created in Mathematica using the line below. ...
1
vote
1answer
42 views

Add “Align Center” button to a custom `Palette`

I have the following Palette: ...
3
votes
1answer
91 views

Possible bug in traditional form expression enclosed in “”

The following: ...
3
votes
0answers
53 views

Wolfram Cloud's Sum give wrong position [closed]

Run this code in wolfram cloud. Sum[((-1)^(i + 1)*Binomial[n, i]*(n - i)!)/n!, {i, 1, n}] Click Output to get the code. Gives ...
3
votes
2answers
45 views

How to increase font without affecting grid spacing?

Here's an example of the problem, say you have a Grid with particular spacings that looks like this: ...
1
vote
3answers
62 views

Use Format while still being able to copy-paste the underlying representation

Suppose that I have a Head A that appears pretty often in my code and, in order to make my outputs look nicer, I define ...
1
vote
1answer
32 views

How to get function to 'expand' while inactivating inner functions

This is sort of a two question problem: Question 1 So I have a function as follows f[x_] := x + 2; I want a way to have a statement such as: ...
7
votes
4answers
285 views

Display Number with SI prefixes

I have a number of val = 0.000015783 which represents a current value in Amps. I want to display it with 3 significant digits and with SI prefixes instead of the ...
0
votes
0answers
51 views

Help all my variables are black

Some time I ago I changed my format settings and somehow (I can't remember) everything in Mathematica is now black. I'd like my variables to be nicely coloured again. How do I undo this? It looks like ...
3
votes
1answer
39 views

How to make boxes independent from those cell-formatting options?

In a cell whose LanguageCategory option is "Input", boxes will be syntax-highlighted. Is there any way to diasble such ...
1
vote
1answer
33 views

Export table of mixed data without shortened decimal notation?

My question is similar to this one, except the solution presented there does not work in my case since my table contains strings as well as numbers. I would like to export data such as ...
4
votes
1answer
61 views

Custom object display in Dataset using MakeBoxes

The below code defines a couple "objects" in the Mathematica sense using a convention consisting of so-called Q-functions for creating types and data validation, ...
0
votes
0answers
41 views

Axis not appearing in the correct location ListPointPlot3D

So when you make a 3D plot in mathematica, Plot3D, ListPlot3D, ListPointPlot3D, etc. the side of the box the axis show up on usually happens automatically. That is, the orient themselves so they're ...
5
votes
1answer
56 views

What does Global Magnification actually do?

In preferences (at least in mathematica 12.0+), there is an option called "Global Magnification". At first glance, this option seems to scale the size of the text in notebooks (e.g. 75% ...
3
votes
1answer
70 views

Disallow line breaks in long Row

I'm displaying a long row of images with a horizontal scrollbar that should make the images 'go off the screen' to the left or right, instead of wrapping to display all the images on multiple lines. <...
1
vote
1answer
34 views

Expanding and sympifying an expression when using typesetting format

I'm starting to learn Mathematica, and in the book that I'm reading the author presented the commands Simplify and Expand. Now, ...
0
votes
1answer
35 views

HowTo “correctly” avoid clipping in GraphicsRow[{Labeled[Graphics[]]}]? Both images and labels

Version:"12.0.0 for Microsoft Windows (64-bit) (April 6, 2019)" This code ...
1
vote
1answer
66 views

How do I write small “black board” c1, c2, … constants?

New for Mathematica 12(?) seems to be a formatted "black board" style of the former C[1], C[2], ... constants in Mathematica 11. How do I type these with formatting at input? C[1] etc. still ...
1
vote
0answers
68 views

Using Experimental`OptimizeExpression for expression optimization

I am trying to optimize the following expression (example only) expr = Normal[Series[(1 - y - 2 z)^-2, {z, 0, 3}]] whose output becomes ...
9
votes
1answer
793 views

How to enter a nuclear reaction?

Sometimes the simplest things are the most difficult, I need to make a presentation, and I thought to do it in Mathematica, I wanted to do a demonstration too, well...this is the Rutherford's equation ...
0
votes
1answer
96 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
89 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
100 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
97 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
39 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
35 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
91 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
64 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
53 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
97 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
96 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
37 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
75 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 ...

1
2 3 4 5
15