Skip to content

Commit 49255a5

Browse files
committed
add pubmed badges
fix #10
1 parent f9749df commit 49255a5

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

doc/usage.tex

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ \subsection{License}
232232

233233
\subsection{Publication badges}
234234

235-
The commands \texttt{\textbackslash doiBadges} (resp. \texttt{\textbackslash arxivBadges} and \texttt{\textbackslash halBadge}) create badges where the identification that redirect to the publication webpage (resp. \texttt{https://doi.ord/<id>}, \texttt{https://arxiv.org/abs/<id>} and \texttt{https://hal.science/hal-<id>}).
235+
The commands \texttt{\textbackslash doiBadge} (as well as \texttt{\textbackslash arxivBadge}, \texttt{\textbackslash halBadge} and \texttt{\textbackslash arxivBadge}) create that redirect to the publication webpage from the provided identification number.
236236

237237
\paragraph{Syntax:}
238238
\begin{verbatim}
@@ -246,9 +246,27 @@ \subsection{Publication badges}
246246
\item \texttt{\{<id>\}} (required): Number of identification of the publication.
247247
\end{itemize}
248248

249+
Other commands with the same prototype are also provided and redirect to different publication platforms, as shown in the following table:
250+
251+
\begin{center}
252+
\begin{tblr}{
253+
colspec = {Q[c,m, cmd=\texttt]Q[c,m, cmd=\texttt]},
254+
row{1} = {cmd=\textbf, bg=default-blue, fg=white},
255+
vlines, hlines,
256+
width = \textwidth,
257+
}
258+
Macro & Redirection link \\
259+
\textbackslash doiBadge & https://doi.ord/<id> \\
260+
\textbackslash arxivBadge & https://arxiv.org/abs/<id> \\
261+
\textbackslash halBadge & https://hal.science/hal-<id> \\
262+
\textbackslash pubmedBadge & https://pubmed.ncbi.nlm.nih.gov/<id> \\
263+
\end{tblr}
264+
\end{center}
265+
249266

250267
\begin{tcblisting}{title={Publication badge}, lower separated=false}
251268
\doiBadge{10.1002/cnm.3864}
252269
\arxivBadge{2503.22907v1}
253270
\halBadge{04918559}
271+
\pubmedBadge{35955000}
254272
\end{tcblisting}

tikz-shields.sty

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,3 +325,8 @@
325325
{
326326
\drawBadge[link=https://hal.science/hal-#3, #1]{#2}{#3}
327327
}
328+
329+
\NewDocumentCommand{\pubmedBadge}{O{} O{PubMed} m}
330+
{
331+
\drawBadge[link=https://pubmed.ncbi.nlm.nih.gov/#3, #1]{#2}{#3}
332+
}

0 commit comments

Comments
 (0)