Skip to content

Commit

Permalink
Merge pull request #408 from BITNP/fky-dev
Browse files Browse the repository at this point in the history
refactor: colorize hyperlinks
  • Loading branch information
YDX-2147483647 authored Mar 15, 2024
2 parents e6e2dd1 + 7f07e3c commit 399cf88
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bithesis-doc.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1248,12 +1248,14 @@ \subsubsection{其他配置}
hideLinks = (*(true)|false*)
\end{bitsyntax}

此选项用于控制是否隐藏超链接的颜色。
此选项用于控制是否隐藏超链接的颜色。(只影响显示效果;即使不隐藏,打印效果也一样。)

为了减少歧义,此选项默认值为 |true|,即隐藏超链接的颜色。

\textit{请在导言区使用此选项。}

相关功能由 \pkg{hyperref} 宏包支持,可参阅其手册进一步用 \cs{hypersetup} 定制。

\end{function}

\subsubsection{常量名称覆盖}
Expand Down
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

0 comments on commit 399cf88

Please sign in to comment.