Hot answers tagged

21 votes

Apply an image as a texture to text

Here's a method based on creating a MeshRegion from the text: ...
user avatar
  • 83.3k
21 votes
Accepted

Parenthesize what I have highlighted

I have this palette open all the time: ...
user avatar
21 votes
Accepted

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

You want to use an UnderBrace. Highlight the g....g then type Ctrl-4 to get under it, then type Esc ...
user avatar
  • 62.7k
18 votes
Accepted

Skip header lines on import

Here is an approach that handles interspersed comments in addition to "headers" FilePrint["test.txt"] #comment #comment #comment 1 2 3 #c2 4 5 6 7 8 9 ...
user avatar
  • 38.3k
18 votes

Placing text within a plot

The answer is in the docs yet it might be useful for others so I will just drop it here. The Details and Options section of the Text documentation says: Thus you ...
user avatar
  • 8,417
16 votes
Accepted

What stopwords list is the Wolfram language using?

A little spelunking of the code for DeleteStopwords[] yields the internally used stopword list: ...
user avatar
15 votes

Skip header lines on import

The Import command supports an option to ignore header lines. In many cases this is the easiest solution. For example: ...
user avatar
  • 3,896
15 votes

What stopwords list is the Wolfram language using?

The stop-words are documented and can be looked up as (see Details section of WordList): WordList["Stopwords"] As it might be ...
user avatar
15 votes
Accepted

Can this effect be achieved with Mathematica?

Here is an approach using some basics of object-oriented programming. Load the lyrics: ...
user avatar
  • 368
14 votes

How can I wrap text around a circle?

My solution, which does not try to place the letters, but rather transform the space they inhabit. This has an extra feature/bug/property that parallel lines in the letters may no longer be parallel ...
user avatar
14 votes

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

I posted a possible answer for this on meta (Download questions or chats for offline reading), but perhaps it belongs here on the main site instead. I have a paclet that downloads a stack exchange ...
user avatar
  • 123k
14 votes
Accepted

Backslash commands in strings?

I believe this is the documentation you are looking for: String Representation of Boxes Notably: And:
user avatar
  • 264k
13 votes
Accepted

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

Extract all Greek letters from the documentation and make replacement rules: ...
user avatar
  • 264k
13 votes
Accepted

ROT13 and upside-down text (flip text)

1. ROT13 ...
user avatar
  • 28.9k
12 votes
Accepted

How to type sentences into Mathematica

(J.M.'s comment) You can select a cell and do Format > Style > Text, or you can directly right-click on a cell bracket, or you can convert or generate a new text cell by the keyboard shortcut Alt+7....
12 votes
Accepted

Qubit passing through quantum gate animation

Perhaps something like this? ...
user avatar
  • 67k
12 votes

Implementing a Better Grep Command

Mathematica allows text searching using regular expressions (based on the PCRE library). It would take some work to re-implement the whole grep functionality within ...
user avatar
12 votes
Accepted

How to write graffiti, i.e., text on a polygon surface in Graphics3D?

I would take a look at the Wolfram-U video for Advanced 3D Graphics in the Wolfram Language and download the notebook. Look at slide 22 and the billboard3D ...
user avatar
  • 15.9k
11 votes
Accepted

Using Padding with Text and Style

There are two alternatives I would suggest, depending on what your plans for the Background are. Here is an illustration: ...
user avatar
  • 95k
11 votes
Accepted

Highlighting pattern strings in a large text

There is another way that is on my machine almost 500x faster then your solution. The idea is to look how Mathematica represents colored strings and use this directly. When we colorize an input ...
user avatar
  • 111k
11 votes
Accepted

How to remove unknown zero-width character from string?

You can see the zero-width character using FullForm: str //FullForm "\:200b\:200b4-6" So, in this case, you can use the following: ...
user avatar
  • 123k
10 votes
Accepted

Accessing figure style (oldstyle or lining) of TrueType fonts

These issues are unfortunately OS- and font family-dependent, so I will preface that I am working on Windows 7 - 64 bit using MMA 10.2. I currently don't have the Aller font installed on my machine, ...
user avatar
  • 58.4k
10 votes
Accepted

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

WordCloud a recent function can do some neat tricks beyond the obvious. For example: Wrappers such as Style and Rotate passed ...
user avatar
10 votes

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

You can use Splice, which has been superseded by FileTemplate since v10. [ As of 12.1 Splice...
user avatar
  • 5,334
10 votes
Accepted

How to place PlotLabel inside the plot frame

Use scaled coordinates Scaled[{x,y}] for easier control. Scale runs $0<(x,y)<1$ independently of actual axes values, ...
user avatar
10 votes
Accepted

Compare two texts and find differences and similarities

If we consider the applications of Bag-or-words and/or Linear vector space models for doing Natural language processing adequate -- meaning we ignore the sequential order of the words -- then we can ...
user avatar
10 votes

Wolfram Neural Net Repository Questions

I believe I'm a heavy user of the neural network framework and the Wolfram Neural Network Repository(WNNR) and these are how I see the WNNR from a user's perspective. Hope it will be helpful. First of ...
user avatar
9 votes

Is there a way to outline text?

In version 10, we can bypass exporting to PDF and re-importing and can outline text directly using region discretization functions. This is shown in the documentation of ...
user avatar
  • 224k
9 votes

How to determine the convex hull of some text?

In Version 10, this can be elegantly done in one line. First we create some text (stealing from @kguler) as follows: ...
user avatar
  • 32.5k

Only top scored, non community-wiki answers of a minimum length are eligible