[texhax] superposing symbols

E. Krishnan ekmath at md5.vsnl.net.in
Sat Jan 10 05:51:14 CET 2004


On Thu, 8 Jan 2004, Dewey H. Hodges wrote:

> I'm attempting to find out how to use LaTeX to draw a northeast arrow 
> through a symbol and have a zero at the tip of the arrow (showing 
> that the quantity crossed out is going to zero). I've been 
> unsuccessful so far. Can you help?

Here's a trick using pstricks. 


    \usepackage{pstricks}	
    ....................
    
    \newlength{\symwid}
    \newlength{\symht}

    \newcommand{\tends}[2]{%
    \settowidth{\symwid}{$#1$}
    \settoheight{\symht}{$#1$}
    \addtolength{\symwid}{3pt}
    \addtolength{\symht}{3pt}
    \psset{unit=1pt}
    \
    \rput[l](\the\symwid,\the\symht){\hspace{3pt}#2}
    \psline[linewidth=0.25pt]{->}%
           (-2,-2)(\the\symwid,\the\symht){#1}}
  
   Now try something like 

	$\tends{x}{a}$ 
	
   or 

	$\tends{\sin x}{0}$


-- 
Krishnan



More information about the texhax mailing list