summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/hyperref/test/testbma.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/hyperref/test/testbma.tex')
-rw-r--r--Master/texmf-dist/doc/latex/hyperref/test/testbma.tex157
1 files changed, 157 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/hyperref/test/testbma.tex b/Master/texmf-dist/doc/latex/hyperref/test/testbma.tex
new file mode 100644
index 00000000000..2bc603cc5ce
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/hyperref/test/testbma.tex
@@ -0,0 +1,157 @@
+% testbma.tex
+%
+% Function:
+% * How display a pdf reader the bookmarks?
+% * Some problematic unicode glyphs are shown
+% * in the bookmarks
+% * as screenshots.
+%
+% Copyright (c) 2000 by Heiko Oberdiek.
+%
+% This file is part of the `Hyperref Bundle'.
+% -------------------------------------------
+%
+% It may be distributed under the conditions of the LaTeX Project Public
+% License, either version 1.2 of this license or (at your option) any
+% later version. The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.2 or later is part of all distributions of LaTeX
+% version 1999/12/01 or later.
+%
+% The list of all files belonging to the `Hyperref Bundle' is
+% given in the file `manifest.txt'.
+%
+% Please send error reports and suggestions for improvements to
+% Heiko Oberdiek <oberdiek@ruf.uni-freiburg.de>.
+%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesFile{testbma.tex}[2000/07/04 v1.0 Test bookmark artefacts (HO)]
+\documentclass[12pt]{article}
+\usepackage{graphicx}
+\usepackage[unicode]{hyperref}
+\ifx\dimexpr\undefined
+ \usepackage{calc}
+\fi
+\hypersetup{
+ pdftitle={Bookmark artefacts of AcrobatReader},
+ pdfsubject={Unicode pdf bookmarks},
+ pdfauthor={Heiko Oberdiek},
+ pdfkeywords={PDF,bookmark,unicode},
+ pdfstartview=
+ {FitH \hypercalcbp{\paperheight-\topmargin-1in-\headheight}},
+ bookmarksopen
+}
+\usepackage{xspace}
+\usepackage{times}
+\pagestyle{empty}
+\newcounter{abc}
+\setcounter{abc}{0}
+\newcommand*{\test}[1]{%
+ \stepcounter{abc}%
+ \pdfbookmark[2]{#1}{x.\theabc}%
+}
+\newenvironment{testsec}[1]{%
+ \stepcounter{abc}%
+ \pdfbookmark[1]{#1}{sec.\theabc}%
+ \textbf{#1}\par
+}{
+ \clearpage
+}
+\newcommand*\x[2]{{} #1-#2 \xspace}
+\newcommand{\dotest}{%
+ \testskip
+ \test{\A\a}
+ \test{\B\b}
+ \test{\A\B}
+ \test{\a\b}
+ \test{\A\a\B\b}
+ \test{\B\b\A\a}
+}
+\newenvironment{testtab}{%
+ \begin{tabular}{l@{\quad=\quad}ll}%
+}{%
+ \end{tabular}%
+ \par
+}
+\newcommand*{\testpic}[1]{%
+ \testskip
+ \fbox{\includegraphics[width=.8\linewidth]{#1}}%
+}
+\newcommand{\testskip}{%
+ \vspace{3ex plus 1ex minus .5ex}%
+}
+\setlength{\parindent}{0pt}
+\begin{document}
+\centering
+\huge
+\begin{testsec}{OE oe}
+ \def\A{\x A{\80\226}}
+ \def\a{\x a{\80\234}}
+ \def\B{\x B{\81\122}}
+ \def\b{\x b{\81\123}}
+ \dotest
+ \begin{testtab}
+ A&\verb+\80\226+&(OE)\\
+ a&\verb+\80\234+&(oe)\\
+ B&\verb+\81\122+&(OE)\\
+ b&\verb+\81\123+&(oe)\\
+ \end{testtab}
+ \testpic{bmoe}
+\end{testsec}
+\begin{testsec}{Scaron scaron}
+ \def\A{\x A{\80\227}}
+ \def\a{\x a{\80\235}}
+ \def\B{\x B{\81\140}}
+ \def\b{\x b{\81\141}}
+ \dotest
+ \begin{testtab}
+ A&\verb+\80\227+&(Scaron)\\
+ a&\verb+\80\235+&(scaron)\\
+ B&\verb+\81\140+&(Scaron)\\
+ b&\verb+\81\141+&(scaron)\\
+ \end{testtab}
+ \testpic{bmsc}
+\end{testsec}
+\begin{testsec}{Zcaron zcaron}
+ \def\A{\x A{\80\231}}
+ \def\a{\x a{\80\236}}
+ \def\B{\x B{\81\175}}
+ \def\b{\x b{\81\176}}
+ \dotest
+ \begin{testtab}
+ A&\verb+\80\231+&(Zcaron)\\
+ a&\verb+\80\236+&(zcaron)\\
+ B&\verb+\81\175+&(Zcaron)\\
+ b&\verb+\81\176+&(zcaron)\\
+ \end{testtab}
+ \testpic{bmzc}
+\end{testsec}
+\begin{testsec}{Ydieresis dotlessi}
+ \def\A{\x A{\80\230}}
+ \def\a{\x a{\80\232}}
+ \def\B{\x B{\81\170}}
+ \def\b{\x b{\81\061}}
+ \dotest
+ \begin{testtab}
+ A&\verb+\80\230+&(Ydieresis)\\
+ a&\verb+\80\232+&(dotlessi)\\
+ B&\verb+\81\170+&(Ydieresis)\\
+ b&\verb+\81\061+&(dotlessi)\\
+ \end{testtab}
+ \testpic{bmyi}
+\end{testsec}
+\begin{testsec}{Lslash lslash}
+ \def\A{\x A{\80\225}}
+ \def\a{\x a{\80\233}}
+ \def\B{\x B{\81\101}}
+ \def\b{\x b{\81\102}}
+ \dotest
+ \begin{testtab}
+ A&\verb+\80\225+&(Lslash)\\
+ a&\verb+\80\233+&(lslash)\\
+ B&\verb+\81\101+&(Lslash)\\
+ b&\verb+\81\102+&(lslash)\\
+ \end{testtab}
+ \testpic{bml}
+\end{testsec}
+\end{document} \ No newline at end of file