From 7aaa90137387619d732979538d14fc0e952726ec Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Mon, 12 Feb 2024 22:12:31 -0800 Subject: [PATCH 1/5] Add crossmark button if \IACR@CROSSMARKURL is defined. --- iacrcc/iacrcc.cls | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/iacrcc/iacrcc.cls b/iacrcc/iacrcc.cls index 2839690..f71ecbc 100644 --- a/iacrcc/iacrcc.cls +++ b/iacrcc/iacrcc.cls @@ -50,6 +50,7 @@ \def\IACR@fp{1} \def\IACR@EISSN{} \def\IACR@DOI{} +\def\IACR@CROSSMARKURL{} \def\IACR@Received{20XX-XX-XX} \def\IACR@Revised{20XX-XX-XX} \def\IACR@Accepted{20XX-XX-XX} @@ -263,6 +264,26 @@ % End of macros for orcidlink %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% Macro for crossmark image. +\definecolor{c948f8f}{RGB}{148,143,143} +\definecolor{cd0d0d0}{RGB}{208,208,208} +\definecolor{ca0a0a0}{RGB}{192,192,192} +\definecolor{c535353}{RGB}{83,83,83} +\definecolor{cc72914}{RGB}{199,41,20} +\definecolor{cef3340}{RGB}{239,51,64} +\definecolor{c3eb1c8}{RGB}{62,177,200} +\definecolor{cffc72c}{RGB}{255,199,44} +\usepgflibrary{shadings} +\newcommand\crossmarkimage[1]{% +\begin{tikzpicture}[scale=#1, every node/.append style={scale=#1}, inner sep=0pt, outer sep=0pt] + \path[draw=c948f8f,top color=white,bottom color=ca0a0a0,fill=cd0d0d0,line width=0.0198cm,miter limit=10.0,rounded corners=0.0529cm] (0.1058, -0.1058) rectangle (7.0, -1.5875); + \node[text=c535353,anchor=south west] (text235) at (1.8, -1.15){\fontfamily{phv}\fontseries{sx}\selectfont \LARGE Check for updates}; + \path[fill=cc72914] (0.6599, -1.1044) -- (1.1393, -0.7848) -- (1.1393, -0.4011) -- (0.6599, -0.4011) -- (0.6599, -1.1044) -- (0.6599, -1.1044)-- cycle;; + \path[fill=cef3340] (1.1393, -1.1044) -- (0.6599, -0.7848) -- (0.6599, -0.4011) -- (1.1393, -0.4011) -- (1.1393, -1.1044) -- (1.1393, -1.1044)-- cycle;; + \path[fill=c3eb1c8] (0.8996, -0.3175)arc(90.0:360.0:0.5292)arc(0.0:90.0:0.5292) -- cycle(0.8996, -1.2462)arc(270.0:0.0:0.3995)arc(0.0:-90.0:0.3995) -- cycle; + \path[fill=cffc72c] (1.193, -1.1173)arc(317.2441:158.1926:0.3993) -- (0.418, -0.6281)arc(155.807:319.67:0.5292) -- cycle; +\end{tikzpicture}} +% end of crossmark image %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % This produces an icon for an external link. We use it as the external link % icon for onclick on authors. @@ -936,9 +957,10 @@ \small% \publname{}\\ \ifx\IACR@EISSN\@empty\else{ISSN~\IACR@EISSN, }\fi% - Vol.~\IACR@vol, No.~\IACR@no, \IACR@lp\ pages.% - \ifx\IACR@DOI\@empty\else\hfill{}\href{https://doi.org/\IACR@DOI}{https://doi.org/\IACR@DOI}\fi% - } + Vol.~\IACR@vol, No.~\IACR@no, \IACR@lp\ pages.} + \ifx\IACR@DOI\@empty\else\fancyhead[R]{\small% + \begin{tabular}{r}\href{https://doi.org/\IACR@DOI}{https://doi.org/\IACR@DOI}\ifx\IACR@CROSSMARKURL\@empty\else\vspace{2px}\\% + \href{\IACR@CROSSMARKURL}{\crossmarkimage{.35}}\fi\end{tabular}}\fi% }{}% final \ifx\@IACR@License\@empty\else% % If \license is provided show this for preprint and final (not for submission) From 37e368a474db1158edd66e50facec88a28c7730a Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Mon, 12 Feb 2024 23:50:14 -0800 Subject: [PATCH 2/5] Adjust headheight to allow image without complaint. --- iacrcc/iacrcc.cls | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/iacrcc/iacrcc.cls b/iacrcc/iacrcc.cls index f71ecbc..a6c99e3 100644 --- a/iacrcc/iacrcc.cls +++ b/iacrcc/iacrcc.cls @@ -275,11 +275,11 @@ \definecolor{cffc72c}{RGB}{255,199,44} \usepgflibrary{shadings} \newcommand\crossmarkimage[1]{% -\begin{tikzpicture}[scale=#1, every node/.append style={scale=#1}, inner sep=0pt, outer sep=0pt] + \begin{tikzpicture}[scale=#1, every node/.append style={scale=#1}, inner sep=0pt, outer sep=0pt] \path[draw=c948f8f,top color=white,bottom color=ca0a0a0,fill=cd0d0d0,line width=0.0198cm,miter limit=10.0,rounded corners=0.0529cm] (0.1058, -0.1058) rectangle (7.0, -1.5875); - \node[text=c535353,anchor=south west] (text235) at (1.8, -1.15){\fontfamily{phv}\fontseries{sx}\selectfont \LARGE Check for updates}; - \path[fill=cc72914] (0.6599, -1.1044) -- (1.1393, -0.7848) -- (1.1393, -0.4011) -- (0.6599, -0.4011) -- (0.6599, -1.1044) -- (0.6599, -1.1044)-- cycle;; - \path[fill=cef3340] (1.1393, -1.1044) -- (0.6599, -0.7848) -- (0.6599, -0.4011) -- (1.1393, -0.4011) -- (1.1393, -1.1044) -- (1.1393, -1.1044)-- cycle;; + \node[text=c535353,anchor=south west] (text235) at (1.8, -1.15){\fontfamily{phv}\selectfont \LARGE Check for updates}; + \path[fill=cc72914] (0.6599, -1.1044) -- (1.1393, -0.7848) -- (1.1393, -0.4011) -- (0.6599, -0.4011) -- (0.6599, -1.1044) -- (0.6599, -1.1044)-- cycle; + \path[fill=cef3340] (1.1393, -1.1044) -- (0.6599, -0.7848) -- (0.6599, -0.4011) -- (1.1393, -0.4011) -- (1.1393, -1.1044) -- (1.1393, -1.1044)-- cycle; \path[fill=c3eb1c8] (0.8996, -0.3175)arc(90.0:360.0:0.5292)arc(0.0:90.0:0.5292) -- cycle(0.8996, -1.2462)arc(270.0:0.0:0.3995)arc(0.0:-90.0:0.3995) -- cycle; \path[fill=cffc72c] (1.193, -1.1173)arc(317.2441:158.1926:0.3993) -- (0.418, -0.6281)arc(155.807:319.67:0.5292) -- cycle; \end{tikzpicture}} @@ -485,10 +485,12 @@ \global\let\date\relax \global\let\and\relax % Adjust header size for title page - \addtolength{\headheight}{\baselineskip}% + \ifx\IACR@CROSSMARKURL\@empty\addtolength{\headheight}{\baselineskip}\else% + \addtolength{\headheight}{2\baselineskip}\fi% \addtolength{\headsep}{-\baselineskip}% \afterpage{% - \global\advance\headheight by -\baselineskip% + \ifx\IACR@CROSSMARKURL\@empty\global\advance\headheight by -\baselineskip\else% + \global\advance\headheight by -2\baselineskip\fi \global\advance\headsep by \baselineskip% }% }% From 78a1774ce9386a73c9734f34f3e2ee0f0c62e7d4 Mon Sep 17 00:00:00 2001 From: Joppe Bos Date: Tue, 13 Feb 2024 17:10:09 +0100 Subject: [PATCH 3/5] Fixed a problem that the Received, Accepted, Published information was displayed also for non-final versions. --- iacrcc/iacrcc.cls | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/iacrcc/iacrcc.cls b/iacrcc/iacrcc.cls index a6c99e3..22fba41 100644 --- a/iacrcc/iacrcc.cls +++ b/iacrcc/iacrcc.cls @@ -972,22 +972,23 @@ \doclicenseText% \hfill{}% \doclicenseImage[imagewidth=4em]\\[.1em]% - \if@IACR@Received Received: \IACR@Received \hfill{}\fi% - \if@IACR@Revised Revised: \IACR@Revised \hfill{}\fi% - \if@IACR@Accepted Accepted: \IACR@Accepted \hfill{}\fi% - \if@IACR@Published Published: \IACR@Published\fi% - \if@IACR@Received\else + \ifcsstring{@IACRversion}{final}{% Only show this information on the final version + \if@IACR@Received Received: \IACR@Received \hfill{}\fi% + \if@IACR@Revised Revised: \IACR@Revised \hfill{}\fi% + \if@IACR@Accepted Accepted: \IACR@Accepted \hfill{}\fi% + \if@IACR@Published Published: \IACR@Published\fi% + }{% \ifdefined\@IACR@docdate@defined% \ifx\@IACR@docdate\@empty% - % an empty string was passed to indicate to - % *not* display any date + % an empty string was passed \documentdate to + % indicate to *not* display any date \else Date of this document: \@IACR@docdate.% \fi% !if \@IACR@docdate = \@empty \else% Date of this document: \ymdtoday.% \fi% !if \@IACR@docdate@defined is defined - \fi% + }% }% }% !if @IACRversion != submission \fi% !\@IACR@License From 4e378d62d4f18d326ff1848d41ad89d1c812c373 Mon Sep 17 00:00:00 2001 From: Kevin McCurley Date: Tue, 13 Feb 2024 17:46:26 -0800 Subject: [PATCH 4/5] We don't need dependence on shading, since axis is part of default tikz. --- iacrcc/iacrcc.cls | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iacrcc/iacrcc.cls b/iacrcc/iacrcc.cls index a6c99e3..9f48ea4 100644 --- a/iacrcc/iacrcc.cls +++ b/iacrcc/iacrcc.cls @@ -273,10 +273,9 @@ \definecolor{cef3340}{RGB}{239,51,64} \definecolor{c3eb1c8}{RGB}{62,177,200} \definecolor{cffc72c}{RGB}{255,199,44} -\usepgflibrary{shadings} \newcommand\crossmarkimage[1]{% \begin{tikzpicture}[scale=#1, every node/.append style={scale=#1}, inner sep=0pt, outer sep=0pt] - \path[draw=c948f8f,top color=white,bottom color=ca0a0a0,fill=cd0d0d0,line width=0.0198cm,miter limit=10.0,rounded corners=0.0529cm] (0.1058, -0.1058) rectangle (7.0, -1.5875); + \path[draw=c948f8f,shading=axis,top color=white,bottom color=ca0a0a0,fill=cd0d0d0,line width=0.0198cm,miter limit=10.0,rounded corners=0.0529cm] (0.1058, -0.1058) rectangle (7.0, -1.5875); \node[text=c535353,anchor=south west] (text235) at (1.8, -1.15){\fontfamily{phv}\selectfont \LARGE Check for updates}; \path[fill=cc72914] (0.6599, -1.1044) -- (1.1393, -0.7848) -- (1.1393, -0.4011) -- (0.6599, -0.4011) -- (0.6599, -1.1044) -- (0.6599, -1.1044)-- cycle; \path[fill=cef3340] (1.1393, -1.1044) -- (0.6599, -0.7848) -- (0.6599, -0.4011) -- (1.1393, -0.4011) -- (1.1393, -1.1044) -- (1.1393, -1.1044)-- cycle; From 073dc9f3fd2efc3ce2a6371547f8a40a8409a2c0 Mon Sep 17 00:00:00 2001 From: Joppe Bos Date: Wed, 14 Feb 2024 11:58:13 +0100 Subject: [PATCH 5/5] Remove Revised and Booleans --- iacrcc/iacrcc.cls | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/iacrcc/iacrcc.cls b/iacrcc/iacrcc.cls index b336232..61a2f6c 100644 --- a/iacrcc/iacrcc.cls +++ b/iacrcc/iacrcc.cls @@ -51,14 +51,9 @@ \def\IACR@EISSN{} \def\IACR@DOI{} \def\IACR@CROSSMARKURL{} -\def\IACR@Received{20XX-XX-XX} -\def\IACR@Revised{20XX-XX-XX} -\def\IACR@Accepted{20XX-XX-XX} -\def\IACR@Published{20XX-XX-XX} -\newif\if@IACR@Received \@IACR@Receivedfalse -\newif\if@IACR@Revised \@IACR@Revisedfalse -\newif\if@IACR@Accepted \@IACR@Acceptedfalse -\newif\if@IACR@Published \@IACR@Publishedfalse +\global\let\IACR@Received\@empty +\global\let\IACR@Accepted\@empty +\global\let\IACR@Published\@empty % etoolbox: is a toolbox of programming facilities geared primarily % towards LaTeX class and package authors. @@ -74,7 +69,7 @@ % The jobname.iacrmetadata file will contain accepted \IACR@Received, \IACR@Accepted, % \IACR@Published, and \IACR@DOI. \InputIfFileExists{\jobname.iacrmetadata}{ - \@IACR@Receivedtrue\@IACR@Acceptedtrue\@IACR@Publishedtrue\typeout{Inserted DOI into PDF}% + \typeout{Inserted DOI into PDF}% }{} \newif\if@optbiblatex \@optbiblatexfalse @@ -972,10 +967,9 @@ \hfill{}% \doclicenseImage[imagewidth=4em]\\[.1em]% \ifcsstring{@IACRversion}{final}{% Only show this information on the final version - \if@IACR@Received Received: \IACR@Received \hfill{}\fi% - \if@IACR@Revised Revised: \IACR@Revised \hfill{}\fi% - \if@IACR@Accepted Accepted: \IACR@Accepted \hfill{}\fi% - \if@IACR@Published Published: \IACR@Published\fi% + \ifx\IACR@Received\@empty\else Received: \IACR@Received \hfill{}\fi% + \ifx\IACR@Accepted\@empty\else Accepted: \IACR@Accepted \hfill{}\fi% + \ifx\IACR@Published\@empty\else Published: \IACR@Published\fi% }{% \ifdefined\@IACR@docdate@defined% \ifx\@IACR@docdate\@empty%