From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ramesh Sridharan Newsgroups: gmane.emacs.help Subject: Controlling font styles in latex-mode Date: Sat, 17 Apr 2010 12:44:35 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1271535770 847 80.91.229.12 (17 Apr 2010 20:22:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 20:22:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 17 22:22:49 2010 connect(): No such file or directory Return-path: 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.69) (envelope-from ) id 1O3EXM-0004vb-Mt for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 22:22:48 +0200 Original-Received: from localhost ([127.0.0.1]:48324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3EXK-0004il-F1 for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 16:22:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3B8M-0006xH-9l for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 12:44:42 -0400 Original-Received: from [140.186.70.92] (port=54728 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3B8J-0006x6-Ln for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 12:44:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3B8H-0001ID-5M for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 12:44:39 -0400 Original-Received: from mail-pw0-f41.google.com ([209.85.160.41]:55525) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3B8H-0001Ho-0E for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 12:44:37 -0400 Original-Received: by pwi2 with SMTP id 2so3420537pwi.0 for ; Sat, 17 Apr 2010 09:44:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=ksl1ESVH3Wit4hPNq2Ygo3gmcE3qcuggUW9xXzsQvsU=; b=T6eB9acedE5q9qNOL/ve4/HTPBSfNyOHfqv5Rk+1AGzQOO+mYBnZLpSl66zFWL+DNL ZJ1YTd55UeW38JQshumPNwUD+YHWsaJgz0MJVkNdvVmnI++roNGT7A1r+FQpWJWVuiAx Sxwg27d6DlJtk7aASFVZooG0WIYGEI8GELsAo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Y813jc5FOwOFXXJQjkx7Df8M2qeqOhj5V5Xec9UCGpZFSW85XbEXYiKKfAbEj+DHuK Pg+g7v4ddm5aeqH/5uSZaZlFZK1/UWYc/fxkUS2bpx/eI4hZy7/iYo/V/5q7KtSounsV gS6O5T/gekHOzuT3V2+XMj0hjdHZqf47/hQOI= Original-Received: by 10.142.43.21 with HTTP; Sat, 17 Apr 2010 09:44:35 -0700 (PDT) Original-Received: by 10.142.210.16 with SMTP id i16mr1424756wfg.166.1271522675328; Sat, 17 Apr 2010 09:44:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Sat, 17 Apr 2010 16:21:19 -0400 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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:72738 Archived-At: I was wondering how to tell emacs not to allow style changes that change font face. In particular, latex-mode causes a number of changes I don't like: - Text inside of a \section{} or \subsection{} block is bigger and variable-width - Superscripts and subscripts are shown in superscript or subscript, making them smaller. I find syntax highlighting very useful, so I don't want to disable font-lock altogether. Is there any way to prevent changes to the font size or face (i.e. I don't want anything to become bigger, smaller, or change in font, but color changes are OK)? I've tried (setq font-lock-maximum-decoration X) with X as nil and t, but nil is too little (i.e. it completely gets rid of syntax highlighting), and t is too much (i.e. it's overly decorated as described above). Here are the relevant (i.e. non-comment) lines of my .emacs: ;;;;;;;;;;;; (modify-frame-parameters nil '((wait-for-wm . nil))) (set-background-color "black") (set-foreground-color "white") (set-cursor-color "white") (global-font-lock-mode t) (show-paren-mode) ;;;;;;;;;;;; I'm using emacs 22.2.1 on Debian (lenny). Thanks, Ramesh