ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Gour <ggdasa@gmail.com>
To: ntg-context@ntg.nl
Subject: Re: typesetting underscore
Date: Sat, 12 Jan 2008 20:11:24 +0100	[thread overview]
Message-ID: <20080112201124.3ce842d6@gaura-nitai.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.0.9999.0801121245380.21905@nqv-yncgbc>

On Sat, 12 Jan 2008 12:59:39 -0500 (EST)
Aditya Mahajan <adityam@umich.edu> wrote:


> Why does \textunderscore wail? \textunderscore should work fine.

See https://mail.gna.org/public/muse-el-discuss/2008-01/msg00001.html
thread.

> :) 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.

Hmm, not ideal...

> 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 do not remember having ever problem with underscore in LaTeX.

> 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.

Right. They will fix default in muse and use \type{_} as value for
underscore.

Thank you for your input.

Sincerely,
Gour
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-01-12 19:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-12 16:24 Gour
2008-01-12 17:59 ` Aditya Mahajan
2008-01-12 19:11   ` Gour [this message]
2008-01-12 22:07     ` Aditya Mahajan
2008-01-13 22:47   ` Hans Hagen
2008-01-13 23:10     ` Aditya Mahajan
2008-01-14  8:10     ` Jean Magnan de Bornier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080112201124.3ce842d6@gaura-nitai.dyndns.org \
    --to=ggdasa@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).