Sample Header Ad - 728x90

Are ∈ and ℝ symbols available in eqn/roff?

9 votes
3 answers
1417 views
A set of commonly used symbols to represent that a variable belongs to a given real coordinate space are ∈ ("ELEMENT OF", Unicode U+2208) and ℝ ("DOUBLE-STRUCK CAPITAL R", Unicode U+211D). Are those two symbols available in eqn, troff, and/or groff? I can not find them in the documentation. *Edit:* I have tested provided answer and I can get symbol ∈ ("ELEMENT OF", Unicode U+2208), but not symbol ℝ ("DOUBLE-STRUCK CAPITAL R", Unicode U+211D). Specifically, if I do: .TL Test .NH Introduction .LP Given an input in subspace \[u211D]: .EQ x \[mo] \[u211D] sup 2 .EN with output estimated value: .EQ y hat .EN I get the following error: cat test.ms | eqn | groff -ms > test.ps troff: :8: warning: can't find special character 'u211D' As it can be seen in the PS output ∈ is shown, but ℝ is not: groff output I am using FreeBSD 12 eqn and groff.
Asked by M.E. (631 rep)
May 6, 2021, 06:21 AM
Last activity: Jun 10, 2021, 02:10 PM