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

learn more… | top users | synonyms

1
vote
1answer
212 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
0answers
21 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
89 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
50 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.
14
votes
2answers
332 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
161 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 ...
1
vote
0answers
22 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
137 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 ...
23
votes
3answers
1k views
0
votes
1answer
144 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. ...
3
votes
1answer
131 views

How to make new line in mathematica file output?

I know that new line is classically made by "\n". I want to make a string with lines of data and then export it into a file: ...
1
vote
0answers
68 views

Transforming/exporting text to image

I have a string in a .txt which I process as follow: ...
1
vote
0answers
53 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 ...
9
votes
1answer
316 views

How can I replace the Greek symbols in an expression with their plain text names?

Suppose I have an expression with Greek symbols in it. How would I convert that expression to another expression where the Greek symbols have been replaces with their names in plain text? I've ...
0
votes
1answer
63 views

Basic stylesheet customization of “Text” cells not working for me

I have learned much from other posts about stylesheet customization. Here is my procedure: Step 1 - Open a new, empty document. Step 2 - Format..Edit Stylesheet. I have added the following ...
2
votes
0answers
134 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
2answers
106 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 ...
3
votes
1answer
162 views

Keeping Font Relative Size to Object/Graphics/Plot Object upon Resize

I want to keep the text generated within a graph/plot to remain the same relative to an element (a disk of size 0.2) of the image upon resize, not the image itself, while maintaining the original ...
2
votes
2answers
107 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
1answer
167 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 ...
12
votes
6answers
1k views

Determine the Number of Lines in a Text File

I have looked and looked but I do not see a simple efficient way to get MMA to return the number of lines in a text file? I thought about reading the file until it returned the EOF marker, but that ...
0
votes
0answers
99 views

Export “Print” command to text file

I am trying to create a text file with specific information in exact locations. This is my code: ...
15
votes
3answers
471 views

Grabbing a number of characters around a string pattern

If I have some string data: text = StringTake[ExampleData[{"Text", "DeclarationOfIndependence"}], 400] "When in the Course of human events, it becomes ...
7
votes
4answers
219 views

Strange behaviour when line-wrapping text in a Pane

I noticed some strange behaviour of Pane. In the result from the following code, the line wrapping is not consistent: why do the first and last line contain four ...
8
votes
3answers
1k views

Skip header lines on import

When importing a data file what are the comment symbols for Mathematica? That is, given a file like this blabla bulbul 1 2 6 54 7 ... .. what symbol do I have ...
1
vote
3answers
239 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 ...
28
votes
3answers
787 views

Is there a convenient way to copy/paste text-interspersed SE code snippets into Mathematica?

Is there a way to copy and paste code snippets from SE to Mathematica if these snippets are interspersed with text? Like e.g. in Morphing Graphics, color and location in both the question and answer, ...
4
votes
1answer
363 views

How do I remove single-character whitespace between words, leaving multiple, contiguous, whitespace characters unchanged?

In a string, I want to remove only the single-character whitespace between printing characters, leaving any multiple, contiguous, whitespace characters between printing characters unchanged? What is ...
21
votes
2answers
762 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: ...
1
vote
2answers
430 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 ...
7
votes
2answers
528 views

Generate Random Text within a Rectangle

I would like to generate images such as the four below. That is: some text of different length fit within a Rectangle[] using ...
7
votes
3answers
301 views

Add text after label in a Manipulate graphic

I can add the value of a slider to the right of it using the Appearance-->Labelled option, but what if I want to add text after the automatic label. How can I do that? Normally I want to do this to ...
7
votes
2answers
113 views

Export textanalysis to pdf

In the helpfile there is a nice axample of text analysis (example/LexicalAnalysis) ...
5
votes
1answer
288 views

Sorting an Array with words in different languages

Array consists of words of different languages. I need to sort elements in reverse alphabetical order and make a list of elements, which consist of english letters. Example of array which consist of ...
11
votes
2answers
371 views

Dimensions of the results of Text[] within Graphics[]

Is there a way to get the dimensions that the results of a Text[] will occupy within a Graphics[]? Specifically, if I run ...
3
votes
2answers
86 views

Adding Text to a ListLogLinearPlot [duplicate]

I have a problem with adding text to a ListLogLinearPlot plot. The text just doesn't show up anywhere. If I use the normal ListPlot, the text coordinates go perfectly wherever I want them to: ...
2
votes
3answers
264 views

When exporting text, how can I set the line separator?

I want to export a string for a bash script. The terminal is naturally very picky when it comes down to the "\n\r" vs "\n", Windows vs. Linux, new line issue. How can I teach Mathematica to use "\n" ...
4
votes
3answers
256 views

Text with subscript is automatically Italic

I am creating a figure for a document using Graphics in which there is Text with some variables and again those same variables ...
17
votes
4answers
815 views

How to determine the convex hull of some text?

How can I get the co-ordinates of the convex hull of a piece of Text?
7
votes
2answers
282 views

How to Rasterize in “Printout” style

I am trying to ascertain how large a justified text block will be when printed by rasterizing it in the "Printout" style environment. However, ...
12
votes
3answers
553 views

Apply an image as a texture to text

I have the following equation eq = Sum[x^2, {x, 0, 10}] and an image ...
9
votes
2answers
180 views

Backslash commands in strings?

I discovered by playing around that Text[DisplayForm@SubscriptBox["\[Lambda]", "k"]] produces the same result as ...
2
votes
1answer
178 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 ...
1
vote
2answers
130 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 ...
3
votes
0answers
66 views

How to include automatic references to cells styled with DisplayFormulaNumbered

Under the Style menu, there is an entry called DisplayFormulaNumbered. It does exactly what it seems to suggest: it indexes the ...
1
vote
1answer
112 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 ...
2
votes
1answer
70 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 ...
0
votes
1answer
90 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
1answer
110 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 ...