How can I use **xyz** or another similar one instead of \foo{xyz} or \foo*{xyz}?
note: question is updated to reflect my concern, question is general and is not depended on a special package. You may use **xyz** form for any other command
How can I use **xyz** or another similar one instead of \foo{xyz} or \foo*{xyz}?
note: question is updated to reflect my concern, question is general and is not depended on a special package. You may use **xyz** form for any other command
For converting some general input syntax **text** into \foo{text} or \foo*{text}, the approach outlined in this answer to Will two-letter font style commands (\bf , \it , …) ever be resurrected in LaTeX? can be used. However, such an approach is prone to serious issues, particularly if you choose ** as your 'active' component. This will break any other use of *, as it relies on an active character. As such, while the link is suitable for working with pure Markdown or some other 'foreign' input, it is not recommended at all for inter-mixing with standard LaTeX input.
*text* into \foo{text} and **text** into \foo*{text}; but using \section* would require \expandafter\section\string* which doesn't seem very handy; the same for any other command with a *-form.
– egreg
May 26 '12 at 16:08
**xyz**could be preferred to\lr{xyz}. – egreg May 26 '12 at 08:38*character active, and assign a macro to it. – Hasan Zakeri May 26 '12 at 09:25**x**form for any other command. – Real Dreams May 26 '12 at 12:32\foo{and}at the beginning at the end of each match, and don't delete the intermediate text). Since this parses the text when the file is read, it does not suffer from any of the drawback of active characters. – Aditya May 27 '12 at 09:36