moderncv 中的出版物及链接

moderncv 中的出版物及链接

目前我正在moderncv第一次使用,一切都运行良好,但是......如果我通过以下方式添加我的出版物:

% Publications
\renewcommand{\refname}{Veröffentlichungen}
\nocite{*}
\bibliographystyle{plain}
\bibliography{Veröffentlichungen}

那么它不包含链接。但超链接对我来说很重要,因为出版物太大,无法作为电子邮件附件发送。

这是我的标题:

\documentclass[a4paper, 11pt, color, final]{moderncv}
\usepackage[utf8]{inputenc}
\usepackage{footmisc}

% Theme
\moderncvtheme[red]{casual}
\usepackage[scale=0.8]{geometry}
\recomputelengths

% Personal data
\firstname{Muster}
\familyname{Muster}
\title{Entwicklerin}
\photo[64pt]{Photo}

% Head
\begin{document}
\maketitle
...

也许我错过了什么……

非常感谢。

答案1

您的问题不太清楚,我猜一下:

  1. 您的 bib 条目中有 url,但它们未显示在生成的 pdf 中。
  2. 你还没有使用命令\cite来引用文章

1 的解决方案。

假设你有一个像这样的 bib 条目

@Article{bib_key_1,
  author    = {\textbf{Author 1} and Author 2 and Author 3 and Author 4 and Author 5},
  title     = {Research paper},
  journal   = {Journal of science},
  year      = {2017},
  volume    = {26},
  number    = {6},
  pages     = {065008},
  month     = {may},
  doi       = {10.1088/1361-665x/aa6b66},
  publisher = {{IOP} Publishing},
  url       = {https://doi.org/10.1088%2F1361-665x%2Faa6b66},
  keywords  = {press},
}

您使用的样式plain非常陈旧,无法处理诸如url =等字段。要获取参考书目中的打印网址,请添加note =以下字段

  note      = {\url{https://doi.org/10.1088%2F1361-665x%2Faa6b66}},

到 bib 条目。对所有需要显示和链接的 URL 执行此操作...然后您会得到以下结果:

带有印刷链接的文章

2 的解决方案。

使用命令从参考书目中\cite{bib_key_1}引用带有关键词的文章,例如bib_key_1

 \cvlistdoubleitem{Item 2}{Item 5\cite{bib_key_1}} % <===================

获取参考书目中第二篇文章的引用链接,如下所示:

引用文章

对以下 MWE 的备注:

包含以下完整参考书目文件Veröffentlichungen.bib

@Article{bib_key_1,
  author    = {\textbf{Author 1} and Author 2 and Author 3 and Author 4 and Author 5},
  title     = {Research paper},
  journal   = {Journal of science},
  year      = {2017},
  volume    = {26},
  number    = {6},
  pages     = {065008},
  month     = {may},
  doi       = {10.1088/1361-665x/aa6b66},
  publisher = {{IOP} Publishing},
  url       = {https://doi.org/10.1088%2F1361-665x%2Faa6b66},
  keywords  = {press},
}
@Article{bib_key_2,
  author    = {\textbf{Author 1} and Author 2 and Author 3 and Author 4 and Author 5},
  title     = {Research paper},
  journal   = {Journal of science},
  year      = {2017},
  volume    = {26},
  number    = {6},
  pages     = {065008},
  month     = {may},
  doi       = {10.1088/1361-665x/aa6b66},
  publisher = {{IOP} Publishing},
  url       = {https://doi.org/10.1088%2F1361-665x%2Faa6b66},
  keywords  = {press},
  note      = {\url{https://doi.org/10.1088%2F1361-665x%2Faa6b66}},
}
@article{feynman,
  title     = {Very High-Energy Collisions of Hadrons},
  author    = {Richard P. Feynman},
  journal   = {Phys. Rev. Lett.},
  volume    = {23},
  issue     = {24},
  pages     = {1415--1417},
  year      = {1969},
  month     = {Dec},
  doi       = {10.1103/PhysRevLett.23.1415},
  url       = {http://link.aps.org/doi/10.1103/PhysRevLett.23.1415},
  publisher = {American Physical Society},
  note      = {\url{http://link.aps.org/doi/10.1103/PhysRevLett.23.1415}},
}

以及以下 MWE

\documentclass[11pt,a4paper,color,final,colorlinks=true]{moderncv} % <=============

% moderncv themes
\moderncvstyle{casual} % casual, classic, banking, oldstyle and fancy
\moderncvcolor{red} % <=================================================

\usepackage[utf8]{inputenc}
\usepackage{footmisc}
\usepackage{xurl} % <===================================================

\usepackage[scale=0.75]{geometry}
\recomputelengths

% personal data
\name{John}{Doe} % <====================================================
\title{Resumé title}
\address{street and number}{postcode city}{country}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{[email protected]}
\homepage{www.johndoe.com}
\social[linkedin]{john.doe}
\social[twitter]{jdoe}
\social[github]{jdoe}
\extrainfo{additional information}
\photo[64pt][0.4pt]{example-image-golden-upright}%
\quote{Some quote}

\makeatletter\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}\makeatother

\setlength{\footskip}{69pt}


\begin{document}

\hypersetup{% <=========================================================
  citecolor=blue,
  urlcolor=green, % black
% allcolors=color1, 
}% 
\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution--3}{City--4}{\textit{Grade}--5}{Description--6}  % arguments 3 to 6 can be left empty
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}

\section{With cited article}
\cvlistdoubleitem{Item 1}{Item 4}
\cvlistdoubleitem{Item 2}{Item 5\cite{bib_key_1}} % <===================
\cvlistdoubleitem{Item 3}{Item 6. Like item 3 in the single column list before, this item is particularly long to wrap over several lines.}

\renewcommand{\refname}{Veröffentlichungen}
\nocite{*}
\bibliographystyle{plain}
\bibliography{Veröffentlichungen}                        % 'publications' is the name of a BibTeX file

\end{document}

您将获得以下结果 pdf 页面:

生成的 pdf

请参阅 MWE 中用 标记的重要代码更改<=========

请注意,我使用以下代码为 URL 定义了自己的颜色并引用了链接:

\hypersetup{% <=========================================================
  citecolor=blue,
  urlcolor=green, % black
% allcolors=color1, 
}% 

请注意,将 URL 颜色更改为绿色也会更改页脚中定义的 URL 颜色。使用黑色可获得指向 URL 的非彩色链接...

答案2

该部分将在第一次编译期间在您的目录中filecontent创建文件。然后运行。应该以references.bibbibtexProcess exited normally

之后编译两次。参考资料部分将会出现。

小心.bib文件的文件名。必须被操作系统接受。在我的系统中,不要使用ö、é 或类似的名称。

A

尝试一下这个代码。

% !TeX TS-program = pdflatex
 \begin{filecontents}[overwrite]{references.bib}
    @book{yang2018optimization,
        title={Optimization Techniques and Applications with Examples},
        author={Yang, Xin-She},
        year={2018},
        publisher={John Wiley~\& Sons},
    }
    
    @book{kelley1999iterative,
        title={Iterative methods for optimization},
        author={Kelley, Carl T},
        year={1999},
        publisher={SIAM}
    }
    @book{cavazzuti2012optimization,
        title={Optimization methods: from theory to design scientific and technological aspects in mechanics},
        author={Cavazzuti, Marco},
        year={2012},
        publisher={Springer Science \& Business Media}
    }
    
    @book{grivet2012methodes,
        title={M{\'e}thodes num{\'e}riques appliqu{\'e}es pour le scientifique et l’ing{\'e}nieur (edition 2009): Edition 2013},
        author={Grivet, Jean-Philippe},
        year={2012},
        publisher={EDP sciences}
    }
    
    @article{lemarechal2012cauchy,
        title={Cauchy and the gradient method},
        author={Lemar{\'e}chal, Claude},
        journal={Doc Math Extra},
        volume={251},
        pages={254},
        year={2012}
    }
    @article{cauchy1847methode,
        title={M{\'e}thode g{\'e}n{\'e}rale pour la r{\'e}solution des systemes d’{\'e}quations simultan{\'e}es},
        author={Cauchy, Augustin},
        journal={Comp. Rend. Sci. Paris},
        volume={25},
        number={1847},
        pages={536--538},
        year={1847}
    }
    
            
        \end{filecontents}

\documentclass[a4paper, 11pt, color, final]{moderncv}
\usepackage[utf8]{inputenc}
\usepackage{footmisc}

\usepackage{kantlipsum} % dummy text

% Theme
\moderncvtheme[red]{casual}
\usepackage[scale=0.8]{geometry}
\recomputelengths

% Personal data
\firstname{Muster}
\familyname{Muster}
\title{Entwicklerin}
\photo[64pt]{Photo}

% Head
\begin{document}
    \maketitle
    \kant[1]
    
    \renewcommand{\refname}{Veröffentlichungen}
    \nocite{*}
    \bibliographystyle{plain}
%   \bibliography{Veröffentlichungen} do not use ö or similar in file names
    
    \bibliography{references} %<<<<<<<<<<<<<<<<
    
\end{document}

相关内容