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

Do you know any (Have you any) CheatSheet (not neccessarily of Mathematica) created with Mathematica? [closed]

Any CheatSheet created with Mathematica?
4
votes
4answers
195 views

Is there an easy way to copy a TableForm column and convert it into a vector?

Is there an easy way to take a column output from a TableForm command, like this: ...
2
votes
1answer
48 views

hiding input cells in presentations [duplicate]

I notice that presentations have the input cells (the ones with code) often hidden. Specifically in slide shows. This seems like a pretty basic question, but I can't seem to find out how to do this. ...
2
votes
0answers
27 views

Removing function arguments from expressions with derivatives

( This question is basically the opposite of this one: Variable dependency...easy one ) I would like to be able to output expressions in Mathematica that look more like pen-and-paper math. In ...
0
votes
0answers
16 views

Partially activate a derivative

Is there a way to make an inactive derivative do some amount of simplification? For instance, say I have Inactive[D][{{f,g},{u,v}},x] I would like ...
3
votes
1answer
48 views

How can I let RegularExpression remove all colors from its regex-input string before processing it?

Regular expressions are a very powerful tool, but such expressions are often very cryptic. If you want to understand them, it is best to have colored pencils at hand to color-code the parts that ...
1
vote
0answers
30 views

Automatically export .nb to a package upon saving while preserving section headings

Is it possible to automatically export a .m package when I save my .nb as can be done using the option ...
1
vote
1answer
47 views

How to represent a subgraph of a directed graph as a LayeredGraph with EdgeWeights

The following code generates: The first element is a layered graph of the original system sam. The second element is a list of ...
1
vote
2answers
76 views

How to set a background color for a cell style via a command?

I want to set different background colors for various cell styles (e.g. Section, Text), so that whenever I choose a specific style for some cell in the notebook, it automatically gets colored ...
1
vote
1answer
45 views

Highlight text given String and String-Pattern

given a String: string = "the cat is on the mat" and given a String-Pattern ...
2
votes
0answers
29 views

How do I create a vertical RadioButtonBar in FormObject?

RadioButtonBar has an option Appearance->"Vertical". But I am using RadioButtonBar in a FormObject(basically to create multiple-choice questions), and ...
3
votes
1answer
129 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 ...
1
vote
0answers
32 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
145 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
35 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
101 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
49 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
18 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
113 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 ...
1
vote
1answer
42 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
34 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
62 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
56 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
43 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
42 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
52 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
239 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
43 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
47 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
63 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
293 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
1answer
72 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
43 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
68 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
43 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
58 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
75 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
39 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
73 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
78 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
800 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
101 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
121 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
2 3 4 5
15