Re: [O] LaTeX export - can't skip a heading level

2012-03-21 Thread Achim Gratz
Nick Dokos nicholas.do...@hp.com writes:
 
 Especially as this is a limitation of LaTeX, not the exporter.
 
 :-)

 Not true - the following compiles with no problems:

Yes, LaTeX doesn't really enforce it, but it makes the assumption of
correct nesting.  It's been a few years since I tried something like
you've posted, but I've quickly learned that funny things happen when
your document grows to a more realistic size (it had to do with how the
counters are interacting).  So I've stopped doing it and have never
looked back.  If you must, you can provide your own sectioning commands
in LaTeX that handle this situation more gracefully, but that's really a
bit much to ask of an org exporter, don't you think?


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

SD adaptation for Waldorf rackAttack V1.04R1:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




Re: [O] LaTeX export - can't skip a heading level

2012-03-21 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote:

 Nick Dokos nicholas.do...@hp.com writes:
  
  Especially as this is a limitation of LaTeX, not the exporter.
  
  :-)
 
  Not true - the following compiles with no problems:
 
 Yes, LaTeX doesn't really enforce it, but it makes the assumption of
 correct nesting.  It's been a few years since I tried something like
 you've posted, but I've quickly learned that funny things happen when
 your document grows to a more realistic size (it had to do with how the
 counters are interacting).  So I've stopped doing it and have never
 looked back.  If you must, you can provide your own sectioning commands
 in LaTeX that handle this situation more gracefully, but that's really a
 bit much to ask of an org exporter, don't you think?
 

Certainly - I did not argue that the exporter should do this. I just
pointed out its limitation and that the limitation would be tough to
lift.

Nick



[O] LaTeX export - can't skip a heading level

2012-03-20 Thread Richard Stanton
Using org-mode 7.8.03, I've found that exporting to LaTeX has a tough time
if you try to skip a header level. For example, to prevent my TODO items
being numbered, one method is to make them a lower-level heading, and then
make that level un-numbered.

However, if I try the following:

* To Do List
*** TODO First item
*** TODO Second item

Then when exported to LaTeX, only the title appears (both TODO items are
excluded).

I tried make the first title one level lower, like this:

** To Do List
*** TODO First item
*** TODO Second item

* Next Section

Now the TODO list exports, though it now treats ** as the section header,
so it hasn't solved that problem, and moreover, the next section is
omitted entirely.










Re: [O] LaTeX export - can't skip a heading level

2012-03-20 Thread Nick Dokos
Richard Stanton stan...@haas.berkeley.edu wrote:

 Using org-mode 7.8.03, I've found that exporting to LaTeX has a tough time
 if you try to skip a header level. For example, to prevent my TODO items
 being numbered, one method is to make them a lower-level heading, and then
 make that level un-numbered.
 
 However, if I try the following:
 
 * To Do List
 *** TODO First item
 *** TODO Second item
 

Does this do what you want?

--8---cut here---start-8---

#+OPTIONS: num:1

* To Do List
** TODO First item
** TODO Second item
--8---cut here---end---8---

Nick

PS. Not sure why the third level headlines are skipped if the second level
headline is absent. This feels like a bug to me.

 Then when exported to LaTeX, only the title appears (both TODO items are
 excluded).
 
 I tried make the first title one level lower, like this:
 
 ** To Do List
 *** TODO First item
 *** TODO Second item
 
 * Next Section
 
 Now the TODO list exports, though it now treats ** as the section header,
 so it hasn't solved that problem, and moreover, the next section is
 omitted entirely.
 
 
 
 
 
 
 
 



Re: [O] LaTeX export - can't skip a heading level

2012-03-20 Thread Richard Stanton
 From: nicholas.do...@hp.com [mailto:nicholas.do...@hp.com]
 Sent: Tuesday, March 20, 2012 12:55 PM
 To: Richard Stanton
 Cc: emacs-orgmode@gnu.org; nicholas.do...@hp.com
 Subject: Re: [O] LaTeX export - can't skip a heading level
 
 Richard Stanton stan...@haas.berkeley.edu wrote:
 
  Using org-mode 7.8.03, I've found that exporting to LaTeX has a tough
  time if you try to skip a header level. For example, to prevent my
  TODO items being numbered, one method is to make them a lower-level
  heading, and then make that level un-numbered.
 
  However, if I try the following:
 
  * To Do List
  *** TODO First item
  *** TODO Second item
 
 
 Does this do what you want?
 
 --8---cut here---start-8---
 
 #+OPTIONS: num:1
 
 * To Do List
 ** TODO First item
 ** TODO Second item
 --8---cut here---end---8---

Not quite, I don't think, as it removes numbers from *all* second level headers.



Re: [O] LaTeX export - can't skip a heading level

2012-03-20 Thread Nick Dokos
Nick Dokos nicholas.do...@hp.com wrote:

 Richard Stanton stan...@haas.berkeley.edu wrote:
 
  Using org-mode 7.8.03, I've found that exporting to LaTeX has a tough time
  if you try to skip a header level. For example, to prevent my TODO items
  being numbered, one method is to make them a lower-level heading, and then
  make that level un-numbered.
  
  However, if I try the following:
  
  * To Do List
  *** TODO First item
  *** TODO Second item
  
 
  Then when exported to LaTeX, only the title appears (both TODO items are
  excluded).
  
 PS. Not sure why the third level headlines are skipped if the second level
 headline is absent. This feels like a bug to me.
 

The latex exporter is very rigid about what it will accept: it wants the
levels to be in strict sequence. So this has to be chalked down as a
fairly deeply ingrained limitation of the exporter. I don't see an easy way
to lift it.

Nick



Re: [O] LaTeX export - can't skip a heading level

2012-03-20 Thread Achim Gratz
Nick Dokos nicholas.do...@hp.com writes:
 The latex exporter is very rigid about what it will accept: it wants the
 levels to be in strict sequence. So this has to be chalked down as a
 fairly deeply ingrained limitation of the exporter. I don't see an easy way
 to lift it.

Especially as this is a limitation of LaTeX, not the exporter.

:-)


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

DIY Stuff:
http://Synth.Stromeko.net/DIY.html




Re: [O] LaTeX export - can't skip a heading level

2012-03-20 Thread Nick Dokos
Achim Gratz strom...@nexgo.de wrote:

 Nick Dokos nicholas.do...@hp.com writes:
  The latex exporter is very rigid about what it will accept: it wants the
  levels to be in strict sequence. So this has to be chalked down as a
  fairly deeply ingrained limitation of the exporter. I don't see an easy way
  to lift it.
 
 Especially as this is a limitation of LaTeX, not the exporter.
 
 :-)
 
 

Not true - the following compiles with no problems:

--8---cut here---start-8---
...
\begin{document}

\maketitle

\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}

\section{foo}
\label{sec-1}

\subsubsection{baz}
\label{sec-1-1-1}
\subsubsection{hunoz}
\label{sec-1-1-2}

\end{document}
--8---cut here---end---8---

Nick