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

learn more… | top users | synonyms

2
votes
2answers
252 views

Manipulating spacing in a text object

I want to visually illustrate substitution in a mathematical expression. This is an example: ...
2
votes
3answers
148 views

Remove pieces of a text file

I have imported a text file as a Table with testpbkg = Import["unweighted_events.lhe", "Table"] The file looks like this. I want just to select the text ...
2
votes
1answer
148 views

Complete and utter nonsense with Overlay and Graphics

I'm trying to simply overlay some text and a scalebar onto an image. I'm getting (what I perceive to be) completely ridiculous results while trying to do this. Here's the code: ...
2
votes
2answers
1k views
2
votes
1answer
119 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
1answer
70 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
55 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? ...
2
votes
2answers
1k views

Placing text within a plot

I want to place text within a plot. The text is always centered relative to the coordinates. How can I left-align or right-align the text relative to the coordinates? For example: ...
2
votes
3answers
611 views

Outputting a fraction on one line with an oblique division sign

How can I make Mathematica output a fraction as x/2 as opposed to the x on top with a horizontal bar and ...
2
votes
1answer
201 views

diff-able text-only notebooks?

I would like to save my Mathematica notebooks as plain-text documents, so that I can keep them under git version control. I thought that ...
2
votes
1answer
162 views

Issues with a Counter that is tallying term appearances

I am working with an array of textfiles, trying to see how frequent certain terms are. However, I am running into some difficulty with my running counts of bigram frequency. Here is a snippet of my ...
2
votes
1answer
51 views

Move underlined text from Word to Mathematica

I've have a Word document that I'd like to import to Mathematica. I could just copy and paste, but when I do, I lose the underlined text. Is there a way to get MS Word text into Mathematica while ...
2
votes
2answers
138 views

How to make the label text to negate-color against background

This is current solution from a friend: ...
2
votes
1answer
64 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 ...
2
votes
1answer
250 views

Some Characters From Custom Font Do Not Show Up

I'm using version 8.0.4.0 on a Mac, and recently made my own .otf and .ttf fonts at PaintFont.com. The font can be based on pretty much anything, including handwriting, and covers everything from ...
2
votes
1answer
1k views

Shortcut to insert plaintext?

Oftentimes I would find it useful to insert plaintext, to not be evaluated as input, right next to my input code. Is there a shortcut key to insert such a plaintext input box? I have relied on ...
2
votes
1answer
83 views

Is It Possible To Replicate Tab Stop Behaviour (or Even PageFooter Behaviour but in Regular Cell)

I am trying to insert a (text) cell into a notebook that replicates the behaviour of tab stops in MS Word, for example. Put differently, I have two strings and I want the one string to align on the ...
2
votes
0answers
50 views

Finding position of text returned with `TextRecognize`

I am trying to extract data from images (using some of the methods presented in [1524]), and would like to have a way to selectively cover/remove text from axes and legends. ...
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 ...
2
votes
0answers
128 views

Transforming/exporting text to image

I have a string in a .txt which I process as follow: ...
2
votes
1answer
388 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 ...
2
votes
0answers
87 views

Exporting large numbers to a text file [duplicate]

I need to export large numbers to an ASCII text file, but as simple digits without powers of ten, e.g. I need to write 123456.789 to the file and not 1.23456789E10^5. It seems like such a simple thing,...
1
vote
2answers
475 views

Colorful and eyecandy text by Mathematica

I want to present my work somewhere and thus I made a Powerpoint presentation. I am wondering if it is possible to make a colorful and stylish text by MMA. For example at the end of my presentation I ...
1
vote
2answers
57 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 ...
1
vote
1answer
89 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. ...
1
vote
2answers
190 views

Select record when third column matches certain criterion

I've a table with 3 columns. The table looks like this: ...
1
vote
1answer
99 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 ...
1
vote
2answers
179 views

Searching for phrases in a block of text

One could call this a pattern finding question with dictionary (or WolframAlpha) lookup, but let me give you some background first. I have a couple of friends who are trying to improve their English ...
1
vote
1answer
145 views

Extending a grid to avoid line breaks in text

I was wondering what the best way is to extend the cells in a GraphicsGrid so that my text fits without line breaks. My problem is illustrated by the graphic ...
1
vote
1answer
216 views

Text with specified FontSize looks smaller than expected

The simplest way to see what the post's title is trying to convey is to evaluate: ...
1
vote
2answers
251 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 ...
1
vote
3answers
504 views

How to import files with headers?

R has excellent header supports such as read.table with header options. I don't want to mess up with text-processing or stream-processing. I am looking for a similar tool as in R because it saves a ...
1
vote
1answer
75 views

using deletecases for twittermessages using the timestamp

I have a Excelsheet with tweetsmessages. These tweets are all written in Dutch. I would like to analyse these tweets in relation to the timestamp. ...
1
vote
1answer
597 views

How do I include both text and variables in Input[ ]?

I want to prompt a user to input an answer to a question. I want the question that pops up to have both text and numbers or strings. For example, if I ask the user to give a name to something in the ...
1
vote
1answer
180 views

Spacer and Text in Graphics going Awry (in Mathematica 7)

Use of a vertical Spacer in justified text inside a graphic isn't working as required. The result in the green box looks right, but when this is placed in a ...
1
vote
1answer
798 views

Importing formatted, highlighted text from : HTML vs RTF vs. XML

We would like the ability to import and analyze ASCII documents that have been manually segmented by highlighting and changing font colors of various sections, eg: The original line breaks, ...
1
vote
1answer
66 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 ...
1
vote
1answer
246 views

Input text field GUI [duplicate]

Is there a way to input multiple rows of text and save it as a variable? Like an InputField, but with multiple rows? I would like to make a simple text redactor, so that I could enter a text and then ...
1
vote
0answers
56 views

Mysterious message posted when I move the cursor in a custom function

I wrote a function called CPlot for complex plotting which is supposed to act a lot like Plot in its input format, but ever ...
1
vote
0answers
76 views

Type Vietnamese in Mathematica

I type Vietnamese using UTF-8 Encoding but Text Display got error. How to type Vietnamese, Chinese in Mathematica. Please help me.
1
vote
0answers
70 views

plot cropped in large amount when setting Text Style to some specific sizes and in some locations

I make a Graphics and then add Text[Style["b",size] to it. When changing the size, I noticed that the overall graphics gets ...
0
votes
3answers
1k 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 ...
0
votes
2answers
120 views

How to convert cube root of this equation into TeX?

When I solve the equation $$\sqrt[3]{-3 x+6}+\sqrt[3]{2 x+4}+\sqrt[3]{x-10}=0$$ I used ...
0
votes
1answer
128 views

Create new file, based on 500 articles

I've got a folder with 500 newspaper articles. Each article is saved in a seperate file with a number in the title like "1.txt", "2.txt". Each article has a date but it is not clear in which line the ...
0
votes
1answer
40 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 *) ...
0
votes
1answer
100 views

Text with date, how to convert?

I use this script to recognise a date in a textfile and write the result in another file. ...
0
votes
2answers
192 views

Iterating Reads From a Text File and Writing the Results of Operation

I have a very large text (TSV) file. I am able to now read single line, thanks to StackExchange. I am able to read a part of that line using the part operator. I want to iterate through the whole file,...
0
votes
1answer
190 views

Formatting an equation: X^Y to pow(X,Y)

I am trying to solve for the intersection of two circles with arbitrary centers and arbitrary radii. ...
0
votes
1answer
60 views

Replacing whole strings

I imported a text and seperated al words by using StringCases. After this I would like to manipulate the text, for example to replace all singular verbs to plural. ...
0
votes
1answer
48 views

Evaluate a list of Expressions from file

I have a list of expressions in a text file. I would like mathematica to evaluate and export the results at the end of the same file or in a new file. The expressions are in seperate lines in the text ...