emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Scot Becker <scot.becker@gmail.com>
To: Indraneel Majumdar <indraneel@indraneel.info>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Latex exporter bug or feature?
Date: Sun, 3 Oct 2010 23:34:56 +0100	[thread overview]
Message-ID: <AANLkTikMZbL7CqpisApN3XO1rZQEzkbJjhxOCFMuysBo@mail.gmail.com> (raw)
In-Reply-To: <4CA86118.7000101@indraneel.info>

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
<indraneel@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
>

  reply	other threads:[~2010-10-03 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-03 10:55 Latex exporter bug or feature? Indraneel Majumdar
2010-10-03 22:34 ` Scot Becker [this message]
2010-10-04  0:17   ` Indraneel Majumdar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTikMZbL7CqpisApN3XO1rZQEzkbJjhxOCFMuysBo@mail.gmail.com \
    --to=scot.becker@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=indraneel@indraneel.info \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).