创建指向同一文档中上一个项目的链接

创建指向同一文档中上一个项目的链接

在此模板中:

\section{Work Experience \newline}
\cventry{start-end_date}{worked at company A}{[list, of, stacks]}{}{}{\begin{itemize}       
        \item tech stack similar to previous freelance activity
\end{itemize}}
\cventry{start-end_date}{worked at compay B}{[another stack different from A above]}{}{}{\begin{itemize}
        \item did cool stuff
\end{itemize}}
\cventry{start-end_date}{freelancer}{[the same stack as company A (the first one)]}{}{}{\begin{itemize}
        \item did cool stuff
\end{itemize}}

如何将项目的链接添加到商店。例如,单击第一个商店(公司 A)的项目列表中的链接应转到第三个商店(包含自由职业工作的商店)。

这可行吗?

我不知道如何文特里物品已定义。持有Ctrl并点击它们

正如这里建议的:

TeXstudio - 转到命令定义

仅突出显示 pdf 预览。

完整示例:

\documentclass[10pt,a4paper,sans]{moderncv}  

\moderncvstyle{classic}                            
\moderncvcolor{black}  

\usepackage[defernumbers=true,backend=bibtex,sorting=ydnt,maxbibnames=99]{biblatex}
\addbibresource{publications.bib}
\usepackage[top=1cm, left =0.5cm, right =1.2cm, bottom =1cm]{geometry}

\setlength{\hintscolumnwidth}{3cm} 
\setlength{\makecvheadnamewidth}{10cm}

\name{\hspace{0.5cm}User \\ \indent  \hspace{0.5cm}Name}{}
\title{\hspace{0.5cm} Dev}     
\address{address}{Street}{country}

\begin{document}
\vspace*{-0.6cm}
\makecvtitle
\vspace{-0.7cm}

\section{Work exp \newline}
\cventry{start-end date}{Role}{[tech stack]}{}{}{\begin{itemize}        
        \item worked on stuff
\end{itemize}}

答案1

有一些\label\hyperref

\documentclass[10pt,a4paper,sans]{moderncv}

\moderncvstyle{classic}

\name{\hspace{0.5cm}User \\ \indent  \hspace{0.5cm}Name}{}
\title{\hspace{0.5cm} Dev}
\address{address}{Street}{country}
\AtBeginDocument{\hypersetup{pdfborder = 0 0 1,linkcolor=blue}}
\begin{document}
  \section{Work exp \newline}
  \cventry{start-end date\label{compA}}{Role}{[tech stack]}{}{}{\begin{enumerate}        
      \item worked on some stuff
      \item worked on stuff
  \end{enumerate}}
  \cventry{start-end date}{worked at compay B}{[another stack different from A above]}{}{}{\begin{enumerate}
      \item did cool stuff\label{stuff}
  \end{enumerate}}
  \cventry{start-end date}{freelancer}{[the same stack as company A (\hyperref[compA]{the first one})]}{}{}{\begin{enumerate}
      \item did cool stuff (see \hyperref[stuff]{here})
  \end{enumerate}}
\end{document}

我调整一下hypersetup以查看链接(参见https://tex.stackexchange.com/a/44377/151808

在此处输入图片描述

相关内容