From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: michael-franzese@gmx.com Newsgroups: gmane.emacs.help Subject: tex-mode.el code that decides what to do for superscripts and subsripts Date: Wed, 13 Jan 2021 20:41:20 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="594"; mail-complaints-to="usenet@ciao.gmane.io" To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 13 20:41:47 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kzm1b-00004y-SU for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 20:41:47 +0100 Original-Received: from localhost ([::1]:54478 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kzm1a-0008Im-UJ for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 13 Jan 2021 14:41:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44946) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzm1G-0008IE-1y for help-gnu-emacs@gnu.org; Wed, 13 Jan 2021 14:41:26 -0500 Original-Received: from mout.gmx.net ([212.227.17.21]:59369) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kzm1E-0001Y4-4y for help-gnu-emacs@gnu.org; Wed, 13 Jan 2021 14:41:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1610566880; bh=IItULgX99iQvD/0SkMx+wvLK9DpQYLFhg3174aRNPmw=; h=X-UI-Sender-Class:From:To:Subject:Date; b=jb3wLA6k5v625YKCJBCqTdyKfZuiJ9wKE3hkLIUBmNzCNc3uYsUxCnGlyv6ErHuY8 NAq6VWub9Ghih3/08/3fl7/Rg26HoIHLpbqz7rwtjLEsXdSvRTpZrLV9YaT4GF+NDN rbG1mrtIraLUrjF988Pbc9CCqi6dMU2NIgO/umT4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [195.88.86.12] ([195.88.86.12]) by web-mail.gmx.net (3c-app-mailcom-bs04.server.lan [172.19.170.170]) (via HTTP); Wed, 13 Jan 2021 20:41:20 +0100 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:b3UxWvnuU1iPqi82N2SpTb4X0XZiVEz+HCReVUcMo15VuANGmTfxGL/3+YmPrm/TF9poF lbGO8yhxjGOai/uIHJCv5IAIyzxBzQQMpwvwcHUCqt93tw1K+jj06TMFcXLsmSE3FhGahlfjHfgS KJqWYJ2L8wQoIWHqCXsYxmspec6k9fOln0b4sRxSnQoBePGx1nH8QykX/+aMO//J/byOKTrPYQva hcs+QtL1RyBPe1Uwac7z+opaHPsJksvsyPihVFj+EV6hfPJz3a91XJ3L6m4VFl8EK6rtRuIn0i+r AE= X-UI-Out-Filterresults: notjunk:1;V03:K0:someiHz+984=:qOfh6WDKIgtEtr9246Mo9x Rc+XpPtxBoJG9ywBE4Mkk2gcXtWzGQWrSy1ofnHakAHiUNtBcnG5Mdl94vDDUI1SPycqTfII4 bdFGf43a4V5jUcV9lotp9KG6EjVgVkIPZzBytrU7WZ7KSBKIjL9sEAa7BOygiDkfNEFGMGyXG UVL1XGdMpc8ihN2Bd0AXLKKp3EgaU9YrCPt4jhuXVto/+7ERgtwWIqFRJkJPJJR7VPhLWeyol 3gAH9AVIqI1Z/vFJgEDTr9elL8kIr6uVstbwDqXbHoKnfcmhuluX7i1HdC8SRjyszrFIq1M67 /gO5eBrV91xBv06qtYT44gGm2elfO6eWNtWKm5dNzhixmmJ3MvdcRpnTusoxbLiHb+d282NcV MMUWP58Dh5zrnC9tAzW01KOXP5frfEvNDZeKZFe3xez666XWSOnR1TLcKXJAWaVIXFlJ7P81e IOA7TYfxGzU8QhUpAzXUO5TTmmO4UvBvRGrwaUPoP/kyIn1EPo2bNZbcZIlz0URsjOlqAZ5zv BbGLdm7XTEqvg0Up5+yP+ztCSRwMLQePQB06w8ZwPFFdfu0NfuIIOeMAIF+jjhb/NDZq2KOBA TF3t+u0mXF6s1zP0wf/YUmjiTRiBRhgRpJ Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael-franzese@gmx.com; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:127223 Archived-At: I am trying to find the code that decides what to do for superscripts "^", "^{}" and subsripts "_", "_{}" in tex-mode.el. I copied over the following, but there has to be other stuff to make the smaller font take effect. (defun tex-font-lock-suscript (pos) (defun tex-font-lock-match-suscript (limit) (defun tex-font-lock-unfontify-region (beg end) (defcustom tex-suscript-height-ratio 0.8 (defcustom tex-suscript-height-minimum 0.0 (defun tex-suscript-height (height) (defface superscript (defface subscript