[Tugindia] Smiley in LaTeX document?

E. Krishnan ekmath at md5.vsnl.net.in
Tue May 27 22:54:48 CEST 2003


On Mon, 26 May 2003, M K Saravanan wrote:

> How to print a Smiley :-)  in LaTeX document?  Is there any special fonts 
> available to print the most popular Smileys?

Here's one way to get smiley 

	\newcommand{\smiley}[1][3]{%
  	\enspace
  	\psset{unit=#1mm,dotsize=0 2}
  	\pspicture[0.3](-1,-1)(1,1)
  	\pscircle(0,0){1}
  	\SpecialCoor
  	\psdots(0.5;30)(0.5;150)
  	\psarc(0,0){0.5}{200}{340}
  	\endpspicture
  	\enspace}

With this, \smiley will get you a small (3mm) smiley, and you can adjust 
the size with \smiley[n]. Other emoticons can be similaly drawn.

-- 
Krishnan




More information about the Tugindia mailing list