orcidlink
loads package hyperref
without option, but lni
wants to load hyperref
with option bookmarks=false
via \AtEndPreamble
, after it has been loaded by orcidlink
(without option). This fails. Unfortunately adding bookmarks=false
to the global options (aka optional argument of \documentclass
) does not help in this case. But using \PassOptionsToPackage{bookmarks=false}{hyperref}
before \documentclass
does work:
\PassOptionsToPackage{bookmarks=false}{hyperref}
\documentclass{lni}
\usepackage{orcidlink}
\begin{document}
\end{document}
Using \AtEndPreamble
to load orcidlink
would also work, because in this case it is loaded after hyperref
(from within lni
) and loading a package without option, that already has been loaded with option, is valid.
\documentclass{lni}
\AtEndPreamble{\usepackage{orcidlink}}
\begin{document}
\end{document}
See the etoolbox
manual for more information about \AtEndPreamble
.
Please note: This answer does not constitute an opinion as to the acceptability by the GI of documents prepared using any of the suggestions.
\usepackage
top most or even\RequirePackage{orcidlink}
before the\documentclass
?