From mboxrd@z Thu Jan 1 00:00:00 1970 From: Suvayu Ali Subject: Re: Using the file as 1st level headline Date: Sat, 19 Sep 2015 12:25:56 +0200 Message-ID: <20150919102556.GY30959@chitra.no-ip.org> References: <877fnqqpg0.fsf@ntnu.no> <87vbb9crfu.fsf@ucl.ac.uk> <876139q6bo.fsf@ntnu.no> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFLH-0005OI-HN for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:26:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdFLE-0004U8-DB for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:26:03 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:35327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFLE-0004Ty-6U for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:26:00 -0400 Received: by wicge5 with SMTP id ge5so60316294wic.0 for ; Sat, 19 Sep 2015 03:25:59 -0700 (PDT) Received: from chitra.no-ip.org (5072840E.static.ziggozakelijk.nl. [80.114.132.14]) by smtp.gmail.com with ESMTPSA id jw9sm13330461wjb.28.2015.09.19.03.25.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 19 Sep 2015 03:25:58 -0700 (PDT) Content-Disposition: inline In-Reply-To: <876139q6bo.fsf@ntnu.no> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Thu, Sep 17, 2015 at 07:55:07PM +0200, Sven Bretfeld wrote: > > * TODO Write book on XY > ** Introduction > Text. > ********************* NEXT Something 1 > ********************* END > > ** Chapter 1 > Text. > ******************** TODO Something 2 > ******************** END If you are using latex export, you should be able to get the above structure to work with a custom latex-class. Here is an example: (add-to-list 'org-latex-classes '("withtodos" "\\documentclass[11pt]{scrreprt}" ("%%%% %s" . "%%%% %s") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) This will insert the top level headline as a comment. -- Suvayu Open source is the future. It sets us free.