Defining a macro with \ifx command

by Niranjan   Last Updated July 12, 2019 07:23 AM

I want to form a macro which will enable me to get the following result.

Let's say I want 'L', 'M' & 'N' to be active in my document.

and I also want character 'p' to be functional in the code such that -

If 'L' is followed by 'p' it changes to q. If 'M' is followed by 'p' it changes to r. If 'N' is followed by 'p' it changes to s.

Can I define character 'p' in this way?

Tags : conditionals


Related Questions


Updated May 20, 2015 03:10 AM

Updated April 27, 2015 21:10 PM

Updated June 01, 2015 00:10 AM

Updated June 24, 2016 08:09 AM

Updated July 28, 2016 08:09 AM