-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlatteslink.sty
70 lines (62 loc) · 3.01 KB
/
latteslink.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
%%
%% Author: Alan Franco
%% https://github.com/fzappa/latteslink
%%
%% This file 'latteslink.sty',
%% was generated based on orcidlink,
%% developed by Leo C. Stein.
%%
%% https://ctan.org/tex-archive/macros/latex/contrib/orcidlink
%%
%% --------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%%
\NeedsTeXFormat{LaTeX2e}[1994/06/01]
\ProvidesPackage{latteslink}
[2021/03/23 v1.0.1]
\RequirePackage{hyperref}
\RequirePackage{tikz}
\ProcessOptions\relax
\usetikzlibrary{svg.path}
\definecolor{latteslogocol}{HTML}{355E85}
\tikzset{
latteslogo/.pic={
\fill[latteslogocol]
svg{M9.8,243.2c8.1,2.1,15,3.6,21.8,5.5c35.9,10,72.4,16.1,109.8,16.5c38,0.5,74.6-5.2,109.3-21.2
c21.3-9.8,39.3-23.6,51.3-44.4c10.2-17.6,11.2-36.5,7-55.6c-2.3-10.5-6.6-20.5-9.8-30.9c-1.4-4.6-2.4-9.3-3.2-14
c-0.5-3,1.1-4.5,4.2-3c1.3,0.6,2.8,1.3,3.8,2.3c19.9,20.5,38.5,41.9,49.9,68.7c10.3,24.3,14.2,49.6,11.1,75.6
c-2.1,17.4-9,33.6-16.8,49.3c-19.4,39.2-50.2,67.6-86.8,90.3c-38.4,23.8-80.3,39.1-124.1,49.5c-15.5,3.7-31.3,6.2-46.9,9.8
c-4.5,1-6.1-0.3-7.6-4.3c-16.4-43.4-32.9-86.8-49.4-130.2c-7.4-19.4-14.7-38.9-22.1-58.3C10.9,247.4,10.6,246,9.8,243.2z}
svg{M0,142.1c-0.1-12.2,1.3-31.7,7.3-50.4C21.4,47.9,48.7,17.3,94.6,5.2c30.1-7.9,60-5.9,90.1-0.3
c33.3,6.3,64.6,18.3,94.9,33.3c2.7,1.3,4.4,4.6,6.6,6.9c-2.6,1.1-5.2,3.3-7.8,3.3c-6.6-0.1-13.2-0.9-19.8-1.8
c-23.3-2.9-46.7-5.6-70.2-2.1c-14.2,2.1-27.7,6-39.4,14.6c-14,10.2-20.5,25.1-22.8,41.7c-3.1,22.1-0.1,43.8,4.5,65.4
c5.7,26.8,14.9,52.4,25.4,77.7c1.3,3.1,2.3,6.2,3.5,9.3c1.4,3.6,0.2,5.2-3.6,4.6c-9-1.5-18.1-3-27.1-4.6
c-24.9-4.4-49.8-8.8-74.6-13.2c-12.9-2.3-25.9-4.4-38.8-7c-1.9-0.4-4.5-2.8-4.9-4.7C4.5,202.5-0.2,176.3,0,142.1z}
svg{M235.8,205c-19.9,0.1-35.3-4.9-49.3-13.7c-15.1-9.5-27.6-21.6-34.5-38.4c-5.8-13.8-8.3-28.1-1.8-42.6
c7.1-15.9,19.8-24.5,36.4-27c25.1-3.8,46.8,5.2,66.3,20.3c13.3,10.3,23.6,22.9,28.7,39.3c7.3,23.5-2.8,50.2-29.3,58.2
C245.9,203,239.3,204.2,235.8,205z};
}
}
%% Reciprocal of the height of the svg whose source is above. The
%% original generates a 256pt high graphic; this macro holds 1/256.
\newcommand{\@OrigHeightRecipLattes}{0.00390625}
%% We will compute the current X height to make the logo the right height
\newlength{\@curXheightLattes}
\DeclareRobustCommand\latteslink[1]{%
\texorpdfstring{%
\setlength{\@curXheightLattes}{\fontcharht\font`X}%
\href{http://lattes.cnpq.br/#1}{\mbox{%
\begin{tikzpicture}[yscale=-\@OrigHeightRecipLattes*\@curXheightLattes,
xscale=\@OrigHeightRecipLattes*\@curXheightLattes,transform shape]
\pic{latteslogo};
\end{tikzpicture}%
}}}{}}
\endinput
%%
%% End of file `latteslink.sty'.