emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Latex exporter bug or feature?
@ 2010-10-03 10:55 Indraneel Majumdar
  2010-10-03 22:34 ` Scot Becker
  0 siblings, 1 reply; 3+ messages in thread
From: Indraneel Majumdar @ 2010-10-03 10:55 UTC (permalink / raw)
  To: orgmode

  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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Latex exporter bug or feature?
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Scot Becker @ 2010-10-03 22:34 UTC (permalink / raw)
  To: Indraneel Majumdar; +Cc: orgmode

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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Latex exporter bug or feature?
  2010-10-03 22:34 ` Scot Becker
@ 2010-10-04  0:17   ` Indraneel Majumdar
  0 siblings, 0 replies; 3+ messages in thread
From: Indraneel Majumdar @ 2010-10-04  0:17 UTC (permalink / raw)
  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
> <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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-10-04  0:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).