Skip to content

Commit

Permalink
[v2.1][9/?] Rename 'hyperref' option to 'references'
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
niklasbogensperger committed Jun 6, 2022
1 parent 7386903 commit 7f9da8b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Somewhat more detailed descriptions, explanations, and potential caveats can be
| **captionsfootnotes** | | ||| | |||
| **cs** | | | | || |||
| **headings** | | | || | |||
| **hyperref** | | ||| | |||
| **physics** | | |||| |||
| **references** | | ||| | |||
| **statistics** | | | | | ||||
| **theorems** | | | || | |||
||||||||||
Expand Down
16 changes: 8 additions & 8 deletions atlas-preamble.sty
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -85,8 +85,8 @@
\baseoptions
\extraoptions
\@captionsfootnotestrue
\@hyperreftrue
\@physicstrue
\@referencestrue
}

% script options
Expand All @@ -95,8 +95,8 @@
\extraoptions
\@captionsfootnotestrue
\@headingstrue
\@hyperreftrue
\@physicstrue
\@referencestrue
\@theoremstrue
}

Expand All @@ -122,8 +122,8 @@
\@captionsfootnotestrue
\@cstrue
\@headingstrue
\@hyperreftrue
\@physicstrue
\@referencestrue
\@statisticstrue
\@theoremstrue
}
Expand All @@ -133,13 +133,13 @@
\baseoptions
\extraoptions
\@captionsfootnotestrue
\@codetrue
\@cstrue
\@headingstrue
\@hyperreftrue
\@physicstrue
\@referencestrue
\@statisticstrue
\@theoremstrue
\@codetrue
}

% fallback for unknown options
Expand Down Expand Up @@ -380,7 +380,7 @@
\fi


\if@hyperref
\if@references
\@ifpackageloaded{xcolor}{}{\RequirePackage{xcolor}}
% see comment for package 'hyperref' below

Expand Down

0 comments on commit 7f9da8b

Please sign in to comment.