Commit 83c544d8 authored by Giuseppe Castagna's avatar Giuseppe Castagna
Browse files

various modification to handle hyperlinks

parent 9747764c
......@@ -36,7 +36,17 @@
%\documentclass[sigplan,10pt,review,anonymous]{acmart}\settopmatter{printfolios=true,printccs=false,printacmref=false}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[hidelinks]{hyperref}
\usepackage{xcolor}
\definecolor[named]{ACMBlue}{cmyk}{1,0.1,0,0.1}
\definecolor[named]{ACMYellow}{cmyk}{0,0.16,1,0}
\definecolor[named]{ACMOrange}{cmyk}{0,0.42,1,0.01}
\definecolor[named]{ACMRed}{cmyk}{0,0.90,0.86,0}
\definecolor[named]{ACMLightBlue}{cmyk}{0.49,0.01,0,0}
\definecolor[named]{ACMGreen}{cmyk}{0.20,0,1,0.19}
\definecolor[named]{ACMPurple}{cmyk}{0.55,1,0,0.15}
\definecolor[named]{ACMDarkBlue}{cmyk}{1,0.58,0,0.21}
\usepackage[%hidelinks
]{hyperref}
\newif\ifelsevierstyle
\elsevierstyletrue
\newif\ifgenericfooter
......@@ -50,7 +60,7 @@
\longversiontrue
%\longversionfalse
\usepackage{setup}
%\date{May 8, 2021}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Note: Authors migrating a paper from PACMPL format to traditional
......@@ -102,6 +112,13 @@
\journal{}%Science of Computer Programming}
\hypersetup{
colorlinks,
linkcolor=ACMRed,
citecolor=ACMPurple,
urlcolor=ACMDarkBlue,
filecolor=ACMDarkBlue
}
\begin{document}
\begin{frontmatter}
......
......@@ -256,6 +256,43 @@
}
}%
\let\@evenfoot\@oddfoot}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip\footnotesize
\sbox\@tempboxa{#1: #2}%
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\AtBeginDocument{\@ifpackageloaded{hyperref}
{\def\@linkcolor{ACMPurple}
\def\@anchorcolor{ACMRed}
\def\@citecolor{ACMPurple}
\def\@filecolor{ACMDarkBlue}
\def\@urlcolor{ACMPurple}
\def\@menucolor{ACMDarkBlue}
\def\@pagecolor{ACMDarkBlue}
\begingroup
\@makeother\`%
\@makeother\=%
\edef\x{%
\edef\noexpand\x{%
\endgroup
\noexpand\toks@{%
\catcode 96=\noexpand\the\catcode`\noexpand\`\relax
\catcode 61=\noexpand\the\catcode`\noexpand\=\relax
}%
}%
\noexpand\x
}%
\x
\@makeother\`
\@makeother\=
}{}}
\fi
%%%%%% Dirty hack to save some space on the first page
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment