是否可以添加CTF时间图标添加到 latex 文档中?我以前也添加过类似的社交网络,但我想知道是否可以添加标志或类似的东西。
.cls 文件:
\newcommand{\infofield}[2]{\mbox{\makebox[5mm]{\textcolor{accent}{\normalsize #1}}\hspace{0.5em}#2}\vspace{0.2em}\newline}
\newcommand{\email}[1]{\infofield{\faEnvelope}{\href{mailto:#1}{#1}}}
\newcommand{\address}[1]{\infofield{\faAt}{#1}}
\newcommand{\location}[1]{\infofield{\faMapMarker}{#1}}
\newcommand{\phone}[1]{\infofield{\faPhone}{#1}}
\newcommand{\homepage}[2]{\infofield{\faHome}{\href{#2}{#1}}}
\newcommand{\linkedin}[2]{\infofield{\faLinkedin}{\href{#2}{#1}}}
\newcommand{\github}[2]{\infofield{\faGithub}{\href{#2}{#1}}}
\newcommand{\orcid}[2]{\infofield{\aiOrcid}{\href{#2}{#1}}}
\newcommand{\ads}[2]{\infofield{\aiADS}{\href{#2}{#1}}}
.tex 文件:
\section{Contact}
\email{[email protected]}
\phone{+52 811 1111111}
\location{Some Street 1, 12345 City Name}
\vspace{0.5em}
\github{@foo}{https://github.com/}
\linkedin{Jhn doe}{some url}
上述代码输出以下图标。
任何帮助将不胜感激。
答案1
我想,你需要自己画。你可以用 Ti 来做钾例如Z:
\documentclass[]{article}
\usepackage{xcolor, fontawesome, tikz, hyperref}
\newcommand{\infofield}[2]{%
\makebox[20pt]{\textcolor{red}#1}#2%
}
\newcommand{\linkedin}[2]{\infofield{\faLinkedin}{\href{#2}{#1}}}
\newcommand{\myCtftime}{\tikz[y=1em, x=1em, baseline=1pt]{
\path[fill, even odd rule] (0,0) -- (1.05,0) -- (1.05,1) -- (0,1) -- cycle
(.15,.15) -- (.9,.15) -- (.9,.85) -- (.15,.85) -- cycle
(.15,.85) -- (.35,.85) -- (.7,.5) -- (.45,.25) -- (.35,.35) -- (.5,.5) -- cycle;
}
}
\newcommand{\ctftime}[2]{\infofield{\myCtftime}{\href{#2}{#1}}}
\begin{document}
\linkedin{John Doe}{https://linkedin.com/johndoe}
\ctftime{John Doe}{https://ctftime.org/johndoe}
\end{document}