From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.help
Subject: Re: tex mode sub- and super-scripts
Date: Thu, 12 Jul 2007 15:48:31 -0400
Message-ID: <jwv8x9ls8yf.fsf-monnier+gnu.emacs.help@gnu.org>
References: <mailman.2828.1183170710.32220.help-gnu-emacs@gnu.org>
NNTP-Posting-Host: lo.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1184272887 4706 80.91.229.12 (12 Jul 2007 20:41:27 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Thu, 12 Jul 2007 20:41:27 +0000 (UTC)
To: help-gnu-emacs@gnu.org
Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 12 22:41:24 2007
Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org>
Envelope-to: geh-help-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([199.232.76.165])
	by lo.gmane.org with esmtp (Exim 4.50)
	id 1I95TV-0005KC-Ip
	for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2007 22:41:21 +0200
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1I95TV-000888-4L
	for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Jul 2007 16:41:21 -0400
Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail
Original-NNTP-Posting-Date: Thu, 12 Jul 2007 14:48:31 -0500
Original-Newsgroups: gnu.emacs.help
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)
Cancel-Lock: sha1:jOK6Mjna9xg6tn1KAkuIyULI61w=
Original-Lines: 24
X-Usenet-Provider: http://www.giganews.com
Original-NNTP-Posting-Host: 132.204.27.213
Original-X-Trace: sv3-lwzp38C256zb3SjsipRXyHixFrQzbK5RP7LMTbfdfvxR6LHXptgxCD88pr3MkPCXTe1RyKglD9h5vc7!cHo1EwMUQJ5SRiDVCREu4eNbkkn5kpyVwWozkyZ/se/XwD0hETNj6nDp3OMrmcfhfLT4yFXb00Ey!AFWmY0sSeUchRr35yg==
Original-X-Complaints-To: abuse@umontreal.ca
X-DMCA-Complaints-To: abuse@umontreal.ca
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint
	properly
X-Postfilter: 1.3.35
Original-Xref: shelby.stanford.edu gnu.emacs.help:150062
X-BeenThere: help-gnu-emacs@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs>
List-Post: <mailto:help-gnu-emacs@gnu.org>
List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>,
	<mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org
Xref: news.gmane.org gmane.emacs.help:45648
Archived-At: <http://permalink.gmane.org/gmane.emacs.help/45648>

> I just upgraded to Fedora 7, which means I got upgraded from
> emacs-21 to emacs-22. Now I find that when I edit a TeX file,
> all subscripts (TeX _{xxx}) and superscripts (TeX ^{xxx})
> are rendered in small type, lowered or raised on the line.

> Since TeX is a markup language not a WYSIWYG application
> this is not helpful to the readability of the TeX source.

Sorry!

> How do I switch off this new behavior, while keeping the syntactic
> color highlighting (font lock) that is helpful when composing TeX?

In Emacs's builtin tex-mode, there's no config var to do that.
You can do it with the following hack:

(eval-after-load "tex-mode" '(fset 'tex-font-lock-suscript 'ignore))

In AUCTeX (and Emacs-CVS thanks to AUCTeX's maintainer) you can do it by
customizing some faces and vars (e.g. superscript face and
tex-font-script-display var or something like that).


        Stefan "100% guilty of implementing this (mis)feature"