From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scot Becker Subject: Re: LaTeX habits and org-mode Date: Fri, 20 Nov 2009 14:37:55 +0000 Message-ID: References: <2df5ce20911200559v2228f051jcf562430e4dc0fe8@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2059692835==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBUcw-0001Xp-Gj for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:38:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBUcv-0001WT-6N for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:38:21 -0500 Received: from [199.232.76.173] (port=54073 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBUcu-0001WF-CJ for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:38:20 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:27743) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBUcq-0000JD-JV for emacs-orgmode@gnu.org; Fri, 20 Nov 2009 09:38:17 -0500 Received: by ey-out-1920.google.com with SMTP id 3so1117097eyh.34 for ; Fri, 20 Nov 2009 06:38:15 -0800 (PST) In-Reply-To: <2df5ce20911200559v2228f051jcf562430e4dc0fe8@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emmanuel Di Pretoro Cc: emacs-orgmode@gnu.org --===============2059692835== Content-Type: multipart/alternative; boundary=00504502c7dd14bab50478ce6d38 --00504502c7dd14bab50478ce6d38 Content-Type: text/plain; charset=ISO-8859-1 Emmanuel, If the introduction LOOKs just like a normal chapter, then you just do: * Introduction In this paper I indend to once and for all solve the problem of [blaaa]. * Chapter One: The Problem * Chapter Two: Lame Previous Attempts at a Solution * Chapter Three: Appproach it Like This * Chapter Four: The Goods In other words, if this section is a chapter unto itself, just give it its own top level heading. What you then have to pay attention to is the way the org exports the LaTeX, which you do by adding a configuration to the org-export-latex-classes list, something like this: (setq org-export-latex-classes '(("book" "\\documentclass[11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))) I'm not sure if this one is useful as it is, so you might want to look at other (better formatted) examples as well. But the trick is just to tell org to assign first level headings to 'chapters'. Now if you don't want your introduction chapter numbered, that's a slightly different problem, which I'm not sure I know how to solve. Hope that gets you started. Scot On Fri, Nov 20, 2009 at 1:59 PM, Emmanuel Di Pretoro wrote: > Hi, > > I'm currently writing a document with org-mode instead of LaTeX. Usually, > with LaTeX, the first section of such a document is a > \chapter*{Introduction} where I explain the context of the document. How can > I do that with org-mode ? > > Thanks in advance, > > Emmanuel Di Pretoro > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --00504502c7dd14bab50478ce6d38 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Emmanuel,

If the introduction LOOKs just like a normal chapter, the= n you just do:

* Introduction

In this paper I indend to once= and for all solve the problem of [blaaa].

* Chapter One: The Proble= m
* Chapter Two: Lame Previous Attempts at a Solution
* Chapter Three:=A0 = Appproach it Like This
* Chapter Four: The Goods

In other words, = if this section is a chapter unto itself, just give it its own top level he= ading.=A0 What you then have to pay attention to is the way the org exports= the LaTeX, which you do by adding a configuration to the org-export-latex-= classes list, something like this:

(setq org-export-latex-classes '(("book" "\\document= class[11pt]{book}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\= n\\usepackage{graphicx}\n\\usepackage{longtable}\n\\usepackage{hyperref}&qu= ot;
=A0 ("\\chapter{%s}" . "\\chapter*{%s}")
=A0 ("= \\section{%s}" . "\\section*{%s}")
=A0 ("\\subsectio= n{%s}" . "\\subsection*{%s}")
=A0 ("\\subsubsection{= %s}" . "\\subsubsection*{%s}"))))

I'm not sure if this one is useful as it is, so you might want to l= ook at other (better formatted) examples as well.=A0 But the trick is just = to tell org to assign first level headings to 'chapters'.

Now if you don't want your introduction chapter numbered, that's a = slightly different problem, which I'm not sure I know how to solve.
=
Hope that gets you started.

Scot



On Fri, Nov 20, 2009 at 1:59 PM, Emmanuel Di Pretoro <= edipretoro@gmail.com>= wrote:
Hi,

I'm currently writing a document with org-mode instead of La= TeX. Usually, with LaTeX, the first section of such a document is a \chapte= r*{Introduction} where I explain the context of the document. How can I do = that with org-mode ?

Thanks in advance,

Emmanuel Di Pretoro

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--00504502c7dd14bab50478ce6d38-- --===============2059692835== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2059692835==--