GeneralExporting JUST the table of content to PDF

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Da Masda
Posts: 2
Joined: Thu Nov 22, 2012 1:56 pm

Exporting JUST the table of content to PDF

Post by Da Masda »

Hi there,
I want to export a single page, in that case the table of content, of a document to a PDF file. I use PDFLaTeX. The answer in that similar case is not suitable for me because I am not working with Lyx, I do use Kile.
I'm sorry if this topic is not postet in the right subject area, I couldn't find a section for "pdfLaTeX", please move the topic to the right place, if necessary.
Thanks for your help!
--------------------------------------------------
EDIT: I solved the problem using the command "pdfseparate -f FIRSTPAGENUMBERHERE -l LASTPAGENUMBERHERE /documentdirectory/my-report.pdf /documentdirectory/my-report-toc.pdf", but that "solution" has nothing to do with LaTeX, you can just use it when running a Linux OS. So if there is a way using LaTeX code to extract just a number of chosen pages it would be great if somebody could share the solution!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Exporting JUST the table of content to PDF

Post by kaiserkarl13 »

In the case of the table of contents, try creating a new file containing something like this:

Code: Select all

\documentclass{report}
\begin{document}
\input{filename.toc}
\end{document}
More generally, you can use the pdfpages command to select a specific range of pages to include in a document.
Post Reply