[Tex/LaTex] Large Blackboard bold R operator with text underneath

blackboard;math-operators

How do I typeset a large blackboard bold R (size of a \sum symbol) as an operator in an equation? See image.
I can get the text to display underneath with \mathop{}, but I can't make the R big. \displaystyle doesn't make the symbol any bigger.hand-written notes

I can get a solution of sorts in XeLaTeX, but I would prefer a LaTeX solution.

This is the XeLaTeX solution

\documentclass[a4paper]{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{bmatrix} x \\ y \\ z \end{bmatrix}_{\substack{\text{some text}\\\text{other text}}}
= 
\sum_x\mathop{\text{\huge ℝ}}_{\text{sys1}\rightarrow\text{sys2}}
\begin{bmatrix} X \\ Y \\ Z \end{bmatrix}_{\substack{\text{more text}\\\text{also text}}}
\end{equation*}
\end{document}

As you can see, I've copy-pasted the unicode character and made it \huge, and used \mathop to put the text underneath. It's not an elegant solution, it's not very portable since it depends on the text font instead of a math font and it doesn't center the R on the '=' properly (compare the sum).example xelatex solution

What is a better way to do this? Preferably in LaTeX.

Best Answer

This does the job nicely I think (thanks karlkoeller for suggesting improvements):

enter image description here

\documentclass[a4paper]{article}

\pagestyle{empty}

\usepackage{amsmath,amsfonts,relsize,graphicx,dsfont}

\makeatletter
\newcommand*\smallR{\mathds{R}} % <-- this is your symbol
\newcommand*\yo@bigR[2]{\text{#2\raisebox{-#1ex}{$\smallR$}}}
\DeclareRobustCommand*\bigR{\mathop{\mathchoice
  {\yo@bigR{0.5}{\larger\larger\larger\larger}} % displaystyle
  {\yo@bigR{0.4}{\larger\larger}} % textstyle
  {\yo@bigR{0.3}{\larger\larger}} % scriptstyle
  {\text{\scalebox{1.4}{\raisebox{-0.3ex}{$\smallR$}}}} % scriptscriptstyle
  }\displaylimits}
\makeatother

\begin{document}
\begin{equation*}
\begin{bmatrix} x \\ y \\ z \end{bmatrix}_{\substack{\text{some text}\\\text{other text}}}
= 
\sum_x\bigR_{\text{sys1}\rightarrow\text{sys2}}
\begin{bmatrix} X \\ Y \\ Z \end{bmatrix}_{\substack{\text{more text}\\\text{also text}}}
\end{equation*}

\centering

\section{In section title $\sum_x\bigR_{\text{sys1}\rightarrow\text{sys2}}$}

Textstyle: \qquad $\sum_x\bigR_{\text{sys1}\rightarrow\text{sys2}}$

Scriptstyle: \qquad $\scriptstyle
\sum_x\bigR_{\text{sys1}\rightarrow\text{sys2}}$

Scriptscriptstyle: \quad $\scriptscriptstyle
\sum_x\bigR_{\text{sys1}\rightarrow\text{sys2}}$

\end{document}

It would somehow work by just using:

\newcommand\bigR{\mathop{\text{\LARGE\raisebox{-0.5ex}{$\mathds{R}$}}}\limits}

The rest of the mess above is to make it work in any environment and possibly in any font size.

Related Question