Настройка hyperref

This commit is contained in:
Andrei Astafev 2019-09-11 07:02:54 +03:00
parent c4b4a79740
commit fee1c77737

View File

@ -96,7 +96,18 @@
\renewcommand{\date}[1]{\XESPDdate{#1}}
\RequirePackage{xespdafterpkg}
\RequirePackage{ifxetex}
\XESPD@after@package{hyperref}{%
\hypersetup{breaklinks,pdftitle=\XESPDtheUnitName,%
pdfsubject=\XESPDtheDocName,pdfauthor=\XESPDtheAuthor}}
\ifxetex
\hypersetup{xetex,%
breaklinks,pdftitle=\XESPDtheUnitName,%
\XESPD@lang,unicode=true,pdfusetitle,bookmarks=true,%
pdfsubject=\XESPDtheDocName,pdfauthor=\XESPDtheAuthor}
\else
\hypersetup{%
breaklinks,pdftitle=\XESPDtheUnitName,%
\XESPD@lang,unicode=true,pdfusetitle,bookmarks=true,%
pdfsubject=\XESPDtheDocName,pdfauthor=\XESPDtheAuthor}
\fi
}