ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Unescaped $ and & in texts
Date: Wed, 17 Dec 2008 22:08:36 +0100	[thread overview]
Message-ID: <FBC1BFCD-E904-4188-89A5-2098F9FBE3B6@gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.00.0812171532290.23338@nqv-yncgbc>


Am 17.12.2008 um 21:46 schrieb Aditya Mahajan:

> On Wed, 17 Dec 2008, Wolfgang Schuster wrote:
>
>> Can't we add a new mode to ConTeXt to use $ and & in text
>> without escaping them with a backslash, & is not needed
>> to write tables and for inline math \formula could be used.
>
> Also add # to the list. Basically, we can just define a catcode  
> regime where only \ { and } are special. Inside math mode (activated  
> by \formula, \math, \mathematics, or \startformula) we can switch to  
> a catcode regime where _ and ^ are also set to appropriate catcodes.  
> I would go as far as to say that we should make this default, but I  
> don't think everyone will like that. So, for me a  
> \justwritenaturally macro will do :-)

I wasn't sure if I should add # to the list bit it makes sense.

\nonknuthmode takes care to tread _ and ^ as subscript and superscript
in math mode and as normal chars in text mode.

Wolfgang

___________________________________________________________________________________
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-12-17 21:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-17 20:04 Wolfgang Schuster
2008-12-17 20:46 ` Aditya Mahajan
2008-12-17 21:08   ` Wolfgang Schuster [this message]
2008-12-17 21:42   ` Hans Hagen

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=FBC1BFCD-E904-4188-89A5-2098F9FBE3B6@gmail.com \
    --to=schuster.wolfgang@googlemail.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).