[texhax] Nice Angle brackets

Philip TAYLOR P.Taylor at Rhul.Ac.Uk
Mon Feb 21 19:03:03 CET 2005



Johan Glimming wrote:

 > Hi All
 >
 > I would like to have "double" angle brackets << and >>
 > like this:
 >
 >     /^^/
 >    /  /
 >    \  \
 >     \__\  (forgive ^ for the dual of _)
 >
 > The problem is the topmost border, i.e. ^^ and __
 > above (I can do <\!\!< but two sides are missing).
 > Can someone advise me on how to type such an
 > angle bracket in LaTeX?

Yes, but it's /awfully/ kludgy :-(((

	\documentclass {minimal}
	\begin {document}
	
	\newdimen \bracketsep
	\bracketsep = 0,2 em
	
	\setbox 0 = \hbox {$<$}
	\setbox 2 = \hbox {\vrule width \bracketsep height 0,05 pt depth 0,4 pt}\relax
	\setbox 4 = \hbox {\vrule width \bracketsep height 0,05 pt depth 0,4 pt}\relax
	
	\leavevmode
	\copy 0
	\kern -0,1 em
	\copy 2
	\kern -\wd 2
	\raise \ht 0
	\copy 4
	\kern -\bracketsep
	\kern -0,48 em
	\copy 0
	
	\end {document}
	
Philip Taylor



More information about the texhax mailing list