Skip to content

Commit

Permalink
PDF links in orange, comments in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
tohecz committed Mar 22, 2015
1 parent d6ea049 commit 2e62e7c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Binary file modified ctutest.pdf
Binary file not shown.
18 changes: 16 additions & 2 deletions ctuth-pkg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -884,21 +884,35 @@

%%% HYPERREF

% since \hypersetup is looking for explicit spaces, we need to give them
\ExplSyntaxOff
\def\ctuthesis@hyperref@setupcolor#1#2#3#4{\hypersetup{#1=#2 #3 #4}}
\ExplSyntaxOn
\cs_set_eq:NN \ctuthesis_hyperref_setupcolor:nnnn \ctuthesis@hyperref@setupcolor

\ctuifswitch { pkg-hyperref } {
\usepackage[
pdfpagelayout=TwoPageRight, % Correct twopage layout with recto on the right
]{hyperref}
% Links with borders, in ToC only the page is linked
\hypersetup{colorlinks=false,linktocpage=true}
% Link borders orange
\ctuthesis_hyperref_setupcolor:nnnn { linkbordercolor } { 1 } { .373 } { 0 }
\ctuthesis_hyperref_setupcolor:nnnn { citebordercolor } { 1 } { .373 } { 0 }
\ctuthesis_hyperref_setupcolor:nnnn { filebordercolor } { 1 } { .373 } { 0 }
% Prepare PDFinfo
\cs_new:Nx \ctuthesis_hyperref_pdfinfo: {
pdfinfo = {
Title = \ctuthesis_field_use:n {pdftitle},
Author = \ctuthesis_field_use:n {pdfauthor},
}
}
\exp_args:NV \hypersetup \ctuthesis_hyperref_pdfinfo:
% \cs_show:N \ctuthesis_hyperref_pdfinfo:
}
}{}

%\ctuifswitch { pkg-hyperref } {
% \hypersetup{colorlinks=false,linktocpage=true,linkbordercolor=0 122 195}
%}



Expand Down

0 comments on commit 2e62e7c

Please sign in to comment.