Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [text]

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

2
votes
3answers
217 views

How correctly align text as graphics

When I try this: Framed@Graphics[{Text[ Style["Text", FontSize -> 50, Bold, Black, Background -> Green, FontFamily -> "Calibri"]]}] I get a ...
6
votes
1answer
102 views

Converting from (telephone) number to short English phrase

One way to memorize telephone numbers is to convert the number into a simple phrase in natural language (e.g., English) so that when dialing on a keypad one merely types out that word or phrase. Here ...
3
votes
2answers
71 views

Having Mathematica replace DOS line breaks with UNIX in files

Say I have a file named "Silly.tex" which has \r\n line breaks. Is there a way to get Mathematica to convert it to only have \n line breaks? You can find such a file with DOS line breaks at: https://...
1
vote
1answer
77 views

How to import complex .txt file to matrix in MMA for user defined keywords / database?

I am thinking about how can we import complex .txt file (Ansys/Abaqus) to MMA for the selected database? For example: txt file (input file): ...
2
votes
1answer
42 views

Manipulate does not work with random and text display

I would like to do a small demonstration of Monte Carlo integration. However, When I generated the plot code, it does not work properly. ...
4
votes
2answers
121 views

How do I treat the results of Fit as text?

I would like to take the results of Fit (or any FittedModel) and treat them as text, including making substitutions for the ...
14
votes
4answers
2k views

What stopwords list is the Wolfram language using?

The documentation of DeleteStopwords only says that it "uses a standard, built-in list of stopwords". So what is it exactly? Update Now that it is said "standard"...
0
votes
1answer
47 views

Joining strings in FrameLabel [duplicate]

I want the $ x $-axis of this plot to be $ \tau/\alpha_e $ without the "+", but I'm unable to do this without Mathematica putting the $ \alpha_e $ to the front of the string. ...
3
votes
2answers
120 views

Keyboard Shortcut to “Align Center” a Text Cell

I'm attempting to create a keyboard shortcut to center the contents of a text cell exactly as clicking "Align Center" accomplishes in the Format Menu. As far as I can tell, there is no frontendtoken ...
0
votes
0answers
25 views

How to do surgery on FeatureExtraction on text?

I have a text data, which is a list of different sentences. I used below for example:- ...
2
votes
1answer
38 views

Import and rearrange txt file

I have a txt file like this: A B C 400 2 3 2 1 8 Now I would like to import the txt file and write it all on one line instead of in columns, so like that: <...
1
vote
1answer
34 views

Exporting Table format and strings not enclosed in quotes

The help file for format/Table says very clearly "By default, Export delimits text fields containing the field separator with double-quote characters." A simple ...
8
votes
0answers
102 views

How to run GrammarApply offline?

It is a question regarding formal grammar. I have a grammar rule addition as below:- ...
1
vote
1answer
83 views

TeXForm as PlotLabels (Configuring GhostScript?)

Update ConfigureMaTeX[ "pdfLaTeX" -> "C:\\Program Files\\MiKTeX 2.9\\miktex\\bin\\x64", "Ghostscript" -> "C:\\Program Files\\gs\\gs9.23\\bin" ] ...
3
votes
1answer
65 views

Direction of text when labelling graphs

On a related question to this, I am now experimenting the labelling with the circle points, ...
0
votes
0answers
16 views

How to locate the data behind WordFrequencyData?

I would like to do some historical textual analysis. For example, the following codes with WordFrequencyData and TimeSeries ...
5
votes
2answers
107 views

Add several text files into one text file using Mathematica

I have twenty data files each contains 1000 lines ("a1.txt, a2.txt....a20.txt"). Now I want to add all these files to a single file and keep the line sequence as followed by the input files (first ...
3
votes
1answer
114 views

Splitting a text file into smaller text files by line numbers using Mathematica

Is it possible to split a large text file into smaller files by line numbers in Mathematica?
4
votes
1answer
133 views

Can not edit font on drawing tool

I am simply trying to add some text to a plot via the drawing tool, but it seems the text style options are fixed at some default setting and will not change. You can see in the following picture that ...
6
votes
3answers
164 views

Working with text in 3D graphics

I'd like to add text to the surfaces of a cuboid. I have tried Text and Epilog, and neither of them worked. Consider the ...
2
votes
1answer
47 views

Can MaTeX objects scale the same way as Text objects?

When one uses Text[Style["Hi", FontSize -> Scaled[.1]]] the text will resize proportional with Imagesize? Is there a way ...
0
votes
2answers
41 views

Looking for specific data in .txt file

I've the following code: Import["test.txt"] And it gives me: 1,10 2,20 3,30 4,40 5,50 6,60 7,70 8,80 9,90 10,100 11,110 12,120 13,130 14,140 15,...
4
votes
1answer
62 views

Searching for substrings in large text document?

I have a large text file that I need to search for certain substrings and I would like to use the speed-up that TextSearch gives. Unfortunately, with ...
6
votes
6answers
340 views

Simple method to sort versions

The goal is to sort long lists of versions. For example: Input ...
0
votes
1answer
29 views

Searching in a .txt file for a specific time

I've the following code: Import["hoi1.txt"] And it gives me: "(time,voltage,current,power) (1,10,5,10*5) (2,20,6,20*6) (3,30,7,30*7) (4,40,8,40*8) (...
3
votes
1answer
39 views

Dynamic Text depending on output of a manipulate

So I am looking for a way to calculate and show dynamically as text the x-Axis-value of the Intercept of those two curves. ...
0
votes
1answer
43 views

how to write text (name) for the plot (figure)

I have a density plot and I need to put a name (Fig 1) below the figure. ...
2
votes
2answers
80 views

Searching words with the five vowels

after looking for a long time manually words in Spanish that have the five vowels in any order, for example Republicano, murcielago, superiora, etc; I'm bored and without success. I thought that ...
3
votes
1answer
70 views

Scrollbar in DialogInput

Writing: ...
4
votes
0answers
70 views

How to highlight text with callouts?

This screenshot is from a presentation by Brian Frezza at Wolfram Data Summit 2014. In what clearly is a Mathematica notebook. How is the text highlighted with the callouts? Some sample text (...
4
votes
0answers
240 views

Using Machine Learning techniques for text-analysis

I am analysing a bunch of tweets and I want to understand which political party the authors support. Let say, for example that I have five parties labelled by a number: ...
1
vote
1answer
50 views

How can I create a word consisting of sequence of letters which produce the word?

I found today at the web site of the Wolfram Programming Lab the following Code which can create a Pi symbol filled with the digits of Pi: ...
3
votes
1answer
59 views

Long text is cropped in Graphics

I want to convert a text slogan into graphic, and then add to an image. However, the long text is cropped. How to fix? Here is the code: ...
8
votes
3answers
216 views

How can I standardize the coordinate origin for exported/imported outlines?

There is a widely known trick of converting letters to curves: ...
3
votes
0answers
57 views

Extracting names (surname & family name) from unstructured text files

This question is about finding names of people in a text without knowing these people. There are some rules we can use to detecting names in a text A name consist always of two or more words (...
1
vote
1answer
139 views

Changing Text with Previous Quotation Marks

I defined some variables as follows: altura=15;comprimento=45;largura=92; I have a TXT file that comes formatted from another application: ...
0
votes
1answer
75 views

What is the problem with the “|” character inside of strings?

When the "|" character appears inside of a string containing linear box syntax, SyntaxQ returns ...
0
votes
0answers
82 views

Text-analysis: Import CSV without stringquotes

I have a large amount of text-files. I want to compare these text-files based on common 'words'. I export the output of my analysis as a CSV file. When I import the same file I get all seperate words ...
1
vote
0answers
77 views

How to locate a text string in a picture?

We can use TextRecognize to recognize lines of text and their corresponding bounding boxes. For the text in the picture below, how can we detect the bounding boxs of the text in the picture. The ...
16
votes
1answer
544 views

Automatic edX Pdf Handout creator

I am trying to make an automatic handout creator for my courses on edX. It took me a long time to do it... (If you don't know edX: https://www.edx.org/) I wrote a program that adds to each slide ...
2
votes
2answers
104 views

Changing LabelingFunction Color

Want to set point text label colors to match actual points. Should be obvious but... Workaround is to change ALL label coloring but this is not desired. Would like to have black axis labels. Also ...
0
votes
1answer
44 views

Writing second power of numerator in PlotLabel

I want to label my plot. I have done some part of it till now: ...
2
votes
3answers
273 views

How to exclude non-western characters from a text file?

I would like to exclude non-western characters and words from a text file. I do not know how to insert the text file here, but I suppose you can do without it. All your suggestions will be much ...
0
votes
2answers
51 views

Graphics from text left justified

I need to create a Graphics object from text but it needs to be left justified. I can do this for a single text string: ...
0
votes
1answer
82 views

How do I control italicization of text in axes and frame labels?

How do I prevent my text from being italicized when I annotate it with additional glyphs? For example if I add a "hat" to a variable, z as in $\widehat z$, but ...
3
votes
1answer
407 views

Remove the blank lines in a text file

In a text file, there are several blank lines and how to remove all of them in a simple way ? ...
0
votes
1answer
62 views

How can I input this simple text file, process it, and export to another text file?

I will try to keep this example very specific and simple. Let us say I have a text file called file.txt, with path ...
2
votes
2answers
1k views

How to place PlotLabel inside the plot frame

I have the following plot: ...
1
vote
1answer
75 views

Color Shading Parts of an Output Expression - Is it Possible?

I have a Mma expression made with Print[...], e.g.: Now I want to give some explanations about some coefficients and for that purpose, I want to highlight e.g. coefficients a13 and a23 in light blue ...
18
votes
4answers
458 views

How to call Mathematica from $ \rm\LaTeX $?

The sagetex package for $ \rm\LaTeX $ allows you to embed Sage code into a $ \rm\LaTeX $ document, have that code evaluated during the ...