[O] TOC in a buffer

2014-06-30 Thread Sharon Kimble
Following on from the theme of Table of Contents, is it possible to
just have a TOC for the file that it is in? Like -
--8---cut here---start-8---
-*- mode: org -*-
#+STARTUP: overview

Table of Contents

 * blah
 ** de blah
Blurb and onwards. 
--8---cut here---end---8---

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, fluxbox 1.3.5, emacs 24.3.92.1


signature.asc
Description: PGP signature


Re: [O] TOC in a buffer

2014-06-30 Thread Thomas S. Dye
Aloha Sharon,

Sharon Kimble boudic...@skimble.plus.com writes:

 Following on from the theme of Table of Contents, is it possible to
 just have a TOC for the file that it is in? Like -
 -*- mode: org -*-
 #+STARTUP: overview

 Table of Contents

  * blah
  ** de blah
 Blurb and onwards. 

I'm not sure I understand your question.  If you are looking for a table
of contents that shows in the buffer, rather than just in exported
files, then you might take a look at the Imenu package, which on my Mac
gives a drop down menu in the tool bar that shows the first two levels
of headings in the file, and at John Kitchin's org-ref code, discussed
on the list recently, which implements a link that not only shows the
table of contents when it is clicked, but also exports correctly.

hth,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



Re: [O] TOC in a buffer

2014-06-30 Thread Eric Abrahamsen
Sharon Kimble boudic...@skimble.plus.com writes:

 Following on from the theme of Table of Contents, is it possible to
 just have a TOC for the file that it is in? Like -

 -*- mode: org -*-
 #+STARTUP: overview

 Table of Contents

  * blah
  ** de blah
 Blurb and onwards. 

 Thanks
 Sharon.

Yup, try org-toc in the contrib directory.