I understand that LaTeX has horrible Unicode support, and if I want Unicode I should be using XeTeX. And I have read Entering Unicode characters in LaTeX but it doesn't seem to do what I want.
What I want to do is to just enter Unicode characters like ↔︎ and ↕︎ into my text. I'm not using Computer Modern Roman, I'm using modern fonts that have full Unicode support. So I want the output to be ↔︎ and ↕︎ in the chosen font.
I get this error message:
! Package ucs Error: Unknown Unicode character 65038 = U+FE0E,
(ucs) possibly declared in uni-254.def.
(ucs) Type H to see if it is available with options.
See the ucs package documentation for explanation.
Type H <return> for immediate help.
...
l.881 will call this the ↔︎
direction, or a 0º rotation.
?
And I include the packages like so:
\usepackage[T1]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
What magic LaTeX incantations do I include?
ucs, then you're with legacypdflatexand there is *no* font that has “full Unicode support”. Please, make a minimal example starting from\documentclassup to\end{document}. – egreg Jan 04 '20 at 22:51\DeclareUniocdeCharacter{2194}{\leftrightarrow}– David Carlisle Jan 04 '20 at 23:07unicode-mathdefines thousands of symbols (compile under xelatex or lualatex). Depends how many you need. `\documentclass{article} \usepackage{unicode-math} \setmathfont{XITS Math} \begin{document} $A \leftrightarrow B $$X \updownarrow Y $ \end{document}` You can also use any of the unicode math fonts that way, too.
– Cicada Jan 05 '20 at 11:15