diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/xbmks/examples |
Initial commit
Diffstat (limited to 'macros/latex/contrib/xbmks/examples')
-rw-r--r-- | macros/latex/contrib/xbmks/examples/doc1.pdf | bin | 0 -> 18419 bytes | |||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/doc1.tex | 50 | ||||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/doc2.pdf | bin | 0 -> 17032 bytes | |||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/doc2.tex | 48 | ||||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/master.pdf | bin | 0 -> 23076 bytes | |||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/master.tex | 105 | ||||
-rw-r--r-- | macros/latex/contrib/xbmks/examples/stand-alone.tex | 55 |
7 files changed, 258 insertions, 0 deletions
diff --git a/macros/latex/contrib/xbmks/examples/doc1.pdf b/macros/latex/contrib/xbmks/examples/doc1.pdf Binary files differnew file mode 100644 index 0000000000..f975d83b0e --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/doc1.pdf diff --git a/macros/latex/contrib/xbmks/examples/doc1.tex b/macros/latex/contrib/xbmks/examples/doc1.tex new file mode 100644 index 0000000000..1c5da0183c --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/doc1.tex @@ -0,0 +1,50 @@ +\documentclass[12pt]{article} +\usepackage{xcolor} +%\usepackage{xr-hyper} +\usepackage[bookmarksopen,bookmarksnumbered]{hyperref} +\usepackage{xbmks} + + +% the xr-hyper package may also be used if you have +% cross document links within the body of the doc +%\externaldocument[m-]{master} +%\externaldocument[d2-]{doc2} + +% just for laughs, we transfer the last section number from master +\setcounter{section}{2} + +\begin{document} + +\section{Doc 1: Sec 1}\label{sec1} + +Some content goes here. + +\belowpdfbookmarkx{Home page}[action={/S/URI/URI(http://www.acrotex.net)},% + color=magenta,style={it} +]{home} + + +\newpage + +\subsection{Doc 1: subSec 1} + +Some content goes here. + +\newpage + +\subsection{Doc 1: subSec 2} + +Some content goes here. + +\newpage + +\section{Doc 1: Sec 2} + +Some content goes here.: go to Section~\ref{sec1} + +\newpage + +\subsection{Doc 1: subSec 1} + + +\end{document} diff --git a/macros/latex/contrib/xbmks/examples/doc2.pdf b/macros/latex/contrib/xbmks/examples/doc2.pdf Binary files differnew file mode 100644 index 0000000000..488cae0379 --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/doc2.pdf diff --git a/macros/latex/contrib/xbmks/examples/doc2.tex b/macros/latex/contrib/xbmks/examples/doc2.tex new file mode 100644 index 0000000000..8bc8ebb833 --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/doc2.tex @@ -0,0 +1,48 @@ +\documentclass[12pt]{article} +\usepackage{xcolor} +%\usepackage{xr-hyper} +\usepackage[bookmarksopen,bookmarksnumbered]{hyperref} +\usepackage{xbmks} + +% just for laughs, we transfer the last section number from doc2 +\setcounter{section}{4} + + +% the xr-hyper package may also be used if you have +% cross document links within the body of the doc +%\externaldocument[m-]{master} +%\externaldocument[d1-]{doc1} + +\begin{document} + +\section{Doc 2: Sec 1} + +\belowpdfbookmarkx{Home page}[action={/S/URI/URI(http://www.acrotex.net)},% + color=magenta,style={bf}]{home} + +Some content goes here. + +\newpage + +\subsection{Doc 2: subSec 1} + +Some content goes here. + +\section{Doc 2: Sec 2} + +\subsection{Doc 2: subSec 1} + +Some content goes here. + +\newpage + +\subsection{Doc 2: subSec 2} + +Some content goes here. + +\subsection{Doc 2: subSec 3} + +Some content goes here. + + +\end{document} diff --git a/macros/latex/contrib/xbmks/examples/master.pdf b/macros/latex/contrib/xbmks/examples/master.pdf Binary files differnew file mode 100644 index 0000000000..dbc1ca0451 --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/master.pdf diff --git a/macros/latex/contrib/xbmks/examples/master.tex b/macros/latex/contrib/xbmks/examples/master.tex new file mode 100644 index 0000000000..5dc32e5967 --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/master.tex @@ -0,0 +1,105 @@ +\documentclass[12pt]{article} +\usepackage{xcolor} +%\usepackage{xr-hyper} +\usepackage[bookmarksopen,bookmarksnumbered]{hyperref} +%\usepackage{eforms} +\usepackage{xbmks} + +% the xr-hyper package may also be used if you have +% cross document links within the body of the doc +%\externaldocument[d1-]{doc1} +%\externaldocument[d2-]{doc2} + +\title{On merging bookmarks for several documents} +\author{D. P. Story} + +% The \xbmksetup command is placed in only +% one of the collection. It is written to xbmks.cfg +% in input by the other files to obtain uniformity +% of option choices. +\xbmksetup{% + docbundle={master,doc1,doc2}, + colors={int=red,ext}, + styles={intbf} +} + +\begin{document} + +\maketitle + +\tableofcontents + +% color and style specified. This will be how these entries are displayed across +% all documents in the bundle +\pdfbookmarkx[1]{http://blog.acrotex.net}[action={/S/URI/URI(http://blog.acrotex.net)},% + color=magenta,style={bf}]{blog} +\currentpdfbookmarkx{http://www.acrotex.net}[action={/S/URI/URI(http://www.acrotex.net)},% + color=magenta,style={bf}]{home} +\currentpdfbookmarkx{First page}[action={/S/Named/N/FirstPage},% + color=magenta,style={bf}]{First} +\currentpdfbookmarkx{Last page}[action={/S/Named/N/LastPage},% + color=magenta,style={bf}]{Last} + +% the eforms versions of the above +%\pdfbookmarkx[1]{http://blog.acrotex.net}[action={\URI{http://blog.acrotex.net}},% +% color=magenta,style={bf}]{blog} +%\currentpdfbookmarkx{http://www.acrotex.net}[action={\URI{http://www.acrotex.net}},% +% color=magenta,style={bf}]{home} +%\currentpdfbookmarkx{First page}[action={\Named{FirstPage}},% +% color=magenta,style={bf}]{First} +%\currentpdfbookmarkx{Last page}[action={\Named{LastPage}},% +% color=magenta,style={bf}]{Last} + +\section{Master One} + +Some content goes here. + +% color and style not specified, this bookmark will take on the default +% color and style as declared in the \xbmksetup command. +\belowpdfbookmarkx{JavaScript Action}[% + action={/S/JavaScript/JS(app.alert("Hello World!\\n\\nAnnounced from the document " + + this.documentFileName);)}]{jsa} + +% eforms version +%\belowpdfbookmarkx{JavaScript Action}[ +% action={\JS{app.alert("Hello World!\\n\\nAnnounced from the document " +% + this.documentFileName);}]{jsa} + +% color and style not specified, this bookmark will take on the default +% color and style as declared in the \xbmksetup command. +\belowpdfbookmarkx{Go to doc1, page 2}[action={/S/GoToR/F(doc1.pdf)/D[1 /Fit]}]{gotor1} +% eforms version +%\belowpdfbookmarkx{Go to doc1, page 2}[action={\GoToR/F(doc1.pdf)/D[1 /Fit]}]{gotor} + +\hypersetup{bookmarksopen=false} +% This next bookmark is a title only, the actions is to jump to an destination not defined +\subpdfbookmarkx{Sub: Optional Bookmarks}[action={/S/GoTo/D(undefined)}]{optBmks} +\belowpdfbookmarkx{doc1, page 3}[action={/S/GoToR/F(doc1.pdf)/D[2 /Fit]}]{gotor2} +\belowpdfbookmarkx{doc2, page 2}[action={/S/GoToR/F(doc2.pdf)/D[1 /Fit]}]{gotor3} +\hypersetup{bookmarksopen=true} + +\subsection{Master One: subSec 1} + +Some content goes here. + + +\newpage + + +\section{Master Two} + +Some content goes here. + +\subsection{Master Two: subSec 1} + +Some content goes here. + +\newpage + +\subsection{Master Two: subSec 2} + +Some content goes here. + + +\end{document} + diff --git a/macros/latex/contrib/xbmks/examples/stand-alone.tex b/macros/latex/contrib/xbmks/examples/stand-alone.tex new file mode 100644 index 0000000000..9751e99c22 --- /dev/null +++ b/macros/latex/contrib/xbmks/examples/stand-alone.tex @@ -0,0 +1,55 @@ +\documentclass[12pt]{article} +\usepackage{xcolor} +\usepackage[bookmarksopen]{hyperref} +\usepackage{xbmks} + +\title{Stand alone document} +\author{D. P. Story} + +\xbmksetup{% +% docbundle={\jobname}, + colors={int=red,ext}, + styles={intbf} +} + +\begin{document} + +\maketitle + +\pdfbookmarkx[1]{http://blog.acrotex.net}[action={/S/URI/URI(http://blog.acrotex.net)},% + color=magenta,style={bf}]{blog} + + +\section{Section One} + +When the \texttt{docbundle} key is either empty or is not present, \textsf{xbmks} sets its value +to \verb~\jobname~. No cross-document bookmarks are generated because there is no ``bundle'' specified +(multiple values for \texttt{docbundle} are needed); instead, we obtain a standard document +with bookmarks, but the color and style of of the bookmarks are controlled by the \texttt{colors} +and \texttt{styles} keys, as seen in the preamble. + +\subsection{Section One: subSec 1} + +Some content goes here. + +\newpage + + +\section{Section Two} + +Some content goes here. + + +\subsection{Section Two: subSec 1} + +Some content goes here. + +\newpage + +\subsection{Section Two: subSec 2} + +Some content goes here. + + +\end{document} + |