Keep the same options when color is already passed
Use `\PassOptionsToPackage` instead of `\usepackage` when package color is already loaded. Resolves: #116 See also: #107
This commit is contained in:
parent
f73de97de9
commit
def68fce50
1 changed files with 4 additions and 4 deletions
|
@ -63,10 +63,10 @@ $endif$
|
|||
\usepackage[unicode=true]{hyperref}
|
||||
\fi
|
||||
}
|
||||
\makeatother
|
||||
\makeatletter
|
||||
\@ifpackageloaded{color}{}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
\@ifpackageloaded{color}{
|
||||
\PassOptionsToPackage{usenames,dvipsnames}{color}
|
||||
}{%
|
||||
\usepackage[usenames,dvipsnames]{color}
|
||||
}
|
||||
\makeatother
|
||||
\hypersetup{breaklinks=true,
|
||||
|
|
Loading…
Add table
Reference in a new issue