我在用很棒的 Latex 模板。我希望包含一个带有一些链接颜色的 URL 链接。在模板中,hyperref 包已与 hidelinks 选项一起使用。当我尝试包含链接时,出现了一些问题,文件没有被编译。如何在不弄乱类文件的情况下包含带有链接的 URL。示例:在演示部分,在演讲标题中,我想给 pdf 链接添加一些颜色。
\cventry
{Presenter for <Hosting Web Application for Free utilizing GitHub, Netlify and CloudFlare>} % Role
{DevFest Seoul by Google Developer Group Korea} % Event
{Seoul, S.Korea} % Location
{Nov. 2017} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Introduced the history of web technology and the JAM stack which is for the modern web application development.}
\item {Introduced how to freely host the web application with high performance utilizing global CDN services.}
\end{cvitems}
}
这个不起作用。
\cventry
{Presenter for <Hosting Web Application for Free utilizing GitHub, Netlify and CloudFlare>} % Role
\href{DevFest Seoul by Google Developer Group Korea}{link1} % Event
{Seoul, S.Korea} % Location
{Nov. 2017} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Introduced the history of web technology and the JAM stack which is for the modern web application development.}
\item {Introduced how to freely host the web application with high performance utilizing global CDN services.}
\end{cvitems}
}
答案1
您使用的模板已在您提供的链接下删除。使用我的本地副本,我可以测试您的两个命令\cventry
。在您的第二条命令中,您漏掉了一对括号{...}
,如下所示:
\cventry
{Presenter for <Hosting Web Application for Free utilizing GitHub, Netlify and CloudFlare>} % Role
{\href{DevFest Seoul by Google Developer Group Korea}{link1}} % Event <==================
{Seoul, S.Korea} % Location
{Nov. 2017} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Introduced the history of web technology and the JAM stack which is for the modern web application development.}
\item {Introduced how to freely host the web application with high performance utilizing global CDN services.}
\end{cvitems}
}
完整代码如下
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Awesome Resume/CV
% XeLaTeX Template
% Version 1.2 (27/3/2017)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Claud D. Park ([email protected]) with modifications by
% Vel ([email protected])
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% Important note:
% This template must be compiled with XeLaTeX, the below lines will ensure this
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%----------------------------------------------------------------------------------------
% PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------
\documentclass[11pt, a4paper]{awesome-cv} % A4 paper size by default, use 'letterpaper' for US letter
\geometry{left=2cm, top=1.5cm, right=2cm, bottom=2cm, footskip=.5cm} % Configure page margins with geometry
\fontdir[fonts/] % Specify the location of the included fonts
% Color for highlights
\colorlet{awesome}{awesome-red} % Default colors include: awesome-emerald, awesome-skyblue, awesome-red, awesome-pink, awesome-orange, awesome-nephritis, awesome-concrete, awesome-darknight
%\definecolor{awesome}{HTML}{CA63A8} % Uncomment if you would like to specify your own color
% Colors for text - uncomment and modify
%\definecolor{darktext}{HTML}{414141}
%\definecolor{text}{HTML}{414141}
%\definecolor{graytext}{HTML}{414141}
%\definecolor{lighttext}{HTML}{414141}
\renewcommand{\acvHeaderSocialSep}{\quad\textbar\quad} % If you would like to change the social information separator from a pipe (|) to something else
%----------------------------------------------------------------------------------------
% PERSONAL INFORMATION
% Comment any of the lines below if they are not required
%----------------------------------------------------------------------------------------
\name{Claud D.}{Park}
\address{246-1002, Gwangmyeongmayrouge Apt. 86, Cheongna lime-ro, Seo-gu, Incheon-si, 404-180, Rep. of KOREA}
\mobile{(+82) 10-9030-1843}
\email{[email protected]}
\homepage{www.posquit0.com}
\github{posquit0}
\linkedin{posquit0}
%\skype{skypeid}
%\stackoverflow{SOid}{SOname}
%\twitter{@twit}
%\linkedin{linkedin name}
%\reddit{reddit account}
%\xing{xing name}
%\extrainfo{test} % Other text you want to include on this line
\position{Software Engineer{\enskip\cdotp\enskip}Security Expert} % Your expertise/fields
\quote{``Make the change that you want to see in the world."} % A quote or statement
\makecvfooter{\today}{Claud D. Park~~~·~~~Résumé}{\thepage} % Specify the letter footer with 3 arguments: (<left>, <center>, <right>), leave any of these blank if they are not needed
%----------------------------------------------------------------------------------------
\begin{document}
\makecvheader % Print the header
%----------------------------------------------------------------------------------------
% CV/RESUME CONTENT
% Each section is imported separately, open each file in turn to modify content
%----------------------------------------------------------------------------------------
\input{cv-sections/education.tex}
\cventry
{Presenter for <Hosting Web Application for Free utilizing GitHub, Netlify and CloudFlare>} % Role
{DevFest Seoul by Google Developer Group Korea} % Event
{Seoul, S.Korea} % Location
{Nov. 2017} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Introduced the history of web technology and the JAM stack which is for the modern web application development.}
\item {Introduced how to freely host the web application with high performance utilizing global CDN services.}
\end{cvitems}
}
\cventry
{Presenter for <Hosting Web Application for Free utilizing GitHub, Netlify and CloudFlare>} % Role
{\href{DevFest Seoul by Google Developer Group Korea}{link1}} % Event <==================
{Seoul, S.Korea} % Location
{Nov. 2017} % Date(s)
{
\begin{cvitems} % Description(s)
\item {Introduced the history of web technology and the JAM stack which is for the modern web application development.}
\item {Introduced how to freely host the web application with high performance utilizing global CDN services.}
\end{cvitems}
}
\input{cv-sections/skills.tex}
\input{cv-sections/experience.tex}
\newpage % Force a new page for looks
\input{cv-sections/extracurricular.tex}
\input{cv-sections/honors.tex}
\input{cv-sections/presentation.tex}
\input{cv-sections/writing.tex}
\input{cv-sections/committees.tex}
%----------------------------------------------------------------------------------------
\end{document}
我可以无错误地编译以下pdf: