![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Sat, 12 Jan 2008, Gour wrote:
Yesterday I played a bit with emacs' muse mode which has option to 'publish' to ConTeXt, but its output was wailing when texeexec-ing due to use of \textunderscore (option in muse).
Why does \textunderscore wail? \textunderscore should work fine.
Today I discussed the issue on muse mailing list, got help and the following remark: '...Context gurus don't seem to imagine you can use "_" elsewhere than in math mode btw'.
:) This is how it is done in plain TeX, and both LaTeX and ConTeXt follow this. If you do not use maths at all, you can say \catcode`\_ = 11 on the top of your file and then _ will be a letter in both text and math mode (which basically means that you will have to use \sb to get subscript in math mode. It is possible to define something along the lines of underscore.sty in latex, so that _ is treated as a letter in text mode, and as a subscript indicator in math mode, but, read below.
I looked at ConTeXt docs (excursion and manual), as well as wiki on contextgarden, but was not able to find more about what is the status of underscore '_' char in ConTeXt and is the above remark true?
My usage of '_' in muse document was for preparing tables of some library functions and, as it is often the case in software, there is usually some prefix for all library functions as eg. gtk_xxxxx for GTK+ toolkit.
Shouldn't such function names be written as \type{gtk_xxxx} when muse converts the document to ConTeXt? In that case the _ will be preserved. Aditya