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

learn more… | top users | synonyms

2
votes
1answer
359 views

How to export figures with normal spacing in texts?

My OS is Ubuntu 14.04, and I use MMA 10. I export a figure ploted in MMA to a pdf file and then import the pdf in Latex, here is the sreenshot As you can see, the spacing in the text is odd. But ...
4
votes
1answer
357 views

problem exporting eps figures since mathematica 10

I am having trouble when exporting eps figures since I have upgraded to mathematica 10.0 in linux. Basically the text in the frame label and in the frameticks come out bad. The letters are much to ...
0
votes
0answers
13 views

How to calculate an accurate estimated reading time of text? [migrated]

I suppose the calculation should not be done by only two factors (average reading speed/words per minute, and word count). But at least by a third parameter, that in my opinion should measure the ...
2
votes
1answer
62 views

Using Mathematica to batch-produce text files

I need to make a bunch of plaintext files, all of which differ only in a single parameter. The text I want to "copy" or "batch produce" is a little bit complex, since it contains quoted areas and ...
2
votes
1answer
42 views

Export of all notebook files as text files

I want to export all my notebook files located in a root directory as text files. Below is a simple code that I use. Ho can I export "only" the necessary text content of each notebook file? ...
28
votes
1answer
337 views

How to speed up TextJustification in Mathematica 10

Based on this question: - Version 7 print environment - I set up two 10 page test documents in version 7.0.1 and version 10.1. The version 7 document exported to PDF in 4.18 seconds whereas the ...
12
votes
1answer
129 views

How to type text with an underbrace underneath it like: $\underbrace{g…g}_{n-times}$?

I want to use the underbrace "esc u{ esc" but have it placed underneath text. Like $$\underbrace{g...g}_{n-times}$$ in a mathematica text cell. Is it possible? Thanks
2
votes
1answer
106 views

Problem with deleting words from text [closed]

The task I need to do is to import a text book from here http://www.gutenberg.org/cache/epub/36/pg36.txt, then drop the last 20000 words from it and determine how many times the remaining words occur. ...
23
votes
2answers
6k views

How to import all files of a folder at once?

I know how to import one textfile by calling its name filestring = Import["myfile.tex", "Text"]; Then "filestring" is a string with the myfile content. How do ...
9
votes
2answers
482 views

Convert quoted printable aka PrintableASCII characters to UTF-8

I have several .eml email files to import. Some of them were saved as quoted-printable 7-bit encoded. I skipped through the Mathematica documentation and found ...
6
votes
1answer
87 views

Wordcloud creates a messy image

I'm trying to use Wordcloud built in function (I'm using v10.3.0.0) but the result is not good. I'm using a list with expressions and respective weights: ...
3
votes
1answer
31 views

Skipping commented in a stream from OpenRead

Is there a solution to skip comments in text files that are imported with OpenRead? I know there are solutions for Importand ...
4
votes
2answers
193 views

In a list, exclude words that use too many specific letters

Trying to re-rwite for clarity. Referring to my previous lists: I would like to trim a dictionary so that all words that "consume" more than n letters "x" are ...
5
votes
1answer
35 views

How to specify the text size of a vertex index in a 3D mesh using Labeled

My code takes a list of {x, y, z} vertices and displays a convex hull with each vertex labeled by its index in the list. Here is a minimal working example of the ...
8
votes
1answer
92 views

WordCloud: can words' style and orientation be functions of words?

Function WordCloud can take such options as WordOrientation and ColorFunction. It is not ...
3
votes
1answer
60 views

How to align text to left and output to right, in manipulate?

I need to show a layer of information on a 3D graphics, inside a manipulate box. Currently, all the code is working great, except that the text should be aligned to the left, while the output numbers ...
0
votes
3answers
964 views

Why is Mathematica treating my text as input?

I have typed in some text input by using Alt-7 to convert everything into text, but why is text still evaluated? Or is there better way to make comments other than (* text here *), because in my text ...
15
votes
3answers
421 views

Highlighting pattern strings in a large text

I would like to apply Style to strings that are matched, for example, with one or more specified patterns or regular expressions, a string or a list of both, ...
1
vote
2answers
53 views

Superscript standalone text

How do I write a superscript text standalone, without implying power? E.g. ToExpression[25]<>"CNTRL+^oC" doesn't format well, italicizing o and leaving whitespace in-between the number and ...
3
votes
1answer
78 views

Finding all Spanish words with given vowel patterns

I'm trying to implement a function using DictionaryLookup that does the following: Uses a Spanish dictionary Lists and counts of all words where the 5 vowels ...
0
votes
0answers
41 views

How to make black text on white background [duplicate]

I have a Georgian black text on "dirty yellow" paper I want to make pdf, black text on white paper . I try I also try to like this... Can anyone help me? Sorry for my English. Thanks! ...
25
votes
2answers
949 views

Movable text on a curve

Having an arbitrary curve defined as InterpolatingFunction, what is the best way to place a text on this curve? The text generally has two rows, for example: ...
29
votes
5answers
2k views

How can I wrap text around a circle?

How can I wrap text around a circle? For example: the text in the sectors of this chord plot. Perhaps one could use FilledCurve[] and then apply a ...
6
votes
1answer
126 views

Finding quotations in a text

I actually deal with the problem of finding quotations (i.e. "this is a quotation") in larger texts of different languages, mostly German and English. Unfortunately there are several ways to fill text ...
8
votes
2answers
642 views

Rotated text in “plot” cannot be copied to MS Word

When I add some text to a simple plot with drawing tools, the text cannot be copied and pasted out with the graphic itself to Microsoft Word. Do you know how to copy the manually added text out to ...
6
votes
2answers
2k views

How to export results of an analysis in table format into MS word file

I'm working on a simulation study using Mathematica 8. At the end of the analysis I'll have a matrix of data containing my results (assume for three variables like x,y & z). I used these codes for ...
1
vote
1answer
79 views

Resources for bioinformatics or computational biology

I am looking for some textbooks/websites to learn applications of Mathematica to bioinformatics/computational biology. Searching on Amazon and Wolfram books section did not result in any direct hits. ...
24
votes
2answers
1k views

How do I extract the contents of a selected cell as plain text?

My aim is to extract the contents of an Input cells as plain text. Ideally I would like to be able to select one or more Input cells and press a button which would then extract the text from these ...
5
votes
3answers
190 views

DeleteStopwords in other languages?

I saw that in new version of Mathematica there is an interesting function: DeleteStopwords that deletes stopwords from a list of words, but this function is only ...
4
votes
3answers
97 views

How create text label of form “var = ”, var properly formatted

If I use z = 99; Row[{TraditionalForm@HoldForm[z == 1], z}] then as output I get a property formatted math expression $z = 199$. How do I accomplish the ...
2
votes
1answer
117 views

How to set up margins in Mathematica to write a paper

I'm trying to do a problem write-up for my quantum mechanics class and would like use Mathematica, since I'm going to be using matrix mechanics, and it seems like the best way to write a lot of ...
2
votes
2answers
125 views
0
votes
1answer
38 views

Why does WordStem return different results for “abacus” and “abacuses”?

I just noticed the following: WordStem["abacus"] (* abacu *) WordStem["abacuses"] (* abacus *) WordStem["cactus"] (* cactu *) WordStem["cactuses"] (* cactus *) ...
4
votes
2answers
144 views

Printing every other line from input text

I am trying to do some text manipulation in Mathematica. After importing a text file (in.txt) as a string, how would you then output every other line? In the ...
1
vote
1answer
94 views

How hard is it to export numbers that can be used in other programs? [duplicate]

I am calculating a few lists of values that I have in arrays. I want to export these into a tab-delimited text file that I can import into other programs for analysis, plotting and so on but I am ...
2
votes
1answer
59 views

Import tabular text data

I have a text file created with a bash script I wanted to read the data avoiding the first line. I have written few dirty codes, but I wondered if anybody can do it in fewest possible nice one ...
6
votes
1answer
100 views

Searching for literal strings with TextSearch

The documentation indicates that TextSearch can be used to look for a "literal string" inside documents, but it appears Mathematica may be applying a regex-style ...
3
votes
2answers
51 views

How to get highlighted text from event

I want to do the following: Given a text in a Mathematica dynamic module "at runtime". If some text is selected with the cursor/mouse, after the mouse button release, get the selected text. Thank ...
6
votes
1answer
166 views

Using Padding with Text and Style

Suppose that I use: Text[Style["(1, 0, 0)", 12, Background -> White], {1, 1, 0}] How can I put a few points of padding around the text? Thanks to Jens: ...
1
vote
1answer
64 views

Show scientific form number in Epilog on a plot

I'd like to overlay a scientific form number on a ListPlot at a particular position. Simply using ...
11
votes
1answer
183 views

Accessing figure style (oldstyle or lining) of TrueType fonts

Most professional fonts come with at least two figure styles: old style (or text) figures and lining figures. In plots and most other figures I prefer to use lining figures. This is no problem with ...
25
votes
3answers
1k views

Is there a way to outline text?

If I have: Graphics[ {Red, EdgeForm[Directive[White, Thick]], Inset[Style[Text@"Hi!", 44], {0, 0}]}, Background -> Black ] I unfortunately get: ...
1
vote
2answers
204 views

Plotting data from multiple text files

I'm new to mathematica and stack exchange, so any help would be appreciated. I want to plot a bunch of data from text files that contain a lot of extraneous data. I have a hundred files with different ...
3
votes
2answers
113 views

How to show and hide text by a button

I'm trying to implement a button that can show and hide output text in a panel/tab, but I can't find a specific command to do that. I tried StringReplace, but it doesn't work for me.
17
votes
2answers
408 views

Parenthesize what I have highlighted

I want to highlight a piece of equation, click a button and have that part taken into parentheses.
7
votes
1answer
189 views

Unicode beyond Basic Multilingual Plane

String manipulation takes a dive when characters beyond \:FFFF are used e.g. Mathematical Alphanumeric Symbols. The characters display fine but doing string ...
2
votes
0answers
23 views

How to make lines not wrapping in text-mode Mathematica? [duplicate]

When running Mathematica from Unix command line, i.e. pure text mode, the lines wrap at about 70 pr 80 characters, creating lots of visual clutter. How do I set it so that any outputs will not wrap ...
3
votes
2answers
156 views

Alignement of text

I adopted the following clever code from Mr. Wizard (see here ). HoldForm[+##] & @@ RandomInteger[100, 2] I want to prepare a practising table of addition ...