Skip to content

Commit

Permalink
refactor: colorize hyperlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
fky2015 committed Feb 29, 2024
1 parent 4fc807e commit af43560
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bithesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1075,9 +1075,14 @@
\@@_load_font:

% misc / hideLinks 选项
\bool_if:NT \l_@@_misc_hide_links_bool
\bool_if:NTF \l_@@_misc_hide_links_bool
{
\hypersetup { hidelinks }
} {
\definecolor{blue}{RGB}{10,10,110}
\hypersetup{
colorlinks=true,
}
}

\@@_if_thesis_english:TF {
Expand Down
5 changes: 5 additions & 0 deletions templates/graduate-thesis/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@
% 比如注释掉的这一行:将会修改封面中的「申请学位级别」为「申请学位」。
% info / degree = {申\quad{}请\quad{}学\quad{}位},
% info / major = {学\quad{}科\hspace{5pt}/\hspace{5pt}类\quad{}别}
},
misc = {
% 关闭后,链接会用多种颜色表示,便于检查。
% 无论是否开启,都不会影响打印效果。
hideLinks = true,
}
}

Expand Down

1 comment on commit af43560

@YDX-2147483647
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议在文档里提一下和 hyperref 有关。那位同学私聊时,似乎一是不清楚“\BITSetup采用 LATEX3 风格的键值设置”,二是没发现需要\BITSetup\hypersetup两方面考虑。

Please sign in to comment.