34 votes

Character to replace _ in symbol names?

This has been discussed on comp.soft-sys.math.mathematica. The gist is that there are lots of Unicode characters you could use, e.g. \[LetterSpace] or ...
Martin Ender's user avatar
  • 8,754
14 votes
Accepted

What's purpose of function System`Private`LookupCodeByName and System`Private`LookupNameByCode

I tried random inputs until I got something to work. It looks like it has to do with character codes: System`Private`LookupNameByCode[200] ...
Greg Hurst's user avatar
  • 35.8k
13 votes

Character to replace _ in symbol names?

The issue is that Mathematica interprets underscore as Blank and interprets my_variable as a ...
dionys's user avatar
  • 4,321
13 votes
Accepted

When to name a variable with $

Look at the system context to see what the convention is. I can find 257 built-in symbols in 11.3, symbols = Names["System`$*"]; Length @ symbols (* 257 *) In ...
12 votes
Accepted

Equivalent for \hookrightarrow, ↪

You can use an empty TemplateBox to create a new operator. For example: ...
Carl Woll's user avatar
  • 130k
10 votes
Accepted

How insert into Text cell chevron symbols used for Inline GroupOpener icons?

Those symbols are in fact special characters: Row@{"\:f442", "\:f443"}
Lukas Lang's user avatar
  • 33.6k
10 votes
Accepted

How to correctly write string with tabs into file?

Always be explicit about the desired format in Export. Otherwise, it will try to infer it from the file extension. And what is ...
Szabolcs's user avatar
  • 234k
9 votes

How to make tabs aligned in Print?

Print isn't really meant to do text-processor-like formatting. It most common use it to display intermediate results where people don't care much about pretty-...
m_goldberg's user avatar
  • 108k
9 votes
Accepted

How can I self-define a keyboard entry for 3-dot "Because"?

You can use InputAliases to define an alias, like ...
Carl Lange's user avatar
  • 13.1k
8 votes

Character to replace _ in symbol names?

I use $ as a separator. It is a valid symbol character. In my application I have a set of variables that need to be identified by coordinates, like for example a17_4_25. I can't just drop the _ ...
Shebla Tsama's user avatar
7 votes
Accepted

Special Character boxtime

⊠ is Unicode character U+22A0, and so we can input it in Mathematica by typing the following: \:22A0 anywhere in a notebook. This functionality is documented in ...
Carl Lange's user avatar
  • 13.1k
7 votes

Entering NULL characters in a string

Turns out the answer is yes, simply use "PrintableASCII" character encoding rather than the FullForm/...
MikeLimaOscar's user avatar
6 votes

Are formal characters like \[FormalA] to be used differently than other symbols?

I would like to point out that the shortcut to write out formal symbols is :$a:, where : is typed using ...
mohamedmoussa's user avatar
6 votes

What would be the special character for this mathematical notation?

Bob Hanlon's comment is closer to what I was expecting, but it may be that m_goldberg's notation may be more correct. In doubt, I'll post this: ...
LCarvalho's user avatar
  • 9,163
6 votes
Accepted

What would be the special character for this mathematical notation?

\[DoubleVerticalBar] behaves like a binary operator (often used to indicate parallel lines in geometry). You probably want ...
m_goldberg's user avatar
  • 108k
5 votes

Non-breaking hyphen?

You can directly input the unicode character for the non-breaking hyphen in a cell: \:2011 You can also create an input alias to allow direct input of a unicode non-breaking hyphen. ...
David's user avatar
  • 81
5 votes
Accepted

Non-breaking hyphen?

Guess you can do \[NoBreak]\[Hyphen]\[NoBreak] Those lines are the same except the first one has nobreaks:
Kuba's user avatar
  • 137k
5 votes

A bug in converting some Unicode characters into FullForm?

I've contacted the support on this issue ([CASE:3933761]) but received nothing better than a suggestion to manually clean up the "Package" string using ...
Alexey Popkov's user avatar
5 votes

Special Character boxtime

The code \:22A0 will produce the Unicode character for BOX TIMES but the font used for output must support the Unicode character and not all of them do, otherwise ...
Somos's user avatar
  • 4,897
5 votes

Re-encode text file to use Mathematica's character name, like \[Alpha]

Here is a robust version of fromCode which uses only well-documented functionality, and correctly handles extended-ASCII and Unicode characters with which the ...
Alexey Popkov's user avatar
5 votes
Accepted

Re-encode text file to use Mathematica's character name, like \[Alpha]

Based off information from this thread, the following should work. ...
Greg Hurst's user avatar
  • 35.8k
5 votes

Convert integer to words of specific length

...
Syed's user avatar
  • 48.6k
4 votes

Re-encode text file to use Mathematica's character name, like \[Alpha]

For the particular use case I am interested in (i.e. replacing non-ASCII characters in package files), one can simply open the file (.m or ...
Szabolcs's user avatar
  • 234k
4 votes

How to "Copy as Unicode" from a Notebook?

Here's a method that's really no different from the standard ones except it's generalized for copying cells and, theoretically, for Windows and Unix. We'll use ...
b3m2a1's user avatar
  • 46.8k
4 votes

CharacterRange oddity

While e.g., letters[5] (or any other integer between 1 and 22) is a list, letters is not. Colloquially, ...
jjc385's user avatar
  • 3,473
4 votes

When to name a variable with $

While $__ variables are not special in terms of evaluation they are special in terms of language/package design. They alert a developer/user to the fact that ...
Ronald Monson's user avatar
4 votes

How to type special characters used in $\LaTeX$?

Not sure if this is an answer or what particular use you have in mind, but a font that resembles such $\LaTeX$ typography closely is the "Euclid Fraktur". Not sure if there are better ...
Syed's user avatar
  • 48.6k
4 votes
Accepted

How to type special characters used in $\LaTeX$?

Just take a look at the fonts that you have installed, as "Euklid Fraktur" is not available for everyone. ...
gwr's user avatar
  • 13.4k
4 votes
Accepted

create string for string seen in FullForm

Try F1 = Characters[ToString[FullForm[#]]][[2;;-2]]&;
user293787's user avatar
  • 11.7k
3 votes
Accepted

Possible bug in Export with CharacterEncoding -> "PrintableASCII"

I'm afraid support didn't answer your question correctly. However, "String" is one of the most confusing formats we have, so I am not totally suprised. If you look at the "Background and Context" on ...
Itai Seggev's user avatar
  • 14.1k

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