From xemacs-m  Fri Jan 24 16:10:02 1997
Received: from cs.uchicago.edu (alexandria.cs.uchicago.edu [128.135.11.87])
          by xemacs.org (8.8.4/8.8.4) with ESMTP
	  id QAA24141 for <xemacs-beta@xemacs.org>; Fri, 24 Jan 1997 16:10:01 -0600 (CST)
Received: from admiration.cs.uchicago.edu (admiration [128.135.164.32]) by cs.uchicago.edu (8.8.5/8.7.3) with ESMTP id QAA07422 for <xemacs-beta@xemacs.org>; Fri, 24 Jan 1997 16:10:01 -0600 (CST)
Received: (from csdayton@localhost) by admiration.cs.uchicago.edu (8.8.5/8.7.3) id QAA26036; Fri, 24 Jan 1997 16:10:01 -0600 (CST)
To: xemacs-beta@xemacs.org
Subject: [comp.emacs.xemacs] Latex-Tex mode queries
X-Face: `X="Sg7A[PL3/_8;>>ggjOy&\KtWiH7.wQ>Y"hQ2fxSG9RkPTCT}&^()5[Gp(-DaTf:t`MSBt@Li_C9U@y#i/c?i$uLQ8[';I$mMAm_rZta>l`STW_aA5`iD[!80p#_qmN4#tMu[Pu7wkIi)5*4YXAhg)9R2-BAWPbVOzgE$Ib4QuZn0YaE~'C/7h^CTuPybz$u
Mime-Version: 1.0 (generated by tm-edit 7.100)
Content-Type: multipart/mixed;
 boundary="Multipart_Fri_Jan_24_16:10:00_1997-1"
Content-Transfer-Encoding: 7bit
From: Soren Dayton <csdayton@cs.uchicago.edu>
Date: 24 Jan 1997 16:10:00 -0600
Message-ID: <xcdbuaelo7b.fsf@admiration.cs.uchicago.edu>
Lines: 92
X-Mailer: Red Gnus v0.83/XEmacs 19.15

--Multipart_Fri_Jan_24_16:10:00_1997-1
Content-Type: text/plain; charset=US-ASCII


This solves the guy's problems and makes it a little more sensible.  Of
course, the right thing to do is to tell him to use Auc-TeX.  I saw that
on the list of things to for XEmacs at one point.  What happened to that?

Soren

*** /tmp/tex-mode.el	Fri Jan 24 16:08:12 1997
--- /tmp/tex-mode.ela006F8	Fri Jan 24 16:08:12 1997
***************
*** 64,69 ****
--- 64,72 ----
    "*User defined LaTeX block names.
  Combined with `standard-latex-block-names' for minibuffer completion.")
  
+ (defvar tex-latex-document-regex "documentstyle\\|documentclass"
+   "matches the first command of a LaTeX document")
+ 
  (defvar slitex-run-command "slitex"
    "*Command used to run SliTeX subjob.
  If this string contains an asterisk (*), it will be replaced by the
***************
*** 70,75 ****
--- 73,81 ----
  filename; if not, the name of the file, preceded by blank, will be added to
  this string.")
  
+ (defvar tex-slitex-document-regex "documentstyle{slides}"
+   "Matches the first command of a slitex document")
+   
  (defvar tex-bibtex-command "bibtex"
    "*Command used by `tex-bibtex-file' to gather bibliographic data.
  If this string contains an asterisk (*), it will be replaced by the
***************
*** 214,221 ****
  				    (beginning-of-line)
  				    (search-forward "%" search-end t))))))
        (if (and slash (not comment))
! 	  (setq mode (if (looking-at "documentstyle")
!                          (if (looking-at "documentstyle{slides}")
                               'slitex-mode
                             'latex-mode)
  		       'plain-tex-mode))))
--- 220,227 ----
  				    (beginning-of-line)
  				    (search-forward "%" search-end t))))))
        (if (and slash (not comment))
! 	  (setq mode (if (looking-at tex-latex-document-regex)
!                          (if (looking-at tex-slitex-document-regex)
                               'slitex-mode
                             'latex-mode)
  		       'plain-tex-mode))))


--Multipart_Fri_Jan_24_16:10:00_1997-1
Content-Type: message/rfc822

From: pimirag@telerama.lm.com (PL. Miraglia)
Newsgroups: comp.emacs.xemacs
Subject: Latex-Tex mode queries
Date: 24 Jan 1997 15:03:32 -0500
Organization: Telerama Public Access Internet, Pittsburgh, PA
Message-ID: <m3915irgbv.fsf@Baboo.lm.com>


I need advice on 2 minor problems:

1) Xemacs 19.14 (on Redhat Linux 19.14) doesn't automatically recognize
Latex2e docs. I.e., *.tex docs starting with \documentclass are loaded
in tex-mode, while those with \documentstyle are loaded in
Latex-mode. Can this be corrected?

2) Xemacs doesn't distinguish between leftward and rightward single
quotes: I get the same character. E.g., a word in quotation marks
Latex-style would look like ``this''. Funny thing is, when I process the
latex file, things come out alright (i.e. with the correct quotoation
marks on the page). So it's just a problem with screen appearance, but
obviously I'd like to be able to see it right on the screen as well.

Thank you for any help,

-- 
---***---***---***---***---
Pierluigi Miraglia from the Linux Hybrid

    "Chapter xx: Lambada-Abstraction"
    (From: Math. Methods in Linguistics, 1991)

--Multipart_Fri_Jan_24_16:10:00_1997-1--

