# How to typeset multi-letter identifiers that contain letters with diacritic marks inside math environment?

This is edit. See original question below.

In math mode I would like to use identifiers that contain of whole word. That word is not in English and does contain letters with diacritic marks. Example of such word is kľúč.

I have tried to use commands like \mathit{kľúč} or \mathnormal{kľúč} inside math environment. They work well when there are no diacritic marks for example \mathit{kluc} renders the word together with no ugly spaces between letters. When diacritic marks are present the letters are rendered with spaces for example command \mathit{kľúč} inside math environment produces something like k ľ úč instead of klúč.

How can I typeset multi-letter identifiers that contain diacritic marks inside math environment?

Original question text:

The title says it. I want to use letters like ľ, ú, š, ô etc. as part of mathematical identifier (\mathit) in math environment. However unlike standard english letters they are rendered with unpleasant spaces before and after them. How do I solve this?

Example of used command:

$\left\langle \mathit{kl\mkern-5mu\mathchar19\acute{u}\check{c}},\mathit{hodnota}\right\rangle$


This is LaTeX code produced by Lyx when I edit that expression using graphical editor. Expected output is something like <kľúč, hodnota> (in english this would be <key, value>) but what I get looks more like <k ľ ú č, hodnota>.

-
@drasto -- i've updated the answer to use the formulation you said worked, and also my comment. –  barbara beeton Dec 30 '12 at 21:46