1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 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}
|