11

How do I produce the output >> in a LaTeX Beamer presentation?

When I write >> or \textgreater\textgreater, I get this symbol, which I believe to be the guillemet(»):

»

I do not want this symbol. I want literally two greater-than symbols, in the context of

Use >> to append to a file, as in date >> dates

  • In what context do you want this symbol to occur? Is this a prompt? – jubobs Apr 28 '14 at 15:13
  • Typing >> was once a way to obtain \guillemotright if babel was loaded with the french(b) option. But the latter consists in only one symbol (», unicode 00187), and you can have it directly in any unicode editor with a suitable keyboard driver. You can obtain something similar in maths with the \gg command. – Bernard Apr 28 '14 at 15:25
  • 2
    If you don't want the symbols to be considered part of the same ligature, then use >{}>. – Werner Apr 28 '14 at 18:40
  • @Jubobs I've updated the question. Although it has been closed as a duplicate, I do not understand how it's a duplicate - I do not want the guillemet, but an output that is literally >>. – phihag Apr 28 '14 at 18:40
  • @Werner Thank you very much, that solves my problem. Do you want to make it as a formal answer so I can accept it? – phihag Apr 28 '14 at 18:42
7

If you want to avoid the automatic combining of characters, separate them using an empty group >{}>:

\documentclass{article}
\usepackage[T1]{fontenc}
\begin{document}
>> >{}>
\end{document} 

enter image description here

  • 5
    If you want/need this to work with LuaTeX then something like >\null> or \>\hbox{}> is needed as LuaTeX doesn't treat {} as breaking up the ligature here. – Joseph Wright Apr 28 '14 at 19:21
10

You can use the math mode \gg just for that symbol. If you think they are too close together, you could use >> (again in math mode) with some negative space \! between them to bring them together a bit.

\(\gg\)
\(>\!\!>\)

enter image description here

  • I would make this a logical markup command, such that the OP does not have to type it all over again (either the one or the other form) – user31729 Apr 28 '14 at 15:44
  • But don't want that symbol. I do want two greater signs. – phihag Apr 28 '14 at 18:38
  • 1
    Something like \texttt{>>}? – erik Apr 28 '14 at 19:09
  • @erik Yes, but without the code formatting that texttt brings – phihag Apr 28 '14 at 22:58

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.