[Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Sebastian Hofer
At Tue, 22 Jun 2010 15:06:08 +0200,
Carsten Dominik wrote:
> 
> 
> On Jun 22, 2010, at 2:51 PM, Robert Hennig wrote:
> 
> > Sebastian Hofer wrote:
> >> At Tue, 22 Jun 2010 11:51:30 +0200,
> >> Giovanni Ridolfi wrote:
> >>> Sebastian Hofer  writes:
> >>>
>  I'm working on a customized latex-export-class for a CV.
> >>> nice!
>  I noticed that if you skip a level in the outline structure
>  (cf. example below) it is not exported to latex.
>  Is there a reason for this
> >>> IIRC it depends in how is written the LaTeX export.
> >>> (I thought I've read recently this answer by Carsten, but,  
> >>> unfortunately,
> >>> I can't find the citation in the list archive)
> >>>
>  or could this be changed easily?
> >>> IMHO skipping a level it's   a bit illogical
> >>> ;-)
> >> I guess it depends on the situation, it may or may not be illogical.
> >> Anyway, I don't see a reason why the user should not be allowed to  
> >> decide himself or herself to skip a level.
> >>
> >> Cheers,
> >> Sebastian
> >>
> >
> > I'm working on the translation of a book and the Table of Contents  
> > has a
> > odd structure. I would also appreciate if skipping a level in the
> > structure could be possible. One reason to have this working is
> > if you want to have a itemized outline at several levels.
> 
> 
> I have nothing against skipping levels - the HTML exporter
> allows it.  But, the LaTeX exporter does not.  If someone can
> come up with a good patch, I'd consider putting it in.  The
> patch may not be trivial though...
> 
I will try to come up with one, but I'm not sure I can do it as my lisp skills 
are still quite basic. So if anyone else wants to take a
shot at this, I'm thankful for any help!
Thanks for the clarification though!

Cheers,
Sebastian



___
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


[Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Sébastien Vauban
Hi all,

Carsten Dominik wrote:
> On Jun 22, 2010, at 2:51 PM, Robert Hennig wrote:
>> Sebastian Hofer wrote:
>>> Giovanni Ridolfi wrote:
 Sebastian Hofer  writes:
>
> I noticed that if you skip a level in the outline structure (cf. example
> below) it is not exported to latex. Is there a reason for this?

 IIRC it depends in how is written the LaTeX export.

 IMHO skipping a level it's   a bit illogical
>>>
>>> I guess it depends on the situation, it may or may not be illogical.
>>
>> I'm working on the translation of a book and the Table of Contents has a
>> odd structure. I would also appreciate if skipping a level in the structure
>> could be possible.
>
> I have nothing against skipping levels - the HTML exporter allows it. But,
> the LaTeX exporter does not. If someone can come up with a good patch, I'd
> consider putting it in. The patch may not be trivial though...

Just for the sake of completeness, here is another (very) good reason to allow
such a thing: for Beamer, with the sidebar outer theme, which allows you to
see, on every slide, where you are in the TOC (up to 2 levels).

If you have such a TOC:

--8<---cut here---start->8---
1. Intro
2. The meat
   1. Why?
   2. Why not?
3. Conclusion
--8<---cut here---end--->8---

and have frames level beginning at 3, you would have in Org:

--8<---cut here---start->8---
* Intro

*** Introduction

This is first slide.

* The meat

** Why?

*** Why to do this?

Second slide.

** Why not?

*** Why not to do this?

Third slide.

* Conclusion

*** Conclusion

Last slide.
--8<---cut here---end--->8---

So, the solutions are:

1. To allow for skipped levels
   -> Sidebar is exactly as it should.

2. Not to export skipped levels
   -> You need to insert a level-2 for the Introduction and Conclusion

   a. Empty title (such as `** ')
  -> Empty space in the TOC displayed in the sidebar
  -> Bad!

   b. Repeat the title of level-1
  -> Not nice...

So, allowing for skipped levels seems the only nice way for me. Did you follow
me?

Best regards,
  Seb

-- 
Sébastien Vauban


___
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


Re: [Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Nick Dokos
Sebastian Hofer  wrote:

> At Tue, 22 Jun 2010 11:51:30 +0200,
> Giovanni Ridolfi wrote:
> > 
> > Sebastian Hofer  writes:
> > 
> > > I'm working on a customized latex-export-class for a CV.
> > nice!
> > > I noticed that if you skip a level in the outline structure
> > > (cf. example below) it is not exported to latex. 
> > > Is there a reason for this 
> > IIRC it depends in how is written the LaTeX export.
> > (I thought I've read recently this answer by Carsten, but, unfortunately,
> > I can't find the citation in the list archive)
> > 
> > > or could this be changed easily? 
> > IMHO skipping a level it's   a bit illogical 
> > ;-)
> I guess it depends on the situation, it may or may not be illogical.
> Anyway, I don't see a reason why the user should not be allowed to decide 
> himself or herself to skip a level.
> 

If the outline tree were a real tree, skipping a level would be
equivalent to chopping out a node somewhere in the middle. Would you
expect the tree to stay intact?

Tongue-firmly-in-cheek-ly yours,
Nick

___
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


Re: [Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Carsten Dominik


On Jun 22, 2010, at 2:51 PM, Robert Hennig wrote:


Sebastian Hofer wrote:

At Tue, 22 Jun 2010 11:51:30 +0200,
Giovanni Ridolfi wrote:

Sebastian Hofer  writes:


I'm working on a customized latex-export-class for a CV.

nice!

I noticed that if you skip a level in the outline structure
(cf. example below) it is not exported to latex.
Is there a reason for this

IIRC it depends in how is written the LaTeX export.
(I thought I've read recently this answer by Carsten, but,  
unfortunately,

I can't find the citation in the list archive)


or could this be changed easily?

IMHO skipping a level it's   a bit illogical
;-)

I guess it depends on the situation, it may or may not be illogical.
Anyway, I don't see a reason why the user should not be allowed to  
decide himself or herself to skip a level.


Cheers,
Sebastian



I'm working on the translation of a book and the Table of Contents  
has a

odd structure. I would also appreciate if skipping a level in the
structure could be possible. One reason to have this working is
if you want to have a itemized outline at several levels.



I have nothing against skipping levels - the HTML exporter
allows it.  But, the LaTeX exporter does not.  If someone can
come up with a good patch, I'd consider putting it in.  The
patch may not be trivial though...

- Carsten


___
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


Re: [Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Robert Hennig
Sebastian Hofer wrote:
> At Tue, 22 Jun 2010 11:51:30 +0200,
> Giovanni Ridolfi wrote:
>> Sebastian Hofer  writes:
>>
>>> I'm working on a customized latex-export-class for a CV.
>> nice!
>>> I noticed that if you skip a level in the outline structure
>>> (cf. example below) it is not exported to latex. 
>>> Is there a reason for this 
>> IIRC it depends in how is written the LaTeX export.
>> (I thought I've read recently this answer by Carsten, but, unfortunately,
>> I can't find the citation in the list archive)
>>
>>> or could this be changed easily? 
>> IMHO skipping a level it's   a bit illogical 
>> ;-)
> I guess it depends on the situation, it may or may not be illogical.
> Anyway, I don't see a reason why the user should not be allowed to decide 
> himself or herself to skip a level.
> 
> Cheers,
> Sebastian
> 

I'm working on the translation of a book and the Table of Contents has a
odd structure. I would also appreciate if skipping a level in the
structure could be possible. One reason to have this working is
if you want to have a itemized outline at several levels.

Best regards,
Robert Hennig
> 
> 
> 
> ___
> 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


[Orgmode] Re: latex export - skipping lvls breaks export

2010-06-22 Thread Sebastian Hofer
At Tue, 22 Jun 2010 11:51:30 +0200,
Giovanni Ridolfi wrote:
> 
> Sebastian Hofer  writes:
> 
> > I'm working on a customized latex-export-class for a CV.
> nice!
> > I noticed that if you skip a level in the outline structure
> > (cf. example below) it is not exported to latex. 
> > Is there a reason for this 
> IIRC it depends in how is written the LaTeX export.
> (I thought I've read recently this answer by Carsten, but, unfortunately,
> I can't find the citation in the list archive)
> 
> > or could this be changed easily? 
> IMHO skipping a level it's   a bit illogical 
> ;-)
I guess it depends on the situation, it may or may not be illogical.
Anyway, I don't see a reason why the user should not be allowed to decide 
himself or herself to skip a level.

Cheers,
Sebastian




___
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