"Fossies" - the Fresh Open Source Software Archive

Member "hevea-2.35/hyperref.hva" (16 Jan 2021, 2703 Bytes) of package /linux/www/hevea-2.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 \ProvidesPackage{hyperref}
    2 \RequirePackage{url}
    3 \RequirePackage{labeltype}
    4 \@primitives{hyperref}
    5 \newcommand{\@hr@expand}[1]
    6 {\begingroup\catcode`\%=12\catcode`\~=12#1\endgroup}
    7 \newcommand{\texorpdfstring}[2]{#1}
    8 \newcommand{\hyperlink}[2]{\ahrefloc{#1}{#2}}
    9 \newcommand{\hypertarget}[2]{\aname{#1}{#2}}
   10 \newcommand{\hyperdef}[3]{\hypertarget{#1.#2}{#3}}
   11 \newcommand{\hyperbaseurl}[1]{}
   12 \newcommand{\@hyperreflabel}[2]{\ahrefloc{\@getprint{#1}}{{\let\ref\@auxread#2}}}
   13 \newcommand{\hyperref}[1][]
   14 {\ifoptarg\let\hyper@next\@hyperreflabel\else
   15 \let\hyper@next\@hyperref\fi
   16 \hyper@next{#1}}
   17 \def\url{\begingroup
   18 \def\UrlLeft##1\UrlRight{\ahrefurl{##1}}%
   19 \urlstyle{tt}%
   20 \Url}
   21 \newcommand{\hypersetup}[1]{}
   22 %%%%%%%%%%%%%%%%%
   23 %%Autoref stuff%%
   24 %%%%%%%%%%%%%%%%%
   25 %%Load list of words according to language
   26 \input{hrlang.hva}
   27 \newcommand{\HyLang@DeclareLang}[3]
   28 {\DeclareOption{#1}{\csname HyLang@#2\endcsname}}
   29 \HyLang@DeclareLang{english}{english}{}
   30 \HyLang@DeclareLang{UKenglish}{english}{}
   31 \HyLang@DeclareLang{british}{english}{}
   32 \HyLang@DeclareLang{USenglish}{english}{}
   33 \HyLang@DeclareLang{american}{english}{}
   34 \HyLang@DeclareLang{german}{german}{}
   35 \HyLang@DeclareLang{austrian}{german}{}
   36 \HyLang@DeclareLang{ngerman}{german}{}
   37 \HyLang@DeclareLang{naustrian}{german}{}
   38 \HyLang@DeclareLang{brazil}{portuges}{}
   39 \HyLang@DeclareLang{brazilian}{portuges}{}
   40 \HyLang@DeclareLang{portuguese}{portuges}{}
   41 \HyLang@DeclareLang{spanish}{spanish}{}
   42 \HyLang@DeclareLang{afrikaans}{afrikaans}{}
   43 \HyLang@DeclareLang{french}{french}{}
   44 \HyLang@DeclareLang{frenchb}{french}{}
   45 \HyLang@DeclareLang{francais}{french}{}
   46 \HyLang@DeclareLang{acadian}{french}{}
   47 \HyLang@DeclareLang{canadien}{french}{}
   48 \HyLang@DeclareLang{italian}{italian}{}
   49 \HyLang@DeclareLang{magyar}{magyar}{}
   50 \HyLang@DeclareLang{hungarian}{magyar}{}
   51 %%English default
   52 \HyLang@english
   53 %%Get the right sectionname macro from type
   54 \newcommand{\@hr@name}[1]
   55 {\ifu\csname #1autorefname\endcsname\csname #1name\endcsname\else
   56 \csname #1autorefname\endcsname\fi}
   57 \let\@hr@deflabeltype\@deflabeltype
   58 \def\@deflabeltype#1#2{%
   59 \@hr@deflabeltype{#1}{#2}
   60 \def\csname @hr@#1@name\endcsname{\@hr@name{#2}}%
   61 }
   62 %%expand \ref so as to include section name in link.
   63 \newcommand{\autoref}[1]{%
   64 \@locref{\@check@anchor@label{#1}}{\csname @hr@#1@name\endcsname~\@auxread{#1}}}
   65 \newcommand{\autopageref}[1]{%
   66 \@locref{\@check@anchor@label{#1}}{\pageautorefname~??}}
   67 %%non-referencing forms
   68 \newcommand{\ref*}[1]{\begin{@norefs}\ref{#1}\end{@norefs}}
   69 \newcommand{\pageref*}[1]{\begin{@norefs}\pageref{#1}\end{@norefs}}
   70 \newcommand{\autoref*}[1]{\begin{@norefs}\autoref{#1}\end{@norefs}}
   71 \newcommand{\autopageref*}[1]{\begin{@norefs}\autopageref{#1}\end{@norefs}}
   72 \ProcessOptions*