From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhao Ma Subject: use custom "cls" style file as export template for LaTeX/PDF Date: Sat, 26 Nov 2016 19:34:05 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114d6dee6b9f8f05423d847a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34663) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAnQR-0003S8-88 for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 19:34:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAnQM-0002JJ-C2 for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 19:34:35 -0500 Received: from dmz-mailsec-scanner-3.mit.edu ([18.9.25.14]:59639) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cAnQM-0002HL-4p for emacs-orgmode@gnu.org; Sat, 26 Nov 2016 19:34:30 -0500 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id uAR0YRp5031401 for ; Sat, 26 Nov 2016 19:34:28 -0500 Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) (authenticated bits=0) (User authenticated as x__x@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id uAR0YPDv002785 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sat, 26 Nov 2016 19:34:27 -0500 Received: by mail-yw0-f169.google.com with SMTP id a10so88726968ywa.3 for ; Sat, 26 Nov 2016 16:34:26 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --001a114d6dee6b9f8f05423d847a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I've been struggling for this question for several days and cannot find any info on the web. I have a separate cls file that contains the style for LaTeX export. I'd like to write thesis using this template in org, but the info I found is all about adding this: (add-to-list 'org-latex-classes '("custom-cls" "\\documentclass{custom-cls} [NO-DEFAULT-PACKAGES] [EXTRA]" ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) =E2=80=8BBut there is a lot of things in my cls file... Is there anyway I can link the cls file or define it somewhere so that org-mode will know its existance? How can I define it?=E2=80=8B =E2=80=8BThank you.=E2=80=8B --=20 *PLEASE THINK BEFORE YOU PRINT, PLEASE.* --001a114d6dee6b9f8f05423d847a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I've been struggling for this question for several days and ca= nnot find any info on the web.

I have a separate cls file that contains the st= yle for LaTeX export.
I'd like to write thesis using this template in org, = but the info I found is all about adding this:

= =C2=A0 (add-to-list 'org-latex-classes
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '("custom-cls"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&q= uot;\\documentclass{custom-cls}
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[NO-DEFAULT-PACKAGES]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[EXTR= A]"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0("\\section{%s}" . "\\section*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0("\\subsection{%s}" . "\\subsection*{%s}")
<= div class=3D"gmail_default">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0("\\subsubsection{%s}" . "\\subsubsection*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0("\\paragraph{%s}" . "\\paragraph*{%s}")
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(= "\\subparagraph{%s}" . "\\subparagraph*{%s}")))
=
=E2=80=8BBut there is a lot of things in my cls file...
Is there an= yway I can link the cls file or define it somewhere so that org-mode will k= now its existance?
How can I define it?=E2=80=8B

=E2=80=8BThank you.= =E2=80=8B
--
PLEASE THINK BEFORE YOU PRINT, PLEASE.
--001a114d6dee6b9f8f05423d847a--