You don't need to load the mathabx
package just to use one symbol: just load the necessary font and consult the package to know the slot corresponding to \lll
; it turns out that the font is matha
and the slot is "CE
.
\usepackage{graphicx}
\DeclareFontFamily{U}{matha}{\hyphenchar\font45}
\DeclareFontShape{U}{matha}{m}{n}{
<5> <6> <7> <8> <9> <10> gen * matha
<10.95> matha10 <12> <14.4> <17.28> <20.74> <24.88> matha12
}{}
\newcommand{\bland}{\mathbin{
\raisebox{.1ex}{%
\rotatebox[origin=c]{-90}{\usefont{U}{matha}{m}{n}\symbol{\string"CE}}}}}
\newcommand{\blor}{\mathbin{
\raisebox{.1ex}{%
\rotatebox[origin=c]{90}{\usefont{U}{matha}{m}{n}\symbol{\string"CE}}}}}
If you need those symbols also in subscripts and superscripts, some more work is needed. A possible definition is
\usepackage{graphicx}
\DeclareFontFamily{U}{matha}{\hyphenchar\font45}
\DeclareFontShape{U}{matha}{m}{n}{
<5> <6> <7> <8> <9> <10> gen * matha
<10.95> matha10 <12> <14.4> <17.28> <20.74> <24.88> matha12
}{}
\makeatletter
\newcommand{\blandor}[1]{\mathbin{\@blandor{#1}}}
\newcommand{\@blandor}[1]{\mathchoice
{\@@blandor{#1}{\tf@size}}
{\@@blandor{#1}{\tf@size}}
{\@@blandor{#1}{\sf@size}}
{\@@blandor{#1}{\ssf@size}}
}
\newcommand{\@@blandor}[2]{%
\raisebox{.1ex}{\rotatebox[origin=c]{#1}{%
\fontsize{#2}{#2}\usefont{U}{matha}{m}{n}\symbol{\string"CE}}}%
}
\makeatother
\newcommand{\bland}{\blandor{-90}}
\newcommand{\blor}{\blandor{90}}
These symbols remind of footnote symbols, which following this sequence: (1) *
, (2), \dagger
, (3) \ddagger
, (4), \mathsection
, (5) \mathparagraph
, (6) \|
, (7) **
, (8) \dagger\dagger
and (9) \ddagger\ddagger
. You'll notice this sequence when viewing the definition of \@fnsymbol
(from latex.ltx
):
\def\@fnsymbol#1{\ensuremath{\ifcase#1\or *\or \dagger\or \ddagger\or
\mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
\or \ddagger\ddagger \else\@ctrerr\fi}}
It only carries symbols up to 9, after which an error is thrown. If needed, you can define your own symbol-extraction macro (or use the above) and pick symbols from it in a very generic way:
\documentclass{article}
\makeatletter
\newcommand{\ssymbol}[1]{^{\@fnsymbol{#1}}}
\makeatother
\begin{document}
$x\ x\ssymbol{1}\ x\ssymbol{2}\ x\ssymbol{3}\ x\ssymbol{4}\ x\ssymbol{5} x\ssymbol{6}\ x\ssymbol{7}\ x\ssymbol{8}\ x\ssymbol{9}$
\end{document}
Perhaps, define your own \@ssymbol
macro in a similar way to \@fnsymbol
that adds to your symbol selection from those included in the Comprehensive LaTeX symbol list. This is preferred since it also promotes consistency and allows you to easily change your mind later. For example, if you don't want \ddagger\ddagger
for \ssymbol{9}
, just update the definition and everything else will fall in place; no need to manually replace all \ddagger\ddagger
with <new preferres symbol>
.
As a showcase, \ssymbol{<num>}
provides some letters from the Greek alphabet as "symbols":
\documentclass{article}
\usepackage{multido}% http://ctan.org/pkg/multido
\makeatletter
\newcommand{\@ssymbol}[1]{\ifcase#1\or\alpha\or\beta\or\gamma\or\delta\or\epsilon\or\varepsilon
\or\zeta\or\eta\or\theta\or\vartheta\or\iota\or\kappa\or\lambda\or\mu\or\nu\or\xi\or\pi
\or\varpi\or\rho\or\varrho\or\sigma\or\varsigma\or\tau\or\upsilon\or\phi\or\varphi\or\chi
\or\psi\or\omega\else\@ctrerr\fi}
\newcommand{\ssymbol}[1]{^{\@ssymbol{#1}}}
\makeatother
\begin{document}
$x \multido{\i=1+1}{15}{\ x\ssymbol{\i}}$ \par
$x \multido{\i=16+1}{14}{\ x\ssymbol{\i}}$
\end{document}
Best Answer
You can exploit
\ooalign
: