[texhax] enviroment

John Culleton john at wexfordpress.com
Mon Feb 9 19:13:38 CET 2009

On Sunday 08 February 2009 07:38:37 wawan wrote:
> Hi all
> I need help how to build sty in latex ( environment ) that can 
> squences of chars with my symbols. For example if there input 
chars "SU"
> than replace with XY ( my symbols from metafont).
> -- 
> =====================
> http://wa2n.nrar.net
> http://artikelit.com
> =====================

This is best done in the text editor. For Vim the command would be

:%s/XU/(code for your metafont symbols)/g

Or you can simply create a macro thus:
\def\XU{code for your metafont symbol}

The above is primitive TeX code but works for LaTeX also. 

John Culleton

More information about the texhax mailing list