我怎麼能讓我的履歷列印出版品清單?

我怎麼能讓我的履歷列印出版品清單?
% LaTeX resume using res.cls
\documentclass[margin]{res}
%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent}   % uses new century schoolbook postscript font 
\usepackage[T1]{fontenc}
%\usepackage{kpfonts,baskervald}
\usepackage{ebgaramond}
\usepackage{comment}
\usepackage{bibentry}

\RequirePackage{filecontents}
\begin{filecontents}{refs1.bib}
@inproceedings{McGoldrick:2016:WCR:2999504.3001118,
    author = {Mc Goldrick, Ciar\'{a}n and Segura, Enrique and Wu, Tianyan and Gerla, Mario},
    title = {WaterCom: Connecting Research Configurations with Practical Deployments: A Multilevel, Multipurpose Underwater Communications Test Platform},
    booktitle = {Proceedings of the 11th ACM International Conference on Underwater Networks \& Systems},
    series = {WUWNet '16},
    year = {2016},
    isbn = {978-1-4503-4637-5},
    location = {Shanghai, China},
    pages = {8:1--8:2},
    articleno = {8},
    numpages = {2},
    url = {http://doi.acm.org/10.1145/2999504.3001118},
    doi = {10.1145/2999504.3001118},
    acmid = {3001118},
    publisher = {ACM},
    address = {New York, NY, USA},
}

@inproceedings{Goldrick:2015:WMM:2831296.2831336,
    author = {Goldrick, Ciar\'{a}n Mc and Matney, Mark and Segura, Enrique and Noh, Youngtae and Gerla, Mario},
    title = {WaterCom: A Multilevel, Multipurpose Underwater Communications Test Platform},
    booktitle = {Proceedings of the 10th International Conference on Underwater Networks \& Systems},
    series = {WUWNET '15},
    year = {2015},
    isbn = {978-1-4503-4036-6},
    location = {Arlington, VA, USA},
    pages = {14:1--14:8},
    articleno = {14},
    numpages = {8},
    url = {http://doi.acm.org/10.1145/2831296.2831336},
    doi = {10.1145/2831296.2831336},
    acmid = {2831336},
    publisher = {ACM},
    address = {New York, NY, USA},
}
\end{filecontents}

\usepackage[backend=biber]{biblatex}
\addbibresource{refs1.bib}

\begin{document}
\begin{resume}
\section{PUBLICATIONS}
\printbibliography{refs1}

\end{resume}
\end{document}

答案1

透過在類別內發出命令來阻止任何文件res.cls的使用。這意味著您無法開箱即用.aux\nofiles任何附有它的參考書目軟體。

我可能會建議完全使用不同的類,或者只是使用article一些包來格式化你的簡歷。但如果您確實想繼續使用它也是res.cls可以的。

編輯res.cls

複製res.cls並重命名它,例如res-bib.cls。類別的第 203 行(CTAN 上的版本) 應該讀:

\nofiles %  resume's don't need .aux files

在您的班級副本中刪除或註解掉這一行。 (首選刪除,因為它也會刪除評論中的撇號...)

使用biblatexbibentry

現在,使用修改後的類,以下是如何biblatex添加出版物:

% LaTeX resume using res.cls
\documentclass[margin]{res-bib}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc}
\usepackage{ebgaramond}

\RequirePackage{filecontents}
\begin{filecontents}{\jobname.bib}
@inproceedings{McGoldrick:2016:WCR:2999504.3001118,
    author = {Mc Goldrick, Ciar\'{a}n and Segura, Enrique and Wu, Tianyan and Gerla, Mario},
    title = {WaterCom: Connecting Research Configurations with Practical Deployments: A Multilevel, Multipurpose Underwater Communications Test Platform},
    booktitle = {Proceedings of the 11th ACM International Conference on Underwater Networks \& Systems},
    series = {WUWNet '16},
    year = {2016},
    isbn = {978-1-4503-4637-5},
    location = {Shanghai, China},
    pages = {8:1--8:2},
    articleno = {8},
    numpages = {2},
    url = {http://doi.acm.org/10.1145/2999504.3001118},
    doi = {10.1145/2999504.3001118},
    acmid = {3001118},
    publisher = {ACM},
    address = {New York, NY, USA},
}

@inproceedings{Goldrick:2015:WMM:2831296.2831336,
    author = {Goldrick, Ciar\'{a}n Mc and Matney, Mark and Segura, Enrique and Noh, Youngtae and Gerla, Mario},
    title = {WaterCom: A Multilevel, Multipurpose Underwater Communications Test Platform},
    booktitle = {Proceedings of the 10th International Conference on Underwater Networks \& Systems},
    series = {WUWNET '15},
    year = {2015},
    isbn = {978-1-4503-4036-6},
    location = {Arlington, VA, USA},
    pages = {14:1--14:8},
    articleno = {14},
    numpages = {8},
    url = {http://doi.acm.org/10.1145/2831296.2831336},
    doi = {10.1145/2831296.2831336},
    acmid = {2831336},
    publisher = {ACM},
    address = {New York, NY, USA},
}
\end{filecontents}

\usepackage[backend=biber,style=authoryear]{biblatex}
\addbibresource{\jobname.bib}

\begin{document}
\nocite{*}
\begin{resume}

% we need heading=bibnumbered here to tell biblatex to use \section 
% not \section* (which will produce a spurious * with this class)
%
\printbibliography[title=PUBLICATIONS,heading=bibnumbered]


\end{resume}

\end{document}

程式碼的輸出

相關內容