Questions tagged [text-formatting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
91 views

Rotating text in the Epilog of a plot results in distortion

I want to rotate text in a plot. When I rotate by 90 degrees, or 180, it's perfectly OK. But if I want to rotate to 60 or 45 degrees, then the text appears distorted (see example below). How can I fix ...
lia's user avatar
  • 307
2 votes
1 answer
104 views

How to write mixed fraction in text cell?

I could not find any especial typesetting for mixed fractions in Pallets. In text cell, when I put fraction $\frac{1}{2}$ and after put $5%$ in front of it it automatically becomes $5 * \frac{1}{2}$. ...
vasili111's user avatar
  • 1,215
2 votes
0 answers
113 views

Making text in graphics behave like other graphics when resizing/redisplaying

I'm trying to create a lot of graphics that include boxes of (multi-sentence) text placed at particular coordinates, and I would really appreciate some help in wrestling control of the size of the ...
Greg Martin's user avatar
4 votes
0 answers
52 views

Confused how ShrinkToFit works with text

In Mathematica 13, I would like to have text displayed in a rectangular area (that will later be included in graphics), where the size of the rectangle needs to be set in advance. If there's too much ...
Greg Martin's user avatar
2 votes
1 answer
121 views

How to delete a word set in a text?

I have a setence: ...
SAC's user avatar
  • 1,335
0 votes
1 answer
43 views

Properly Format Vertical Bar with Supersubscript

I'm having trouble emulating the following (extra long) vertical bar format in a text cell: The closest I could get to in a text cell is: which doesn't look great; it's underlying code is ...
B flat's user avatar
  • 5,513
1 vote
1 answer
65 views

Enums in ONE text cell of a notebook?

Is it possible to have an enumeration as an integral part of a text cell, so that they all together form one cell? Reason for this question: I would like to have a text cell (e.g. for a theorem) and ...
JJJanezic's user avatar
  • 277
0 votes
1 answer
54 views

Dynamically highlighting all substrings

I want to dynamically highlight all substrings that are equal to selected substring inside string str. Also I want the string str...
azerbajdzan's user avatar
  • 13.7k
2 votes
1 answer
66 views

create string for string seen in FullForm

Can we create a string for a string seen in FullForm ? This question is hard to explain/understand with just words. So explain with an example : Can you create a function ...
imida k's user avatar
  • 3,965
1 vote
1 answer
84 views

Making text larger without changing size of superscript?

I have the following plot: ...
tardigrade's user avatar
2 votes
0 answers
49 views

Stylesheet Directives for DisplayFormular overwritten?

I'm trying to change the font of DisplayFormula, DisplayFormulaNumbered and InlineFormula in my stylesheet. So in the options inspector of the stylesheet under ...
kienappel's user avatar
  • 421
1 vote
1 answer
138 views

Style changes to Text while I want to be Input

I do know what happened to my Mathematica. I frequently have to change the style from Text to Input to write codes. How I can re-change this unwanted issue?
Ali's user avatar
  • 131
1 vote
1 answer
44 views

Buttons too small for content

When I try to display buttons with long content in a multicolumn the text sometimes gets cut off. Like this: ...
AccidentalTaylorExpansion's user avatar
2 votes
0 answers
141 views

Find the best place to overlay text on an image?

I need to put text over a background image to make a nice looking banner. In order to find the best place to put it, I'd like to know the "focus points" of the image (basically the centers ...
user5601's user avatar
  • 3,613
4 votes
2 answers
137 views

Adapt size of brackets in text mode

In text mode, i.e. characters enclosed by " ", brackets do not adapt to the content. How can I achieve this? Actually I want to write a text that includes formulas. Without " " the ...
granular_bastard's user avatar
1 vote
1 answer
124 views

How can I get matrices and text to show up in the same table with MatrixForm?

I'd like to be able to display matrices in the usual written MatrixForm in a table alongside text (or anything that isn't a matrix). Here is an example: ...
KyCygni's user avatar
  • 83
0 votes
1 answer
62 views

How to Set Text Format by User-Defined Function with Input as String

I have simple but annoying problem here. I guess it occurs to many Mathematica users. The thing is that I wish to define a function to format the text in Mathematica. Yet, I don't know whether it is ...
Yuko's user avatar
  • 23
3 votes
1 answer
268 views

Does "align on alignment marker" work in Mathematica 12.3

In Mathematica 12.1 (and previous versions), you can insert a cell of style DisplayFormula into a notebook, using ...
Leon Avery's user avatar
  • 1,332
0 votes
0 answers
81 views

Print[] text in the style of Message[]

I would like to imitate the aesthetic style of Message[] text, but using Print[], and customising the colour. The output I ...
Anti Earth's user avatar
  • 1,171
1 vote
0 answers
223 views

Line spacing when creating new line

I have a plot which has a legend where text occasionally needs two lines. While I'm able to adjust the space between labels using "Spacings" how can I change the line-spacing within a label ...
ChaSta's user avatar
  • 1,085
4 votes
1 answer
180 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 ...
mmaSpectator's user avatar
10 votes
2 answers
320 views

Inline TeX Input renders wrong characters / symbols

Bug introduced in 12.2, fixed in 13.0. As you may know, you can write TeX within a cell with CTR+$ and press ...
AOx0's user avatar
  • 141
5 votes
1 answer
161 views

Grid or TextGrid constant width cells

I am having problems with white spaces in lists displayed in Grid. The problem is that white spaces have less height and width compared to cells that contain text. I also tried none, None, None[], ...
acacia's user avatar
  • 389
1 vote
1 answer
78 views

Grid questions: text-wrapping / copying and pasting expressions

I want to make a list of functions like this: ...
Richard Burke-Ward's user avatar
6 votes
0 answers
867 views

Vector arrow notation in Mathematica

I want a fast way to type vectors in Text boxes like this: $\vec a$ I can do this manually with ctrl+7+"-> " which creates this ...
Rainb's user avatar
  • 295
21 votes
4 answers
549 views

Find best region to put text onto image

Given an image upon which you want to inset text, the question arises: What is the best sub-region to place text? For example, given a background image I want to find the rectangle in the image (...
M.R.'s user avatar
  • 31.4k
1 vote
0 answers
34 views

font family in text cells keeps reverting to unwanted default

I'm using Mma 10 under macOS Sierra to write exam questions for a calculus class. This involves writing a fair bit of text, with interspersed symbols and equations. The annoying problem is that even ...
Dushan Mitrovich's user avatar
2 votes
0 answers
48 views

How to add a Checkbox into a text cell? [duplicate]

Before working in my code I wrote tests on a textcell . I want to add a checkbox at the end of each sentence to track my progress. So, I will checkbox if the program pass. How to add a Checkbox into ...
Diego Olvera's user avatar
5 votes
0 answers
61 views

How to force a desired numeration of equations in Book/Monograph StyleSheet?

I am writing a text in the MMA > Format > StyleSheet > Book > Monograph StyleSheet. I have a problem with the automatic numeration of "EquationNumbered" cells. ...
Alexei Boulbitch's user avatar