Skip to main content

Questions tagged [text]

Questions relating to working with textual information: textual analysis, data mining, etc.

Filter by
Sorted by
Tagged with
1 vote
1 answer
47 views

Position text in a plot with varying axis scales

I have the following plot: ...
Richard Burke-Ward's user avatar
0 votes
1 answer
130 views

LaTeX doesn't look like LaTeX [closed]

...
Algebear's user avatar
  • 133
0 votes
0 answers
54 views

How to preserve symbols under brackets?

Consider, e.g., a symbol =>. In Mathematica, it gets automatically converted into $\ge$. However, if I put the converted symbol inside the "" brackets (...
John Taylor's user avatar
  • 5,887
3 votes
3 answers
107 views

Extract doi from a text string

I have a large list with bibliometric information including the doi like this example: ...
M.A.'s user avatar
  • 731
2 votes
1 answer
168 views

How to get the output of evaluating in place and append the output to the place

I am trying to use MMA for some engineering calculations, and the text cell contains both descriptive text and mathematical formulas. The example is as follows: ...
Yao Li's user avatar
  • 111
2 votes
1 answer
85 views

Export Notebook as Text (in 13.3 &14)

What is the best way to export a notebook as readable plaintext - while preserving as much structure as possible? The motivation here is the need to bulk-ingest notebooks and chunk them (for use in ...
user5601's user avatar
  • 3,705
4 votes
2 answers
765 views

Largest integer between 1 and 1000 with no letter "n"

This problem is easy to solve logically - try it for fun if you want before you run the code and see the answer. ...
Vitaliy Kaurov's user avatar
0 votes
1 answer
70 views

Coloring text in Mathematica [closed]

Mathematica gives the possibility to write normal text as input in cells. One can use bold (ctrl+b) or italic (ctrl+i) for text, but can one color the text? For example writing some red words?
mattiav27's user avatar
  • 6,757
0 votes
0 answers
67 views

Problem extend the Text style

This question follows up on a previous question SelectionMove in Stylesheets that essentially asked to how to construct a new style that was the same as a "Text" paragraph except that the ...
Spencer Rugaber's user avatar
2 votes
0 answers
49 views

Bug in the alignment of text?

If I put text in a plot as an inset, the vertical alignment of the text is normally set to the mean line of text in general. It does not matter if one writes M or m the baseline will still be aligned, ...
mathematica_guy's user avatar
2 votes
0 answers
93 views

Scale text by adjusting its immediately surrounding frame

I want to ask if it is possible to scale text in Graphics by adjusting its immediately surrounding frame, not the whole frame. ...
imida k's user avatar
  • 4,315
1 vote
0 answers
41 views

Big FontSize produces empty result

Style[A, FontSize -> 540] (* A with FontSize 540*) Style[A, FontSize -> 541] (* Nothing*) I think FontSize 541 is not too big. Practically there may be a ...
imida k's user avatar
  • 4,315
1 vote
0 answers
42 views

Scalable text in Graphics [duplicate]

From my little experience, it seems impossible to scale a text in Graphics. In other words, text in Graphics is not scalable. ...
imida k's user avatar
  • 4,315
0 votes
1 answer
77 views

"Graphics" will cause text tilted

I feel Graphics will make text tilted. As ...
Y. zeng's user avatar
  • 567
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
0 votes
0 answers
80 views

How to export a specific csv file text?

I have a data set of text in string format as ...
SAC's user avatar
  • 1,335
1 vote
1 answer
80 views

Mathematica not finding correct font for some font variants

I am experiencing a puzzling behaviour when trying to use the font Fontin in Mathematica 12.1.1.0. If I attempt to use the regular variant of the font, Mathematica instead displays the small caps ...
JonatanBB's user avatar
2 votes
1 answer
127 views

How to delete a word set in a text?

I have a setence: ...
SAC's user avatar
  • 1,335
2 votes
2 answers
197 views

How to render text at a specific height in pixels?

I would like a way to create an image of text that is a specific height in pixels. In the following code, the text is sized to fit in the specified raster. Since there are five letters, we expect each ...
abwatson's user avatar
  • 1,919
4 votes
2 answers
411 views

Text symbols not exporting correctly to PDF [version 13.2]

I am using Mathematica 13.2 on Ubuntu. I was trying to reproduce a plot that I made using Mathematica 12, but text symbols seem to not export correctly to PDF. This issue seems to apply to all non-...
Arturo don Juan's user avatar
4 votes
1 answer
71 views

Using TextCases to identify prepositions

...
Syed's user avatar
  • 56k
6 votes
1 answer
233 views

Documentation Search : google-like (pokygon -> polygon)

If you search for "pokygon" in google.com, then google automatically fix error, and searches for "polygon". Like google.com, if you search for "pokygon" in mathematica (V ...
imida k's user avatar
  • 4,315
0 votes
0 answers
42 views

Plotting a list with variable(chemical formula, number)

I have a list like this List=((co2-Teo2,12),(Al2o3,15),(Ta2O5,16)); I want to plot the list so that the x axis I have the right format of chemical formula and have chemical formula in my plot legends. ...
parisa esmaili's user avatar
0 votes
1 answer
66 views

WriteString does not keep the input format for a^2 + b^3?

I have a series of expression which is added one by one, not all at once, to a file (OUT.nb). for some of them that has POWER format (a^2 + b^3 ), WriteString cannot write it correct. Also I tried ...
Azzurro94's user avatar
  • 499
1 vote
0 answers
109 views

Comparing two texts, looking for matching phrases

I would like to compare two human-language, user-supplied texts. Call them Text A and Text B. Each is the length of a fat novel, i.e., around 150,000 words. Is there a tool that can help me find all ...
du_toit's user avatar
  • 11
1 vote
0 answers
50 views

Listing textual entries of the form \[ ] [closed]

How do I create a full list of textual entries for symbols of the form \[Integral], \[Sum], and so on?
David G. Stork's user avatar
5 votes
2 answers
303 views

How stack text over an arrow

As part of a visualization of a mapping from a planar domain to another planar domain, I want to create a Row of the form ...
murray's user avatar
  • 12k
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
  • 4,315
3 votes
2 answers
66 views

GraphicsColumn - Multiline text isn't adapting based on overall column size

I'm trying to use Graphics Column to add a label under my plots. Eventually these individual columns will be combined in a grid, and I want the height of each plot to be the same so I can compare data ...
user2933940's user avatar
0 votes
0 answers
61 views

I Can't "Don't word wrap"

OS : windows 10 / Mathematica version : 12.2 Close all mathematica process and start new mathematica.exe See what is checked in Menubar - Format - Word Wrapping : ...
imida k's user avatar
  • 4,315
5 votes
0 answers
137 views

Characters and prompt are offset when typing in a text cell using MM13.1

I noticed on my system (Windows 10 and MM13.1) that when I create a text cell (ALT 7) the longer my sentence is the more offset the cursor appears from where I am. When using the left arrow to go back ...
Lou's user avatar
  • 3,914
5 votes
1 answer
101 views

How to get the Echo >> symbol?

What is the character code or way to get/type the >> symbol used when echoing something?
user13892's user avatar
  • 9,523
2 votes
3 answers
724 views

Divide string into a sublist of sentence with the maximum number of character

Context: I have a long article (on Wordpress). And I'm using Google Translate API (v2) to translate this article. This article has about 300 000 characters. However, due to the limit of Google ...
Nam Nguyen's user avatar
  • 1,761
1 vote
2 answers
140 views

Change style of the above cell

How can I change the style of a given cell, by writing some code on the cell directly below the cell and executing it? ...
imida k's user avatar
  • 4,315
2 votes
1 answer
146 views

Text cell numbering

For input cells and output cells, there are automatic,natural numbering. In[1] 2+2 Out[1] 4 I mean In[1] and Out...
imida k's user avatar
  • 4,315
0 votes
0 answers
104 views

SubscriptBox Text font in Graphics[Text[Style["..."]]]

In this code in Graphics and Text Style, Graphics[Text[ Style["!(N_b)\n U(1!(*SubscriptBox[()), (V)])"]]] I obtain the $V$ in italic font, but I wanted ...
wonderich's user avatar
  • 923
4 votes
2 answers
290 views

Computing maximal FontSize to fill a rectangle?

I'd like to compute the proper FontSize for a given piece of text to fill a given Rectangle. ...
user5601's user avatar
  • 3,705
-1 votes
1 answer
67 views

Identifying capitalized words in a text analysis [closed]

I would like to be able to identify those sentences that have a capitalized word somethere OTHER than the beginning of the sentence: Be it so, then I answer'd, I too haughty Shade also sing war, and a ...
gotwals's user avatar
  • 127
1 vote
1 answer
75 views

Can WordFrequencyData run faster?

I want the WordFrequencyData of the whole WordList[] However it takes too long to get the result. ...
Patchouli Nine's user avatar
3 votes
0 answers
122 views

FeatureExtraction[] for text -- to normalize text or not?

The title pretty much captures my question. When I use FeatureExtraction[] for text, should I normalize text before parsing it through ...
dearN's user avatar
  • 5,351
1 vote
0 answers
47 views

Finding a root word

w = "successfully"; {DictionaryWordQ[#], WordDefinition[#], PartOfSpeech[#], WordData[#]} &@w ...
Syed's user avatar
  • 56k
0 votes
1 answer
101 views

Go to line Out[422] in a current working .nb

When working myfile.nb with mathematica, I don't know how to search or goto the lines In[529] or Out[422], in mathematica. Ctrl+...
imida k's user avatar
  • 4,315
5 votes
2 answers
228 views

Align paragraph text to left (not just first line)

The following looks wrong to me, how can I fix the alignment for the whole paragraph? ...
user5601's user avatar
  • 3,705
3 votes
1 answer
74 views

What is the function/purpose of \!\(...\) in Graphics?

In Graphics, we input the Text form "\!\(10m prize\)", but it outputs "10 m ...
wonderich's user avatar
  • 923
1 vote
0 answers
144 views

How to label a contour in ContourPlot with arbitrary text

I want to put a label on a contour in the ContourPlot with a text, but I can not do it. I have read all questions about this issue in the slack, but I could not find an answer to it. Let say, I want ...
Mehrdad's user avatar
  • 111
4 votes
1 answer
105 views

Antialiasing doesn't work for small text, when using Polygons with holes

I have a weird problem with antialiasing of small text and Polygons. If I use Polygon with holes poly1->poly2, Antialiasing doesn't work, although I used ...
Christoph T.'s user avatar
5 votes
1 answer
41 views

Importing textual data removes some letters

I have the following file TSV file p.txt containing a single line of 3 values: "22p" "22o" "22u"...
tobalt's user avatar
  • 357
4 votes
1 answer
163 views

Importing text generates whitespaces between every character

I have a TSV file with string data in it that I want to import. While the TSV format is correctly parsed into a Mathematica table format using ...
tobalt's user avatar
  • 357
2 votes
0 answers
147 views

How to write on a surface?

How do I include text on a curved surface? For example, and as a starting point, how can I reproduce the following image I've seen some examples where people geometrically described letters to do ...
sam wolfe's user avatar
  • 4,903
3 votes
2 answers
255 views

Remove words from a string that contain special characters

I have a string like this: string="there is a humble-bee in Hanna's garden"; Now I want to exclude those words that contain "-" and "'"...
M.A.'s user avatar
  • 731

1
2 3 4 5
8