I want to define an order relation where I to distinguish want to fill in with black so that I have a black lying triangle in the first case and a black lying triangle with the suitable line below as in \leq in the second case. I am not satisfied with \blacktriangleleft and \overset{\blacktriangleleft}{-}.

  • Some \ooalign magic together with a \leq or a raised - plus the \blacktriangleleft might work. You can search this site to see how \ooalign work. – Manuel Jul 29 '14 at 20:58
  • I attempted the search, but the hits did not seem sufficiently useful for me. – Sapiens Jul 29 '14 at 21:09

Here's the \ooalign black magic:



$a\bleq b\leq c$


enter image description here

  • Thanks! And how do you program \ble for a black <? – Sapiens Jul 29 '14 at 21:14
  • I withdraw that question, as then I use \blacktriangleleft of course. – Sapiens Jul 29 '14 at 21:16
  • @user24406 This works for the standard Computer Modern fonts; if you use a different math font, this might need a different workaround. – egreg Jul 29 '14 at 21:21
  • Your \newcommand worked well for me. I write in Tex-Studio, and am enough of a beginner to not understand the import of your invocation of fonts. – Sapiens Jul 29 '14 at 21:28
  • 1
    @user24406 If you use a package such as fourier or newtxmath for different fonts, the shape of \blacktriangleleft will not fit any more with the shape of <. But in that case you'll probably would not use the filled triangle together with <, just because they would be too different. – egreg Jul 29 '14 at 21:31

The following example defines \blackleq by putting \blacktriangleleft over the minus sign and vertically centers the result:


  % #1: math style
  % #2: unused
    \kern\wd0 %
    \copy4 %

  < \blacktriangleleft \leq \blackleq
  < \blacktriangleleft \leq \blackleq
  < \blacktriangleleft \leq \blackleq
% Show bounding boxes



  • The height of the bounding box of the minus sign is much larger than the height of the minus sign. Therefore the minus sign is put into a box (4) and raised to the base line.

  • \mathpalette is used to get the current math style for the size adaptations.

  • It depends on the fonts, if \blacktriangleleft can be used as filled less symbol. CM fonts are ok, but the symbol is too small in MnSymbol and too small with different slopes in mathabx.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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