Questions tagged [text-formatting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
95 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
39 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,377
1 vote
1 answer
56 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
52 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
  • 7,044
2 votes
1 answer
65 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
  • 4,037
1 vote
1 answer
74 views

Making text larger without changing size of superscript?

I have the following plot: ...
tardigrade's user avatar
2 votes
0 answers
48 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
  • 411
1 vote
1 answer
100 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
43 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
137 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,561
4 votes
2 answers
125 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
105 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
  • 73
0 votes
1 answer
57 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
260 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,312
0 votes
0 answers
74 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,151
1 vote
0 answers
186 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,023
4 votes
1 answer
139 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
288 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
153 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
  • 379
1 vote
1 answer
70 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
720 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
541 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
  • 31k
1 vote
0 answers
32 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