From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Bretfeld Subject: Re: Using the file as 1st level headline Date: Sat, 19 Sep 2015 12:59:07 +0200 Message-ID: <87oagy1xqc.fsf@ntnu.no> References: <877fnqqpg0.fsf@ntnu.no> <87vbb9crfu.fsf@ucl.ac.uk> <876139q6bo.fsf@ntnu.no> <20150919102556.GY30959@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFrP-000492-O3 for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:59:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZdFrM-0003ek-Hc for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:59:15 -0400 Received: from hylle06.itea.ntnu.no ([2001:700:300:3::235]:60934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZdFrM-0003e5-A8 for emacs-orgmode@gnu.org; Sat, 19 Sep 2015 06:59:12 -0400 In-reply-to: <20150919102556.GY30959@chitra.no-ip.org> 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: Suvayu Ali Cc: emacs-orgmode@gnu.org Suvayu Ali writes: > 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. This is great! I'd have never thought about this. Works perfectly. Thank you very much Sven -- Sven Bretfeld Department of Philosophy and Religious Studies NTNU Trondheim