Skip to content

Commit

Permalink
use hypersetup for LuaLaTeX to create meta data. Closes: #1392. Due t…
Browse files Browse the repository at this point in the history
…o hyperref's limitation, metainfo is created only in ebook mode in LuaLaTeX.
  • Loading branch information
kmuto committed Aug 31, 2019
1 parent 136a400 commit 451f8f5
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions templates/latex/review-jlreq/review-base.sty
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
% jlreq用基本設定
\newcommand*\PDFDocumentInformation[1]{%
\AtBeginShipoutFirst{\special{pdf:docinfo <<#1>>}}}
\@onlypreamble\PDFDocumentInformation

\PDFDocumentInformation{
/Title (\review@booktitlename)
/Author (\review@autnames)
% /Subject ()
% /Keywords (,,)
/Creator (Re:VIEW \review@reviewversion, with LaTeX)
}
\def\recls@tmp{luatex}\ifx\recls@tmp\recls@driver
\hypersetup{
pdftitle={\review@booktitlename},
pdfauthor={\review@autnames},
pdfcreator={Re:VIEW \review@reviewversion, with LaTeX}
}
\else
\newcommand*\PDFDocumentInformation[1]{%
\AtBeginShipoutFirst{\special{pdf:docinfo <<#1>>}}}
\@onlypreamble\PDFDocumentInformation
\PDFDocumentInformation{
/Title (\review@booktitlename)
/Author (\review@autnames)
% /Subject ()
% /Keywords (,,)
/Creator (Re:VIEW \review@reviewversion, with LaTeX)
}
\fi

\RequirePackage{pxrubrica}
\@ifpackagelater{pxrubrica}{2017/04/20}{% true
Expand Down

0 comments on commit 451f8f5

Please sign in to comment.