2

I am working on a thesis and need to create a contents page so that each entry is a link towards a section or subsection. The current layout I'm using is "Article".

How may I introduce a content page right after the abstract:

lyx contents page

so that the first entry (Introduction) will take the user to the Introduction section when clicked, in the PDF output document.

  • Try to put \tableofcontents where you want the Table of contents. And if you want it clickable, add the package hyperref – Jérôme Dequeker Nov 12 '15 at 15:00
  • Afterwards, how do I add individual sections to the table? lyx adds the sections and subsections (and numbers the automatically). Inline latex does not seem to work with lyx primitives. – Sebi Nov 12 '15 at 15:01
  • With the section command. For example, to write your "Introduction" title, just write \section{Introduction}. You shoud visit this website: en.wikibooks.org/wiki/LaTeX/Document_Structure – Jérôme Dequeker Nov 12 '15 at 15:02
  • Is there a way of dynamically adding the sections and subsections as well as their location within the document to the contents table? – Sebi Nov 14 '15 at 11:55
  • 1
    Yes, and it is explained in every LaTeX introduction and the LyX introduction. Investing 20 minutes in reading, and you would have had all your information. – Johannes_B Nov 14 '15 at 12:23
3

Within your document body, use Insert > List/TOC > Table of Contents:

enter image description here

This will insert a Table of Contents marker which will eventually output to a linked Table of Contents:

enter image description here

Also add hyperref support (Document > Settings... > PDF Properties > Use Hyperref Support) to enable hyperlinks from the ToC to the respective sections within your document:

enter image description here

  • I've already figured it out earlier Today, but thanks. – Sebi Nov 14 '15 at 18:13
  • 2
    @Sebi: It's part of the process here. Questions are asked, and they are hopefully answered... – Werner Nov 14 '15 at 18:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.