我正在尝试使用 BibTex 将出版物列表放入简历中。但我不知道为什么它无法编译?这是我的努力。
以下是我想使用 BibTex 作为其出版物列表的代码
% LaTeX file for resume
% This file uses the resume document class (res.cls)
\documentclass{res}
\usepackage{bibentry}
%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent} % uses new century schoolbook postscript font
\newsectionwidth{0pt} % So the text is not indented under section headings
\usepackage{fancyhdr} % use this package to get a 2 line header
\renewcommand{\headrulewidth}{0pt} % suppress line drawn by default by fancyhdr
\setlength{\headheight}{24pt} % allow room for 2-line header
\setlength{\headsep}{24pt} % space between header and text
\setlength{\headheight}{24pt} % allow room for 2-line header
\pagestyle{fancy} % set pagestyle for document
\rhead{ {\it J. Razi}\\{\it p. \thepage} } % put text in header (right side)
\cfooJ. Razit{} % the foot is empty
\topmargin=-0.5in % start text higher on the page
\begin{document}
\thispagestyle{empty} % this page has no header
\name{Jack Razi\\[12pt]}% the \\[12pt] adds a blank line after name
\address{{}\\
{\bf School Address} \\ {NDT Group }\\Department of Civil Engineering and Engineering mechanics\\
University of Arizona \\ Tucson, AZ 85719 \\ (520) 258-1762}
\begin{resume}
\section{\centerline{OBJECTIVE}}
\vspace{8pt} % provide vertical space between section title and contents
Applying for Whitenack, Dr. Russell D. Scholarship
\vspace{0.2in}
\section{\centerline{EDUCATION}}
\vspace{8pt}
{\sl Doctor of Philosophy}, Engineering mechanics\\
University of Arizona, Tucson, Arizona \hspace{0.2in} GPA 3.5 \hfill May 2017 \\
Dissertation - Peridynamic model for fatigue crack growth\\
Advisor : Prof. Tribikram Kundu (University of California, Los Angles, 1983)
{\sl Master of Science}, Mechanical and Materials Engineering \\
National University of Malaysia, Bangi, Selangore \hspace{0.2in} GPA 4.00 \hfill November 2011 \\
THESIS - Fatigue crack failure of metallic components under variable amplitude loadings\\
Advisor : Prof Nik Abdullah (Tech. University Berlin, Germany, 1991)\\
{\sl Bachelor of Science}, Mechanical Engineering - Solid mechanics \\ % \sl will be bold italic in
% New Century Schoolbook (or
% any postscript font) and
% just slanted in Computer
% Modern (default) font
Top 3.5\%, out of 450,000 applicants in University Entrance National Exam (2002) \\
Tehran, Iran (Islamic Republic of) \hfill February 2007
\vspace{0.2in}
\section{\centerline{PROFESSIONAL EXPERIENCE}}
\vspace{8pt}
{\sl Bahman (Mazda motor) Co} \hfill 2007-2009 \\
Product Engineering Devision, Tehran, Iran \hfill (Product Engineer)
\begin{itemize} \itemsep -2pt % reduce space between items
\item Working with a core team and internal and external customers to improve design, simulation, processing, and experimental techniques.
\item Developed and carried out simulation and experiments to investigate failure modes in components.
\item Developed a full finite element analysis of the radiator shroud with ANSYS in order to find the weakest areas. Fatigue analysis was conducted and a new design was proposed.
\end{itemize}
{\sl Iran Air} \hfill May-Aug 2006 \\
Mechanical workshops, Engineering \& Maintenance Department, Tehran, Iran \hfill (Engineering Intern)
\begin{itemize}
\item Technical courses including knowledge and practical training facilitated by Mechanical Workshops.
\end{itemize}
{\sl Bahman Co } \hfill May-Aug 2005 \\
R\&D Devison, Tehran, Iran \hfill (Engineering Intern)
\begin{itemize}
\item Accurate use of a coordinate measuring machine (CMM with ROMER)
\end{itemize}
\newpage
\vspace{0.2in}
\section{\centerline{ COMPUTING SKILLS }}
\vspace{8pt}
Experienced in ANSYS, Abaqus, Matlab, Fortran, LaTeX
\vspace{0.2in}
\section{\centerline{PUBLICATIONS}}
\vspace{15pt}
J. Razi, T. Kundu, Crack propagation modeling using Peridynamic theory, Health Monitoring of Structural and Biological Systems X, SPIE 2016; Las Vegas; United States\
J. Razi, T. Kundu, Peridynamic modeling for mortar and shape memory alloy mix, Health Monitoring of Structural and Biological Systems X,SPIE 2016; Las Vegas; United States\
\newpage
\vspace{0.2in}
\section{\centerline{MEMBERSHIPS}}
\vspace{-5pt} % reduce space between section title and contents
\begin{center}
American Society of Mechanical Engineering (ASME) \\
International Society of Optical Engineering (SPIE) \\
\end{center}
\vspace{0.2in}
\section{\centerline{HONORS}}
\vspace{-5pt}
\begin{center}
Research Assistant, University of Arizona (Aug 2013 - May2016) \\
Teaching Assistant, University of Arizona (Aug 2013 - May 2015) \\
Science Foundation of Ireland Fellowship (Aug 2012 - July 2013) \\
(SFI Fellowship Award to be a highly significant accomplishment) \\
Research honorarium, University of Malaya (March 2012 - July 2012)\\
Graduate Research Assistant, National University of Malaysia (Aug 2009 - March 2012)
\end{center}
\vspace{0.2in}
\section{\centerline{INTERESTS}}
\vspace{-5pt}
\begin{center}
Swimming, Traveling
\end{center}
\nobibliography{ref}
\bibliographystyle{unsrt}
\section*{Publications}
\begin{enumerate}
\item \bibentry{knuth1986}
\item \bibentry{lamport1986}
\end{enumerate}
\end{resume}
\end{document}
答案1
您可以将bibentry
包与 一起使用。以下是存储在文件\nobibliography
中的引用的 MWE :ref.bib
\documentclass{article}
\usepackage{bibentry}
\begin{document}
\nobibliography{ref}
\bibliographystyle{unsrt}
\section*{Publications}
\begin{enumerate}
\item \bibentry{knuth1986}
\item \bibentry{lamport1986}
\end{enumerate}
\end{document}
答案2
我整理了一个最小工作示例 (MWE),用于从 Bibtex 条目生成出版物列表(例如学术简历),该示例还可以将出版物分成不同的部分(同行评审、会议摘要......)以及添加到 pdf 的链接并使用您最喜欢的引用样式。
github repo 可以在这里找到:https://github.com/rgeirhos/academic-cv-publications,它包含一些附加信息和最少的简历。
LaTeX 代码在这里:
\documentclass[10pt,a4paper]{article}
%COMPILING: IMPORTANT INFORMATION
% You'll need to generate a .bbl file from
% the .bib file first, otherwise the publications
% will not show up in the cv.
% in TeXstudio, this means
% 1. F1 or F6 for usual compiling (generate .aux)
% 1. F8 for bibliography compiling (generate .bbl)
% 2. F1 or F6 for usual compiling once more(generate .pdf)
% use your favourite citation style here
\usepackage{apacite}
\usepackage[left=2.5cm,right=2.5cm,top=1.5cm,bottom=2.5cm]{geometry}
% as bibentry and hyperref clash in some cases, this is a workaround
% as suggested by the following two links:
%https://tex.stackexchange.com/questions/227933/using-bibentry-to-cite-in-text-reference-with-apacite
% and
%https://tex.stackexchange.com/questions/65348/clash-between-bibentry-and-hyperref-with-bibstyle-elsart-harv/65401#65401
\usepackage{bibentry}
\makeatletter\let\saved@bibitem\@bibitem\makeatother
\usepackage[colorlinks=true]{hyperref}
\makeatletter\let\@bibitem\saved@bibitem\makeatother
% hanging publications: 1st line starts at beginning of line,
% further lines are placed a bit to the right
\usepackage{hanging}
\newcommand\publication[1]{%
\smallskip\par\hangpara{1.5em}{1}\bibentry{#1}\smallskip
}
\begin{document}
% bibliography
\nobibliography{publications.bib}
\bibliographystyle{apacite}
\section*{Publications}
% optional: split into different subsections for
% peer-reviewed articles, conference abstracts, ...
% example with links
\publication{Geirhos2017}
(\href{https://arxiv.org/abs/1706.06969}{link}, \href{https://arxiv.org/pdf/1706.06969.pdf}{pdf}, \href{https://github.com/rgeirhos/object-recognition}{data and materials})
% example without links
\publication{Knuth1998}
% the cumbersome way
% \hangpara{1.5em}{1}Knuth, D. E. (1998).
% \textit{The art of computer programming: sorting and searching} (Vol. 3). Pearson Education.
\end{document}
包含以下.bib 文件条目(应命名为 publications.bib):
@article{Geirhos2017,
title={Comparing deep neural networks against humans: object recognition when the signal gets weaker},
author={Geirhos, Robert and Janssen, David HJ and Sch{\"u}tt, Heiko H and Rauber, Jonas and Bethge, Matthias and Wichmann, Felix A},
journal={arXiv preprint arXiv:1706.06969},
year={2017}}
@book{Knuth1998,
title={The art of computer programming: sorting and searching},
author={Knuth, Donald Ervin},
volume={3},
year={1998},
publisher={Pearson Education}}