unicode resources – Comprehensive Collection of LaTeX Commands with Corresponding Unicode Symbols

resourcesunicode

The best collection of LaTeX symbols which can be copy/pasted I have found so far in my search is here, very short. Is there a comprehensive list of LaTeX symbols in copy/pastable format, where I can copy the latex command like \Phi and the unicode symbol like Φ? If not, is there a quick way I could generate such a list, or somehow dig into the source of that PDF and isolate it out somehow? You can copy paste from that PDF but it's a pain, is there any way to separate them out and print them automatically like this:

\UppercaseOnes = <value>
\UppercaseOnes2 = <value>
...
\lowercaseones = <value>

Or perhaps a CSV or something. Trying to use these in another programming language, and am having to copy/paste, cleanup with regexp, by hand. For example, maybe there is a way to dynamically say "print out all latex symbols that don't have any arguments" or something.

Also, copying from that PDF something results in junk, i.e.

^ \leftarrowtriangle ⇐\ \Mapsfrom  \shortleftarrow
- \leftrightarroweq ←[ \mapsfrom  \shortrightarrow
] \leftrightarrowtriangle ⇒ \Mapsto  \shortuparrow
\lightning 1 \nnearrow % \ssearrow
⇐=\ \Longmapsfrom 0 \nnwarrow $ \sswarrow
←−[ \longmapsfrom _ \rightarrowtriangle
=⇒ \Longmapsto  \shortdownarro

Best Answer

The unimath-symbols.pdf document that is part of the unicode-math package may be close to what you're looking for, and copying and pasting from it seems to work fairly well.

There's also the unicode-math-table.tex file that's part of the same package that defines the commands for each character code; you could write a quick script that turns that into the kind of document you're looking for. (In fact, I wrote a quick zsh script myself; the output is here, but I'm not sure it handled accents and diacritical marks correctly, and I'm too lazy to fix it at the moment.) If you're writing a real program you might prefer to have the code points anyway.

But those really only cover math, and not regular text of various languages or other symbols.

Related Question