5

I need to know, if it's possible, how I can write a unique "less AND greater than" symbol in LaTeX: for example X >< 5.

lockstep
  • 250,273
  • Isn't it <> instead of ><? –  Feb 11 '13 at 10:27
  • Sorry, my mistake, I'll write on tex.stack the next time... However, I was wrong to write: I wanted to say <>... –  Feb 11 '13 at 10:33
  • Do you mean \times? –  Feb 11 '13 at 12:50
  • Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – percusse Feb 11 '13 at 12:59
  • I'd use \neq. Mathematically it has the same meaning if I say x =\= 5. – Count Zero Feb 11 '13 at 14:43

1 Answers1

15

That's not possible (unless you write the greater than symbol followed by the less than symbol).

You can find a comprehensive list of LaTeX symbols here.

EDIT:

For something that looks like an horizontal X, check out \times and \openJoin in the document.

For one over the other, check \lessgtr, from comments I think that's what you're looking for : enter image description here

alestanis
  • 259
  • mmm are you sure? Because I red something like that in some books in the past... However thanks a lot for the link... It's wonderful! –  Feb 11 '13 at 10:34
  • I found one that looks like a > on top of a < but that's all... You don't like how >< looks like? Are you looking for something more like an horizontal X? –  Feb 11 '13 at 10:47
  • No no... I'm looking for something like a > on top of a <... sorry, but I think that I explained that very bad... How can I do that? –  Feb 11 '13 at 10:55
  • @Daniele Check my edit, is that it? –  Feb 11 '13 at 10:57
  • Perfect @alestanis, that's \lessgrt! Thanks a lot! But it doesn't work: which packages I have to use? I have amsmath,amsfonts,amsthm... –  Feb 11 '13 at 11:06
  • @Daniele Great! You're welcome :) –  Feb 11 '13 at 11:06
  • Sorry, but it doesn't work: which packages I have to use? I have amsmath,amsfonts,amsthm... –  Feb 11 '13 at 11:12
  • It's in page 24 of the document, I think you need mathabx – alestanis Feb 11 '13 at 12:38
  • @Daniele: try \newsymbol\lessgtr 1337 after loading amsmath and amsfonts. :) – Paulo Cereda Feb 11 '13 at 12:48
  • 4
    The needed package is amssymb – egreg Feb 11 '13 at 12:58
  • 3
    The link is broken – yarchik Oct 17 '17 at 14:48