emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Indraneel Majumdar <indraneel@indraneel.info>
To: Scot Becker <scot.becker@gmail.com>
Cc: orgmode <emacs-orgmode@gnu.org>
Subject: Re: Latex exporter bug or feature?
Date: Mon, 04 Oct 2010 05:47:11 +0530	[thread overview]
Message-ID: <4CA91D07.2060909@indraneel.info> (raw)
In-Reply-To: <AANLkTikMZbL7CqpisApN3XO1rZQEzkbJjhxOCFMuysBo@mail.gmail.com>

  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
> <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
>>
> _______________________________________________
> 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-04  0:21 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
2010-10-04  0:17   ` Indraneel Majumdar [this message]

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=4CA91D07.2060909@indraneel.info \
    --to=indraneel@indraneel.info \
    --cc=emacs-orgmode@gnu.org \
    --cc=scot.becker@gmail.com \
    /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).