Skip to main content

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

Apply an equation based on two sets with different indexes

Apply an equation based on two sets with different indexes Simple example If I have the following elements in the form of two sets with different indexes: $m=\{m_1,m_2,m_3,m_4,m_5\}=\{1,2,2,2,1\}$ $p=\...
Emad kareem's user avatar
0 votes
0 answers
38 views

Trying to get rid of cell and notebook (?) dingbats from ages ago

Years ago, I must have changed my stylesheet or something and put in clubs (the card suit) as cell dingbats. I'd like to get rid of them. I can turn them off manually, but the change does stick, and I ...
thejacksonjive's user avatar
1 vote
0 answers
74 views

How to see fraction line clearly in Windows Mathematica 14.0.0?

I just downloaded Mathematica 14.0.0 trial version on Windows 11. But the "horizontal fraction line" is hardly visible in the output on my screen. An example is shown below. I couldn't find ...
Zack Fisher's user avatar
3 votes
2 answers
159 views

How to typeset a key combination in Mathematica notebook?

I'm writing a tech note in Mathematica, and would like to include some key combination shortcuts. For example, Ctrl+/ for entering fractions. How do I typeset key combinations so that they look like ...
nflswsykimi's user avatar
1 vote
1 answer
74 views

Typing Fractions in Wolfram Cloud

Apologies if this is the wrong place, but this (minor) QoL issue is really bugging me and I can't find an answer anywhere. When using the desktop version of Mathematica, I can enter the fraction $\...
ScienceSnake's user avatar
2 votes
2 answers
61 views

How to prevent Dataset to format list values?

How to prevent Dataset to format my values automatically? I prefer the original list format as it takes much less space than the grid format. As you can see from ...
István Zachar's user avatar
0 votes
0 answers
26 views

AlignmentMarker in GridBox inconsistently inserts unwanted indention in the displayed column

"14.0.0 for Microsoft Windows (64-bit) (December 13, 2023)" The screen capture shows the same column of expressions with the exception that the second version has a logical and symbol ...
Steven Thomas Hatton's user avatar
2 votes
0 answers
44 views

Create custom Code like Cell

I like the formatting for Code and would like to use it for all my input. However, I want to be able to have both Initialization and non-initialization cells and I'...
Kvothe's user avatar
  • 4,591
3 votes
1 answer
92 views

Defining an output format that doesn't break Ctrl+Shift+I

I'm used to pressing Ctrl+Shift+I (or N if I want a shorter form) to reformat my input cells in a nicer way after editing them, e.g., to remove unnecessary parentheses, add or remove spaces as needed, ...
Najib Idrissi's user avatar
2 votes
1 answer
109 views

Outer function for nested list

I have the following routine where I build a pair of function name lists {Flist, Klist} and 1D argument list {a1,a2,a3,a4,a5}: <...
seva011's user avatar
  • 336
1 vote
1 answer
61 views

Define certain argument in functions which depend on several arguments and built in a list

I got confused working with list of functions of two variables. I construct few lists of functions, one is vector of functions List1 and another is 2D list of ...
seva011's user avatar
  • 336
3 votes
0 answers
184 views

How to Create Custom Equation Numbers?

I know how to number equations using the DisplayFormulaNumbered style. This creates equation numbers on the right-hand margin using an automatic counter. For ...
Pablo A Perez-Fernandez's user avatar
5 votes
2 answers
134 views

Syntax error when running file created with Save which contains backslashes

I am doing a nested integration. So far the result was successfully saved with Save["filename.wl", IntOutput] and looked as following: ...
seva011's user avatar
  • 336
3 votes
0 answers
41 views

Is it possible to do a round trip conversion between notebooks (.nb) and scripts or packages (.m, .wl)

Is it possible to convert a .nb notebook to a package and then back again to a .nb? I know that i can achieve something similar with save as... With this option, I am ok with the output being lost in ...
elbOlita's user avatar
  • 1,681
0 votes
1 answer
52 views

Build 2D lists of functions and variables in different combinations

Can someone give examples on how to build 2D Lists of function and expressions by the given vectors? I have the following: V1={a,b,c}; V2={1,2,3}; V3={x1,x2,x3}; ...
seva011's user avatar
  • 336
0 votes
0 answers
49 views

How to convert RowBoxes into list of math expressions?

I have following RowBox which represents Step By Step solution of undefined integral ...
nnarek's user avatar
  • 1
1 vote
0 answers
30 views

Changing mouse over grid behavior

How to achieve that mouse over Grid is always an arrow like we see on first image (when mouse is over an item of the grid) and never the the shape we see in the ...
azerbajdzan's user avatar
  • 20.1k
0 votes
0 answers
23 views

How to change the font of special characters

I'd like to change the font of special and Greek characters to those provided by Latin Modern Math (as seen in $\LaTeX$), but I haven't been able to find it in a file format supported by Mathematica. ...
finn's user avatar
  • 1
6 votes
2 answers
298 views

Recreate image with GraphicsGrid

I am trying to recreate this image from a book: Using GraphicsGrid I got this: Code: ...
Rodrigo's user avatar
  • 1,534
2 votes
1 answer
42 views

Intercepting typos/misstyped symbols and automatically correcting them in the FrontEnd

I often mistype Print[] as PRint[] and Remove[] as REmove[]. I was wondering if its possible to use $NewSymbol to intercept ...
Tapiocaweasel's user avatar
2 votes
1 answer
108 views

Make Framed expressions fill Grid cells

Given the following example, how can I make each Framed object to fill its Grid cell both vertically and horizontally? Obviously,...
István Zachar's user avatar
1 vote
0 answers
36 views

Why does Mathematica change my type style when using the control button to create expressions?

When I am typing in a text line in Mathematica, if I use a control hotkey, such as Ctrl+/ for creating a fraction or Ctrl+6 for a superscript, the item I create is highlighted in a yellow box and the ...
ncharness's user avatar
8 votes
1 answer
190 views

How to increase height of square brackets in legend label?

I'd like the square brackets to be taller in the following legend label, so that they extend as high as the 6 in $10^6$. The most success I've had is by using MaTeX, but I'd prefer a built-in solution,...
WillG's user avatar
  • 980
6 votes
1 answer
126 views

Work around for subscripts and superscripts in text cells reverting to SuperScript[...]

Seemingly randomly nicely formatted superscripts and subscripts (e.g. to look like $f_1$) in math in text cells will revert to their long form e.g. Subscript[f, 1]. ...
Kvothe's user avatar
  • 4,591
2 votes
0 answers
89 views

Is there such a thing as a half-space or partial space in Mathematica?

My boss has asked me to use the font Calibri for a publication plot. I'm running Mathematica 9, which is quite an old version. In the following example plots using ...
Andrew's user avatar
  • 10.2k
2 votes
1 answer
87 views

FoxH function format implementation issue

I am trying to code a particular Fox-H function in Mathematica, $H_{2,2}^{2,0}\left(z\left| \begin{array}{c}(1,1),(1,\alpha)\\(1,1),(1,2)\\\end{array} \right.\right)$. I've been trying to use the ...
Math_fan_123's user avatar
4 votes
0 answers
32 views

How do I stop unwanted spaces in Mathematica cells styled as text?

Context: I am working in a Mathematica notebook (I am using 14.0, but the problem to be described was observed in earlier versions. At some time in the past, though, it was not happening.) Problem to ...
PaulCommentary's user avatar
2 votes
3 answers
327 views

Saving formatted code [closed]

I am writing some ODE notes with lots of pictures generated using Mathematica, and I'd like to include the code used to generate them. Currently I have a notebook where all the pictures are generated. ...
Mariano Suárez-Álvarez's user avatar
1 vote
0 answers
68 views

How to define additional 'OutputForm' formats?

I would like to define an additional OutputForm command such that, when applied to a long expression involving several variables (probably at different levels, ...
JuanC97's user avatar
  • 612
1 vote
2 answers
74 views

How to make a graphic fully display in Row (and possibly related constructs)?

My problem is likely fairly simple and possibly relates to some preset behaviour of how items are displayed. Or maybe I just do not understand something basic, I am no Mathematica expert, just casual ...
P.L.'s user avatar
  • 67
1 vote
1 answer
28 views

DateFormat textstring

The appearance of a DateObject can be controlled by DateFormat, e.g. "Language". Is it possible to extract the text string so that in Style it appears the same as normal text.
Hans W's user avatar
  • 73
1 vote
2 answers
118 views

TeXForm for bold symbols and cells

I would like to get the following equation in TeXForm Here y(t), G and F are vectors and are in bold. If I do TeXForm[HoldForm[y''[t] + G[y'[t], y[t]] == F[t]]] ...
Hugh's user avatar
  • 16.6k
0 votes
0 answers
74 views

Save inline math in packages

I can enter inline math with Ctrl+( in text cells, but saving this .wl file does not save the formatting. This can be seen by examining the source. How can I save this formatting? ...
qwr's user avatar
  • 433
2 votes
1 answer
59 views

Create by hand a formatted form of quantities

If I evaluate the following cell: Quantity["PlanckConstant"] I get as an output a very concise format of this quantity: Also, compare the legibility of ...
tush's user avatar
  • 375
4 votes
1 answer
194 views

How do I use \mathbf in an inline TeX cell?

I’m pretty new to Mathematica and I’m not sure how to get \mathbf working in inline TeX. I am using a ‘Text’ cell and clicking the ‘Insert TeX’ button (or doing ...
cherryblossom's user avatar
1 vote
1 answer
85 views

Extracting pattern from an equation

I have for example the following eqn $ j(\text{tl},0,1,1,0,0,0,1)'(s)+\frac{(d-4) j(\text{tl},0,1,1,0,0,0,1)}{2 s} $ I want to find out the pattern with the prime or the derivative, in this case ...
Tanmoy Pati's user avatar
5 votes
4 answers
467 views

How to display Latin Modern Math font correctly in Mathematica?

I just used Latin Modern Math font to display $\LaTeX$-like formulas in Mathematica. My expected effect is shown as follows: Using the following code: ...
lapcal's user avatar
  • 531
0 votes
0 answers
39 views

Turn string with () as function brackets into expression

I have a text file with an equation where all the brackets are formatted as (). For example I read in the equation 2*(Re(a)+Im(b)) as a string. Now I am wondering if I can make this into an expression ...
PhPanda's user avatar
  • 101
1 vote
0 answers
39 views

Message converts argument to string before formatting it

How to pass automatically, context-dependently formatted arguments to Message? Interestingly, StringForm correctly interprets ...
István Zachar's user avatar
0 votes
1 answer
258 views

How to set the default screen style environment to elegant code?

I want to set the default screen style environment to elegant code. How can I do this?
Peter Burbery's user avatar
2 votes
2 answers
134 views

Problem with LaTeX format

I am trying to write the following function via latex \begin{equation} u(x,t)=\begin{cases} \frac{x^2}{2}+(t-x) ,\quad 0<x<t \\ xt-\frac{t^2}{2}+sin(x-t),\quad x>t>0 \end{cases} \end{...
Athanasios Paraskevopoulos's user avatar
0 votes
1 answer
89 views

Formatting and Indentation of Comments

Is there a way to force/control indentation in a multiline comment within an INPUT CELL? I often end up with some random indentation like the following. I know if I move the comment to a different ...
OpticsMan's user avatar
  • 576
1 vote
1 answer
72 views

How to tell Mathematica to collapse all of its sections/subsections in one command?

Is there any command allowing one to collapse all the heading sections in Mathematica (each title content, each chapter, and so on)? I am interested not in the buttons combination, but rather in the ...
John Taylor's user avatar
  • 5,887
1 vote
2 answers
153 views

Associating a string variable with a numeric variable

There is a translation operation from a numeric variable to a string variable: a[i_, j_] := Symbol["a" <> ToString[i] <> ToString[j]] How ...
Mam Mam's user avatar
  • 1,883
2 votes
1 answer
79 views

Sequence of lists

Let's say I have the following table, y=40; b=Flatten[Table[{i, j}, {i, 1, 2.25, 1.25}, {j, y - 5, y - 8, -3}], 1] then c is equal to, ...
a019's user avatar
  • 867
2 votes
2 answers
46 views

Creating ChartLabels in scientific format over a range

I would like to shorten this repetitious code. Personally, I would save the labels in a separate variable and then just refer to the variable, like for example "ChartLabels -> mylabels". ...
Elias.Liu's user avatar
1 vote
0 answers
63 views

Trying to use SetOptions on Style to set some default plotting options

I want to set some default options for Style. I tried this: ...
Camillo's user avatar
  • 11
1 vote
2 answers
43 views

How to "unwrap" Panel from a list of strings?

I'm working with existing code that wraps a list in Panels. When I'm done with the portion needing Panel, how do I get just the list of strings back? Thank you! ...
user2933940's user avatar
1 vote
0 answers
42 views

How to make Mathematica treat Subscript[x, j] as a standalone variable? [duplicate]

When i use Replace[] or /., I find that Mathematica does not treat $x_{j}$(Subscript[x, j]) ...
Aerterliusi's user avatar
1 vote
0 answers
109 views

How get this kind of group opener?

Some notebooks of mine have Section (and Subsection) cells formatted like the following, so that clicking on the icon to the right of the Section's title opens the entire group of cells in that ...
murray's user avatar
  • 12k

1
2 3 4 5
18