From f2e535996906427dfcdf6e266eeda1be1d91661a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 18 Mar 2021 21:07:20 +0000 Subject: cmpj (18mar21) git-svn-id: svn://tug.org/texlive/trunk@58506 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/cmpj/cmpj3.sty | 89 ++++++++++++++++++++++++------ 1 file changed, 71 insertions(+), 18 deletions(-) (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/cmpj/cmpj3.sty b/Master/texmf-dist/tex/latex/cmpj/cmpj3.sty index 551f1e0f6f4..fe6895a969c 100644 --- a/Master/texmf-dist/tex/latex/cmpj/cmpj3.sty +++ b/Master/texmf-dist/tex/latex/cmpj/cmpj3.sty @@ -7,9 +7,9 @@ %%% http://www.icmp.lviv.ua/journal/ %%% %%% using LaTeX2e %%% %%% %%% -%%% Last time modified: July 17, 2019 %%% +%%% Last time modified: March 17, 2021 %%% %%% %%% -%%% Copyright (C) 2019 by the Institute for Condensed Matter Physics %%% +%%% Copyright (C) 2021 by the Institute for Condensed Matter Physics %%% %%% of the National Academy of Sciences of Ukraine %%% %%% all rights reserved. %%% %%% %%% @@ -22,11 +22,11 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{cmpj3} - [2019/07/17 v3.02 + [2021/03/17 v3.03 The Condensed Matter Physics journal package] \def\filename{cmpj3.sty} -\def\fileversion{3.02} -\def\filedate{2019/07/17} +\def\fileversion{3.03} +\def\filedate{2021/03/17} \immediate\write32{This is '\filename' v\fileversion \space <\filedate> ^^J% the Condensed Matter Physics journal package} @@ -40,9 +40,33 @@ \RequirePackage{graphicx} \RequirePackage[square,comma,numbers,sort&compress]{natbib} \RequirePackage{ifthen} -\RequirePackage[pdfstartview=FitH]{hyperref} +\RequirePackage[unicode,pdfstartview=FitH]{hyperref} +\RequirePackage{scalerel} +\RequirePackage{tikz} %\def\href#1#2{} \RequirePackage{url} +%%\RequirePackage{orcidlink} +%%%%%%%%% orcidlink.sty %%%%%%%%%%%%%%%%%%%%%%%% +%% orcidlink package was created and is maintained by +%% [Leo C. Stein](http://duetosymmetry.com/), (c) 2019. +%% The original TikZ icon code was created by user [Milo on +%% TeX.SE](https://tex.stackexchange.com/users/128068/milo). +\usetikzlibrary{svg.path} +\definecolor{orcidlogocol}{HTML}{A6CE39} +\tikzset{ + orcidlogo/.pic={ + \fill[orcidlogocol] svg{M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z}; + \fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z} + svg{M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5c34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z} + svg{M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1C84.2,46.7,88.7,51.3,88.7,56.8z}; + } +} +\newcommand\orcidlink[1]{\texorpdfstring{\href{https://orcid.org/#1}{\mbox{\scalerel*{ + \begin{tikzpicture}[yscale=-1,transform shape] + \pic{orcidlogo}; + \end{tikzpicture} + }{|}}}}{}} +%%%%%%% end orcidlink.sty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%\RequirePackage{doi} %%%%%%%%% doi.sty modified to follow CrossRef rules %%%%%%%%%%%%%%%%%%%%%%%% %% To change the default prefix, redefine this command within your own code. @@ -302,10 +326,15 @@ \def\Pr@scale{0.889} \def\cmpj@sf{} \def\cyr@rm{cmr} +\def\cc@by@copyright@pdf{} +\providecommand{\pdfkeywords}{} + \def\cmpj@sf@cm{ \RequirePackage{textcomp} \RequirePackage{amsmath,amssymb} + \def\uppi{\pi} + \def\piup{\pi} } \def\cmpj@sf@helvet{ @@ -384,7 +413,7 @@ \def\@@copyright{\textcopyright} \def\copyright@size{\small} -\def\copyright@author{\@author\cp@issue@year} +\def\copyright@author{\fancy@author\cp@issue@year} \def\authorcopyright{\@ifnextchar[ \iauthorcopyright{\iauthorcopyright[\small]}} \def\iauthorcopyright[#1]#2{\gdef\copyright@size{#1} @@ -398,23 +427,41 @@ \authorcopyright{\raisebox{-2pt}{\includegraphics[width=16mm]{cmpj-cc-by-small}\space}\footnotesize\sf@phv This work is licensed under a \href{https://creativecommons.org/licenses/by/4.0/}{\textsl{Creative Commons Attribution 4.0 International License}}. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI.} } -\DeclareOption{nocopyright}{\let\print@copyright\no@copyright} - -\DeclareOption{cc-by}{\let\print@copyright\cc@by@copyright} +\DeclareOption{nocopyright}{\let\print@copyright\no@copyright\def\cc@by@copyright@pdf{}} + +\DeclareOption{cc-by}{ + \let\print@copyright\cc@by@copyright +\def\cc@by@copyright@pdf{% + \IfFileExists{hyperxmp.sty}{ + \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}} + \hypersetup{ + pdfcopyright = {This work is licensed under a Creative Commons "Attribution 4.0 International" license. Further distribution of this work must maintain attribution to the author(s) and the published article's title, journal citation, and DOI.}, + pdflicenseurl = {https://creativecommons.org/licenses/by/4.0/}, + pdfkeywords={\pdfkeywords}, + } + }{ + \PackageWarning{cmpj3}{% + The hyperxmp package is missing so no license metadata can be embedded + into the PDF. Consider installing hyperxmp. + } + } +} +} -\DeclareOption{no-cc}{\def\print@copyright{}} +\DeclareOption{no-cc}{\def\print@copyright{}\def\cc@by@copyright@pdf{}} \ExecuteOptions{newtx,cc-by} \ProcessOptions +\def\hv@sf{\sffamily\upshape} \def\textcyrrm#1{{\fontencoding{T2A}\fontfamily{\cyr@rm}\selectfont #1}} \def\textcyrsf#1{{\fontencoding{T2A}\fontfamily{\cyr@sf}\selectfont #1}} \def\textcyrtt#1{{\fontencoding{T2A}\fontfamily{\cyr@tt}\selectfont #1}} \urlstyle{same} \cmpj@sf - -\def\hv@sf{\sffamily\upshape} +\cc@by@copyright@pdf +\def\Keywords#1{\def\pdfkeywords{#1}\cc@by@copyright@pdf} %% Sectioning %% @@ -521,11 +568,11 @@ \noindent\parbox[t]{11cm}{% \ifthenelse{\equal{1}{\pageref{last@page}}}{% \small\hv@sf Condensed Matter Physics,~\issue@year,\space% - Vol.~\issue@volume, No~\issue@number,\space% + Vol.~\issue@volume, No.~\issue@number,\space% \article@number:\space\pageref{last@page}% }{% \small\hv@sf Condensed Matter Physics,~\issue@year,\space% - Vol.~\issue@volume, No~\issue@number,\space% + Vol.~\issue@volume, No.~\issue@number,\space% \article@number:\space1--\pageref{last@page}% }% % \article@number\space[\pageref{last@page}\space page(s)] @@ -577,11 +624,13 @@ \newcommand\keywords{\par\vskip 1ex \noindent\raggedright\upshape{\hv@sf\bfseries Key words:}\slshape\space} +\newcommand{\printkeywords}{\keywords\space\pdfkeywords} + \newcommand\pacs{\par\vskip 1ex \noindent\raggedright\upshape{\hv@sf\bfseries PACS:}\slshape\space} \def\author{\@dblarg{\make@author}} -\long\def\make@author[#1]#2{\gdef\fancy@author{#1}\gdef\@author{#2}\gdef\@copyright{\@@copyright}} +\long\def\make@author[#1]#2{\gdef\@author{#2}\gdef\fancy@author{#1}\gdef\@copyright{\@@copyright}} \def\title{\@dblarg{\make@title}} \long\def\make@title[#1]#2{\gdef\fancy@title{#1}\gdef\@title{#2}} @@ -602,6 +651,9 @@ \newcommand{\addr}[1]{\item\label{#1}} \newcommand{\refaddr}[1]{$^{\textsf{\footnotesize\@refad{#1}}}$} +%\newcommand{\orcid}[1]{\href{https://orcid.org/#1}{\raisebox{-1pt}{\includegraphics[width=10pt]{orcid-ID}}}} +\newcommand{\orcid}[1]{\,\orcidlink{#1}\,} + \DeclareRobustCommand\@refad{\@@refadx} \def\@@refadx#1{% @@ -811,11 +863,11 @@ \lhead[\fancyplain{}{}]{\fancyplain{}{\small\sf@phv\fancy@title}} \chead[\fancyplain{}{}]{\fancyplain{}{}} -\rhead[\fancyplain{}{\small\sf@phv\def\refaddr##1{}\fancy@author}] +\rhead[\fancyplain{}{\small\sf@phv\def\refaddr##1{}\def\orcid##1{}\fancy@author}] {\fancyplain{}{}} \lfoot[\fancyplain{}{\issue@page@even\normalsize\sf@phv\article@page}] {\fancyplain{\copyright@size\@copyright\space\parbox[t]{0.88\textwidth} - {\copyright@size\sf@phv\def\refaddr##1{}\copyright@author}}{}} + {\copyright@size\sf@phv\def\refaddr##1{}\def\orcid##1{}\copyright@author}}{}} \cfoot[\fancyplain{}{}]{\fancyplain{}{}} \rfoot[\fancyplain{}{}] {\fancyplain{\normalsize\sf@phv\article@page\issue@page@odd}{\normalsize\sf@phv\article@page\issue@page@odd}} @@ -834,6 +886,7 @@ \newcommand{\Img}{\mathop{\mathgroup\symoperators Im}\nolimits} \renewcommand{\Re}{\Real} \renewcommand{\Im}{\Img} +\newcommand{\email}[1]{\href{mailto:#1}{#1}} \newcommand\lastpage{\label{last@page}} \lefthyphenmin=2 \righthyphenmin=3 -- cgit v1.2.3