diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex index aaff43b7c4e..600de1c65bb 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex @@ -40,7 +40,7 @@ %% \NeedsTeXFormat{LaTeX2e} \documentclass{article} -\usepackage{zref-base,zref-titleref}[2010/04/22] +\usepackage{zref-base,zref-titleref}[2010/04/23] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} @@ -63,27 +63,29 @@ \makeatother \begin{document} -\section{Hello \textbf{World}} +\section{\textit{Hello} \textbf{World}} \label{sec:hello} \makeatletter -\zref@newprop{foo}[D\@empty efault]{V\@empty alue} +\zref@newprop{foo}[\@empty D\@empty efault]{\@empty V\@empty alue} \begin{qstest}{getcurrent}{getcurrent} - \Test{\zref@getcurrent{foo}}{Value}{V\noexpand\@empty alue}% + \Test{\zref@getcurrent{foo}}% + {Value}{\noexpand\@empty V\noexpand\@empty alue}% \Test{\zref@getcurrent{xy}}{}{}% \end{qstest} \begin{qstest}{extract}{extract} \def\textbf#1{<#1>}% - \Test{\zref@extractdefault{xy}{page}{D\@empty efault}}% - {Default}{D\noexpand\@empty efault}% - \Test{\zref@extractdefault{sec:hello}{foo}{A\@empty B}}% - {AB}{A\noexpand\@empty B}% + \def\textit#1{[#1]}% hash-ok + \Test{\zref@extractdefault{xy}{page}{\@empty D\@empty efault}}% + {Default}{\noexpand\@empty D\noexpand\@empty efault}% + \Test{\zref@extractdefault{sec:hello}{foo}{\@empty A\@empty B}}% + {AB}{\noexpand\@empty A\noexpand\@empty B}% \Test{\zref@extract{sec:hello}{foo}}% - {Default}{D\noexpand\@empty efault}% + {Default}{\noexpand\@empty D\noexpand\@empty efault}% \zref@ifrefundefined{sec:hello}{% }{% \Test{\zref@extract{sec:hello}{default}}{1}{1}% \Test{\zref@extract{sec:hello}{title}}% - {Hello <World>}{Hello \noexpand\textbf{World}}% + {[Hello] <World>}{\noexpand\textit{Hello} \noexpand\textbf{World}}% }% \end{qstest} \end{document} |