diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex b/Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex new file mode 100644 index 00000000000..ac07ed3040a --- /dev/null +++ b/Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex @@ -0,0 +1,56 @@ +%% +%% This is file `pdf-toc.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdfpages.dtx (with options: `example3') +%% +%% This file is a demonstration of the pdfpages package. +%% Run it through pdfLaTeX. +%% +%% Please send error reports and suggestions for improvements to +%% Andreas MATTHIAS <amat@kabsi.at>. +%% + +\documentclass[a4paper]{book} +\usepackage{pdfpages} +\usepackage{verbatim} +\usepackage[plainpages=false, pdfpagelabels, + bookmarksopen]{hyperref} + +\begin{document} +\tableofcontents + +\chapter{How to create a toc} + +The next pages were inserted using the following command: + +\begin{verbatim} +\includepdf[pages=1-6, + pagecommand={}, + addtotoc={1, chapter, 0, Main chapter, cha:main, + 1, section, 1, First section, sec:first, + 3, section, 1, Second section, sec:second}, + trim=0 120 0 120, clip]{dummy.pdf} +\end{verbatim} + +\noindent +See Chapter \ref{cha:main} (\nameref{cha:main}) on page +\pageref{cha:main}.\par\noindent +See Section \ref{sec:first} (\nameref{sec:first}) on page +\pageref{sec:first}.\par\noindent +See Section \ref{sec:second} (\nameref{sec:second}) on page +\pageref{sec:second}. + +\includepdf[pages=1-6, + pagecommand={}, + addtotoc={1, chapter, 0, Main chapter, cha:main, + 1, section, 1, First section, sec:first, + 3, section, 1, Second section, sec:second}, + trim=0 120 0 120, clip]{dummy.pdf} + +\end{document} +\endinput +%% +%% End of file `pdf-toc.tex'. |