Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

In my research I'm using results of the paper Vinogradov A. M., - The logic algebra for the theory of linear differential operators, - Soviet Math. Dokl., 13 (1972), 1058-1062. The paper uses the character looking like Д (Unicode hex U+0414) to refer to a specific operator: Д

What I want is to write something like \newcommand\DD{\unicodesymbol{U+0414}} (which obviously doesn't work) and use \DD to refer to this symbol in math mode. I've also found, that

\usepackage[OT2, T1]{fontenc}
\usepackage[russian, english]{babel}
\newcommand\DD{ {\operatorname{\textrm{\foreignlanguage{russian}{D}}}} }

seems to work, but I'm not sure, if this is a good way to define this symbol (e.g. if it doesn't break anything).

So, what is the best way to do that?

P.S. I tried to use Detexify, as suggested here, and didn't find anything like Д. I also looked at Comprehensive LaTeX symbols and AMS LaTeX Short Math Guide, and the most close equivalend I've found is \symrook from skak package, which is still different.

Update: as was suggested in a comment below by Gonzalo Medina I now use

\usepackage{amsmath}
\usepackage[OT2, T1]{fontenc}
\usepackage[russian, english]{babel}
\DeclareMathOperator\DD{\textrm{\foreignlanguage{russian}{D}}}
share|improve this question

marked as duplicate by egreg, Claudio Fiandrino, mafp, Martin Schröder, Ulrich Schwarz Jun 25 '13 at 9:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
What about the \cyrd command? –  Sigur Jun 25 '13 at 0:58
3  
I'd use \DeclareMathOperator from amsmath (the starred version if "limits" are required). In the preamble: \usepackage{amsmath} \DeclareMathOperator*{\DD}{\textrm{\foreignlanguage{russian}{D}}} –  Gonzalo Medina Jun 25 '13 at 1:25

1 Answer 1

up vote 5 down vote accepted

This variant of \DD

  • uses the cm-super fonts for the Cyrillic glyph (the fonts are available s Type 1 fonts and avoid bitmap fonts),
  • supports \boldsymbol or \mathversion{bold},
  • is resizable,
  • does not need package babel,
  • only requires a font encoding that provides \CYRD (e.g. T2A).

Example file:

\documentclass{article}
\usepackage{amsmath}
\usepackage[T2A,T1]{fontenc}
\makeatletter
\newcommand*{\math@version@bold}{bold}
\DeclareMathOperator\DD{% or \DeclareMathOperator*\DD
  \textrm{%
    \usefont{T2A}{cmr}{\ifx\math@version\math@version@bold bx\else m\fi}{n}%
    \CYRD
  }%
}
\makeatother
\begin{document}
\[\DD^{\DD^{\DD}} = \boldsymbol{\DD^{\DD^{\DD}}}\]
\end{document}

Result

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.