3

Motivation: There are a lot of specific characters mentioned in How to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem? (This question can be considered as an extension to it) There are even more questions on this this asking about similar errors for specific characters. I know that some of the characters can be properly handled by inputenc if you include the proper packages, but is there a list (even incomplete) on which unicode characters are implemented in which packages or is there a general guide on how to find such a package if I encounter a specific character that reports these errors?

Note: I know that I can manually do \DeclareUnicodeCharacter for the problematic ones and I also know the options of using LuaTeX and XeTeX as mentioned in the only comment of the linked question, but I still believe such a table/mapping can be helpful to the general public if it does exist, especially if it is indexed by Unicode code points.

As a specific example, maybe a demonstration of how to find which package includes "parenthesized Latin small letter a ⒜ (U+249C)" is helpful. (Not which package to use, but how to find those packages).

I will also be happy to accept an answer claiming such a table/list does not/should not exist with sound evidence.

Edit: With the help of the answer by @David Carlisle I found this related question: Mapping from Unicode character to LaTeX-Symbol for BibTeX?

4
  • 3
    I think you can make that the question title ("Is there a comprehensive symbol list indexed by Unicode codepoint?"): ultimately your question is not about "inputenc errors" but about having all symbols provided by all packages (or at least many symbols provided by many packages) indexed by Unicode codepoint (or these days they call it "Unicode scalar value"). Apr 25, 2019 at 16:56
  • 1
    I know a number of source where I search when such questions arise, but no comprehensive list. A well maintained list comparable to the symbol list would be nice, so if you are willing to create it, go along. Apr 25, 2019 at 17:20
  • I am willing to do some work but maybe you can provide the sources you know? Apr 25, 2019 at 17:21

2 Answers 2

5

The unicode.xml file available from https://github.com/w3c/xml-entities has a lot of information about names for Unicode characters, it has several latex names although only the unicode-math set (as used by unicode-math package for xetex/luatex or stix and stix2 packages for pdftex) has been checked recently. That is also the source of the tex names shown if you paste text into

https://w3c.github.io/xml-entities/unicode-names.html

3
  • Thank you for the great resources. I will try to parse the XML. Sadly it doesn't seem to work for the specific example ⒜ given in the question. Apr 25, 2019 at 18:32
  • @WeijunZhou no due to the history and existing uses of that file (it is also the master source of entity names in HTML and MathML) it is mainly targetted at math characters and European accented characters, there are entries for the full Unicode 11 but most have no tex mapping. TeX mappings could be added though..... Apr 25, 2019 at 18:35
  • Thank you anyway. I will try to work on something like that and may release to the public if it is sufficiently satisfying. Apr 25, 2019 at 18:37
3

Will Robertson’s “Symbols Defined by unicode-math contains nearly every math-mode symbol and its Unicode codepoint.

The documentation for the utf8 option of inputenc comes with a listing of every commonly-used text-mode symbol by its Unicode codepoint. With legacy 7- and 8-bit encodings, these are defined by a .def file, and in the modern toolchain, they are defined by fontspec with compatible commands.

1
  • Thank you for the comprehensive lists. They are indeed helpful. I think I am trying to build a list that covers the existing questions related to inputenc errors so that one does not have to ask them individually in the future, but that may be too far a dream :) Apr 25, 2019 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .