\trans@languagepath ->\languagename, English.错误处理
How to show Tikz figures on the webpage (html)

Use Moderncv with numeric index for bibliographies

Author posted @ 2013年3月09日 11:15 in LaTeX , 2817 阅读

Here is a template latex file

\begin{filecontents*}{xxyyy.bib}
@book{testa,
    author = "The AuthorA",
    title = "The TitleA",
    year = "2012",
    publisher = "The PublisherA"
}
@book{testb,
    author = "The AuthorB",
    title = "The TitleB",
    year = "2012",
    publisher = "The PublisherB"
}
\end{filecontents*}

\documentclass[11pt,a4paper,sans]{moderncv}
\moderncvtheme[red]{classic}
\usepackage[ngerman]{babel}
\usepackage{multibib,chapterbib, babelbib}

\firstname{John}
\familyname{Doe}

\makeatletter
\renewcommand*\bibliographyitemlabel{\@biblabel{\arabic{enumiv}}}
\renewenvironment{thebibliography}[1]%
  {%
     \setlength\hintscolumnwidth{0pt}
     \setlength\separatorcolumnwidth{0pt}
     \bibliographyhead{\refname}%
%    \small%
    \begin{list}{\bibliographyitemlabel}%
      {%
        \setlength{\separatorcolumnwidth}{0.025\textwidth}
        \setlength{\topsep}{0pt}%
        \settowidth\labelwidth{\@biblabel{#1}}
        \setlength{\labelsep}{\separatorcolumnwidth}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code%
        \usecounter{enumiv}%
        \let\p@enumiv\@empty%
        \renewcommand\theenumiv{\@arabic\c@enumiv}}%
        \sloppy\clubpenalty4000\widowpenalty4000%
  }%
  {%
    \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}%
    \end{list}%
  }
\makeatother

\begin{document}

\makecvtitle

\section{Education}
\cventry{year--year}{Degree}{Institution}{City}{\textit{Grade}}{Description}
\nocite{*}

\bibliographystyle{plain}
\bibliography{xxyyy}

\end{document}

compile tex file using Emacs command : C-c C-c

that is,

pdflatex filename.tex
bibtex filename.aux
pdflatex filename.tex
pdflatex filename.tex

 

then shows below:

from http://tex.stackexchange.com/questions/67426/literature-in-moderncv

 

Other Reference:

latex moderncv中英文简历模版

http://blog.csdn.net/xiangshimoni/article/details/7381217


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter