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
<indran...@indraneel.info>  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


_______________________________________________
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

Reply via email to