I am trying to use a cyrillic glyph as a symbol for a proportionality factor. It's the ӄ and its unicode number is 04C4 (see unicode page). So i crawled the english web for information on this, and after about 3 hours i managed to include the glyph in my text with
\usepackage[T2B, T1]{fontenc} <- so it selects T1 as standard, but has T2B available
\usepackage{lmodern} <- don't know if this is needed, but i guessed it might me useful for having a font with cyrillic support.
within the document:
`{\fontencoding{T2B}\selectfont \CYRKHK}`
This prints the glyph in ordinary text. In math mode it's possible to get it with a nifty workaround: enclose the above in \text{}
(see here.
This solution works somehow, but it is really crappy. For instance it doesn't work for lots of other good looking cyrillic letters, like ҟ U+049F (-> "Undefined control sequence." error). And i don't even want to think about, how agonising it would be, to include Japanese glyphs as well.
So the real question is: is there a simple and robust way to include any kind of glyph, i can find in unicode? Say a Katakana like ャ U+30E3, next to a cyrillic glyph, next to a Bengali ন U+09A8. Typing this into stackexchange without any problem raises an obvious second question: is Firefox actually better at typesetting unicode symbols, than latex? O.o
What i've tried, that didn't work somehow:
using
\DeclareUnicodeCharacter{<number>}{\<command to place the thing>}
with\usepackage[utf8]{inputenc}
->\DeclareUnicodeCharacter
isn't defined for some reason (beyond my latex horizon). There was another method with \newunicodecharacter or something like that (can't remember). That did nothing at all.using XeTeX -> no change, exept that other stuff broke. I returned to pdflatex. So this would not work.
using the package mathtext -> nothing happend
using the package cyrillic -> fails to load, even though it is installed with TeXlive.
My current configuration:
\RequirePackage{fix-cm}
\documentclass[12pt,index=totoc,bibliography=totoc,ngerman, BCOR=12mm]{scrreprt}
%header
\usepackage[T2B, T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[reqno]{amsmath}
\usepackage{amssymb}
\usepackage[svgnames,table,hyperref]{xcolor}
\definecolor{dblue}{rgb}{0 0.447 0.741}
\usepackage{lipsum}
\usepackage{graphicx}
\usepackage{listing}
\usepackage{matlab-prettifier}
\usepackage{rotating}
\usepackage{flafter}
\usepackage{subfig}
\usepackage{makeidx}
\usepackage[german,noprefix]{nomencl}
\usepackage[format=hang,labelformat=simple,font={small,sf},labelfont={small,sf},textfont={small,sf}]{caption}
\usepackage{booktabs}
\usepackage{setspace}
\usepackage{subfloat}
\usepackage[colorlinks,linkcolor=dblue,pagebackref]{hyperref}