From mboxrd@z Thu Jan 1 00:00:00 1970 From: Indraneel Majumdar Subject: Re: Latex exporter bug or feature? Date: Mon, 04 Oct 2010 05:47:11 +0530 Message-ID: <4CA91D07.2060909@indraneel.info> References: <4CA86118.7000101@indraneel.info> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=43635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2Yja-0007OL-0D for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 20:21:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2YjW-00037o-Ic for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 20:16:47 -0400 Received: from mailout07.yourhostingaccount.com ([65.254.253.62]:46557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2YjW-00037F-Dt for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 20:16:46 -0400 Received: from mailscan05.yourhostingaccount.com ([10.1.15.5] helo=mailscan05.yourhostingaccount.com) by mailout07.yourhostingaccount.com with esmtp (Exim) id 1P2YjS-0005t0-O7 for emacs-orgmode@gnu.org; Sun, 03 Oct 2010 20:16:42 -0400 In-Reply-To: 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: Scot Becker Cc: orgmode Thanks, but it looks complex. Anyway, my problem is solved. I wrote a custom hook to strip out all the subsubsections during export. Latex doesn't care if subsubsections exist or not and neither do I if they have some unique name like "STRIP" that is easy to regexp. It also takes care of preventing accidental shifting of the first paragraph to some other heading level if I unknowingly press TAB. Indraneel On 2010-10-04 4:04, Scot Becker wrote: > This is, if I remember right, a feature. Or at least a known > limitation, a deliberate attempt to respect document structure. Can > you perhaps get what you want by customizing org-export-latex-classes > to start the numbering already on heading level 4? For example one of > it's 'stanzas' looks like this: > > ("article" "\\documentclass[11pt, a4paper]{article}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}") > ("\\paragraph{%s}" . "\\paragraph*{%s}") > ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) > > So make a custom one that looks like this: > > ("myarticle" "\\documentclass[11pt, a4paper]{article}" > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) > > ... and make sure it gets added into the existing list of classes > properly. i.e correctly enclosed in parentheses. This is untested. > > Org-mode seems to hold pretty tightly to proper tree structure. I > think you'll have to achieve what you want by some means other than > skipping a heading level > > > Scot > > On Sun, Oct 3, 2010 at 11:55 AM, Indraneel Majumdar > wrote: >> Or am I doing something wrong? >> >> With >> #+OPTIONS H:5 >> >> paragraphs are not exported if subsubsection is missing. >> >> eg. my orgfile: >> >> * Section >> ** Sub section >> **** >> My paragraph starts here... >> >> >> The paragraph is not exported. The reason I want H:5 is that this is the >> simplest way to obtain numbered paragraphs (I do not have to put >> \paragraph{} in front of every paragraph). >> >> Please help, >> >> Indraneel >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >