For full support for unicode input and unicode fonts, take a look at XeTeX; it's easy to get started — just select an appropriate font and the unicode characters in your input are directly typeset as unicode glyphs in the output. Switching engines is not always a possibility, however, and sometimes you'll want to stick with pdfTeX for its other useful features.
The best that regular LaTeX (i.e., based from pdfTeX in a modern distribution) can do is recognise UTF-8 sequences in the text and expand macros based on what it sees. Load the inputenc package to select the UTF-8 input encoding:
\usepackage[utf8]{inputenc} Note that the resulting input file must not have a byte-order mark (BOM) at the beginning, or else it won't compile. (You can also use the [utf8x] option which has more extensive coverage but is not as well supported. I don't have any experience using this option.)
To define behaviour for unicode characters, use the \DeclareUnicodeCharacter command that is then defined. Here's an example for binding the control sequence \dash to the input character «—»; i.e., a literal em-dash, U+2014, in the source:
\DeclareUnicodeCharacter{2014}{\dash} \dash can then be defined in the usual manner; I use:
\DeclareRobustCommand\dash{% \unskip\nobreak\thinspace\textemdash\allowbreak\thinspace\ignorespaces} This defines a dash that has a small space on either side and will only allow a line break after it.
Честно сказать, когда я это писал, я думал, что, скорее всего, ты уже в курсе этого мануала, и проблема несколько глубже, и я просто не понимаю этого. Так же я предвидел ожидаемые реплики Эдди по поводу Unicode. Но такого ответа я не ожидал, сорри извини )
p.s.: там всё просто — ищи символ в этом мануале и его обозначение, подключаешь нужный пакет, и готово.
Deleted
()
Последнее исправление: Deleted
(всего
исправлений: 3)
Если в двух словах: загружаешь пакет \usepackage[utf8]{inputenc} юникодные символы вводишь так \DeclareUnicodeCharacter{2014} (где 2014 - код символа). Я латех в глаза не видел, так что мог что не так сказать, пробуй.
LuaTeX и XeTeX поддерживают юникод и ttf/otf искаропки, можно вставлять любые символы, которые есть в шрифте. Правда, font substitution там искаропки нет. Поэтому, если хочешь вставить ⌘, нужно явно указать шрифт, в котором есть соответствующий глиф.