CV 编译时出现的问题

CV 编译时出现的问题

我尝试使用 latex 编写我的简历。我的示例是

\documentclass[11pt]{article}
\usepackage{array, xcolor, bibentry, longtable}
\usepackage[margin=3cm]{geometry}
\usepackage[english]{babel}

\title{\bfseries\Huge MY NAME}
\author{\large{\textbf{\textit{15 Febbraio 2017}}}}
\date{}
\definecolor{lightgray}{gray}{0.8}
\newcolumntype{L}{>{\raggedleft}p{0.14\textwidth}}
\newcolumntype{R}{p{0.85\textwidth}}
\newcommand\VRule{\color{lightgray}\vrule width 0.5pt}


\begin{filecontents}{mynew.bib}

@book{bnm,
title{mybook},
author={Myself, M. and Yourself, Y.},
publisher={Cambridge University Press},
address={Cambridge},
}

@article{myarticle,
title={The Title},
author={Right, M. and Left, D. and Up, L. and Down, D.},
journal={The journal},
volume={10},
pages={423--443},
}

@incollection{new,
author = {Right, L. and Left, D. and Up, P.},
title = {New title},
editor = {Red, A. and Blue, E.G. and Green, G.A.},
booktitle = {The Handbook of my world},
publisher = {Routledge},
address = {London},
}
\end{filecontents}


\begin{document}
\maketitle
\vspace{1em}
\begin{minipage}[ht]{0.48\textwidth}
\footnotesize
My Department\\
My University\\
My Place
\end{minipage}
\begin{minipage}[ht]{0.48\textwidth}
\footnotesize
Tel.: +12345678\\
Email: [email protected]\\
Web: https://sites.google.com/site/mine
\end{minipage}
\vspace{20pt}
\section*{Informazioni Anagrafiche}
Data di Nascita: 0X/0X/19XX\\[5pt]
Cittadinanza: Italiana

\section*{Posizione Accademica}

\section*{Posizioni di Visiting}
\section*{Incarichi Accademici}

\subsection*{\it First}

\subsection*{\it Second}

\subsection*{\it Third}

\section*{Istruzione}

\section*{Progetti di Ricerca}

\section*{Premi e Borse di Studio}

\bibliographystyle{plain}
\nobibliography{mynew}
\section*{Pubblicazioni}
\subsection*{\it Monografie}
\begin{longtable}{L!{\VRule}R}
2014&\bibentry{mybook}\\ [5pt]
\end{longtable}

\subsection*{\it Capitoli di Libro}
\begin{longtable}{L!{\VRule}R}
2016& \bibentry{new}\\[5pt]
\end{longtable}

\subsection*{\it Lavori in riviste referate}
\begin{longtable}{L!{\VRule}R}
2017&\bibentry{myarticle}\\[5pt]
\end{longtable}


\section*{Teaching (Last 5 years)}

\section*{References}

\end{document}

当我尝试编译它时,文件中没有出现 bibentries。此外,我收到以下错误消息:

抱歉,但“C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\texify.exe”没有成功。

日志文件希望包含让 MiKTeX 再次运行的信息:

C:/用户/dario/AppData/Local/MiKTeX/2.9/miktex/log/texify.log

如果你需要帮助,你可以访问 MiKTeX 项目页面

我尝试使用我的包管理器 (Miktex 2.9) 同步 texify 文件,但什么也没发生。此外,如果我尝试再次编译该文件,我会收到相同的错误消息,并且除非我取消文件夹中的所有辅助文件,否则我无法编译我的 tex。

有人知道为什么会发生这种情况吗?

提前致谢,

答案1

您忘记了=参考书目中的 a。请参阅以下条目以获取更正版本:

@book{bnm,
title={mybook},
author={Myself, M. and Yourself, Y.},
publisher={Cambridge University Press},
address={Cambridge},
}

然后编译就不会出现错误了。

您的第二个问题可以通过使用正确的密钥来解决,如下所示:

\begin{longtable}{L!{\VRule}R}
2014&\bibentry{bnm}\\ [5pt]
\end{longtable}

由于您的问题涉及 LaTeX 理解的基础知识,我绝对建议您阅读众多 LaTeX 初学者指南及其有关调试的章节。

相关内容