diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-09 00:49:07 +0000 |
commit | 007f67a693e4d031fd3d792df8e4d5f43e2cb2e7 (patch) | |
tree | 90d17e00e572ecb1e24764b6f29c80e098b08d29 /Master/texmf-dist/doc/latex/pdfpages/pdf-toc.tex | |
parent | 950209b26f70aa87ed07c54f82a95b6f03b7c3a0 (diff) |
doc/latex
git-svn-id: svn://tug.org/texlive/trunk@84 c570f23f-e606-0410-a88d-b1316a301751
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'. |