From 7f9da8b48f1f21b75250389612d18db9956b0c3d Mon Sep 17 00:00:00 2001 From: Niklas Bogensperger Date: Mon, 6 Jun 2022 19:09:09 +0200 Subject: [PATCH] [v2.1][9/?] Rename 'hyperref' option to 'references' Problem: The 'hyperref' option does not only include the package 'hyperref' anymore ever since v2. This is somewhat undesirable as it may cause confusion in the future. Resolution: Rename 'hyperref' option to 'references'. Caveats: This may create some breakage if any documents have used this option on its own, but that should be the minority (if there are even any). Due to this, it may not be a fully backwards-compatible functionality change, but in my opinion still minor enough to warrant only a minor version bump 2.0 -> 2.1. --- README.md | 2 +- atlas-preamble.sty | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d949f9f..5f8d13f 100644 --- a/README.md +++ b/README.md @@ -31,8 +31,8 @@ Somewhat more detailed descriptions, explanations, and potential caveats can be | **captionsfootnotes** | | | ⬤ | ⬤ | | | ⬤ | ⬤ | | **cs** | | | | | ⬤ | | ⬤ | ⬤ | | **headings** | | | | ⬤ | | | ⬤ | ⬤ | -| **hyperref** | | | ⬤ | ⬤ | | | ⬤ | ⬤ | | **physics** | | | ⬤ | ⬤ | ⬤ | | ⬤ | ⬤ | +| **references** | | | ⬤ | ⬤ | | | ⬤ | ⬤ | | **statistics** | | | | | | ⬤ | ⬤ | ⬤ | | **theorems** | | | | ⬤ | | | ⬤ | ⬤ | |||||||||| diff --git a/atlas-preamble.sty b/atlas-preamble.sty index 9c33bc5..5578d85 100644 --- a/atlas-preamble.sty +++ b/atlas-preamble.sty @@ -23,10 +23,10 @@ \newif\if@encoding \newif\if@graphics \newif\if@headings -\newif\if@hyperref \newif\if@lists \newif\if@math \newif\if@physics +\newif\if@references \newif\if@spacings \newif\if@statistics \newif\if@tables @@ -54,10 +54,10 @@ \DeclareOption{encoding}{\@encodingtrue} \DeclareOption{graphics}{\@graphicstrue} \DeclareOption{headings}{\@headingstrue} -\DeclareOption{hyperref}{\@hyperreftrue} \DeclareOption{lists}{\@liststrue} \DeclareOption{math}{\@mathtrue} \DeclareOption{physics}{\@physicstrue} +\DeclareOption{references}{\@referencestrue} \DeclareOption{spacings}{\@spacingstrue} \DeclareOption{statistics}{\@statisticstrue} \DeclareOption{tables}{\@tablestrue} @@ -85,8 +85,8 @@ \baseoptions \extraoptions \@captionsfootnotestrue - \@hyperreftrue \@physicstrue + \@referencestrue } % script options @@ -95,8 +95,8 @@ \extraoptions \@captionsfootnotestrue \@headingstrue - \@hyperreftrue \@physicstrue + \@referencestrue \@theoremstrue } @@ -122,8 +122,8 @@ \@captionsfootnotestrue \@cstrue \@headingstrue - \@hyperreftrue \@physicstrue + \@referencestrue \@statisticstrue \@theoremstrue } @@ -133,13 +133,13 @@ \baseoptions \extraoptions \@captionsfootnotestrue + \@codetrue \@cstrue \@headingstrue - \@hyperreftrue \@physicstrue + \@referencestrue \@statisticstrue \@theoremstrue - \@codetrue } % fallback for unknown options @@ -380,7 +380,7 @@ \fi -\if@hyperref +\if@references \@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}} % see comment for package 'hyperref' below