关于moderncv制作简历

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
semenljw
帖子: 50
注册时间: 2009-07-24 14:33
送出感谢: 0
接收感谢: 0

关于moderncv制作简历

#1

帖子 semenljw » 2011-02-18 16:45

我尝试用自带的moderncv宏包制作个人简历,编译无法通过。
我的main.tex代码如下(没有汉字,全是英文):

代码: 全选

\documentclass[11pt,a4paper,noblankpage]{moderncv}
\moderncvtheme[blue]{classic}
\firstname{...}
\begin{document}
\section{...}
\end{document}
我用xelatex编译,产生如下错误:

代码: 全选

This is XeTeX, Version 3.1415926-2.2-0.9997.4 (TeX Live 2010)
 restricted \write18 enabled.
entering extended mode
(./main.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, pi
nyin, ukenglish, usenglishmax, loaded.
(/usr/local/texlive/2010/texmf-dist/tex/latex/moderncv/moderncv.cls
Document Class: moderncv 2010/08/03 v0.12 modern curriculum vitae document clas
s
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/size11.clo)
(/usr/local/texlive/2010/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/etex-pkg/etex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/ifthen.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/color.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/color.cfg)
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xetex-def/xetex.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/base/t1enc.def))
(/usr/local/texlive/2010/texmf-dist/tex/latex/lm/lmodern.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/marvosym/marvosym.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/url/url.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(/usr/local/texlive/2010/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/moderncv/moderncvcompatibility.st
y) (/usr/local/texlive/2010/texmf-dist/tex/latex/marvosym/umvs.fd)
(/usr/local/texlive/2010/texmf-dist/tex/latex/moderncv/tweaklist.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/hyperref.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifluatex.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/etexcmds.sty))
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/pdfescape.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/hycolor.sty
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/letltxmacro.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(/usr/local/texlive/2010/texmf-dist/tex/latex/hyperref/pd1enc.def)
(/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/intcalc.sty)
(/usr/local/texlive/2010/texmf-dist/tex/xelatex/xetexconfig/hyperref.cfg)

! Package hyperref Error: Wrong driver option `pdftex',
(hyperref)                because pdfTeX in PDF mode is not detected.

See the hyperref package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.3889 \ProcessKeyvalOptions{Hyp}
                                 
? 
求助~~~
semenljw
帖子: 50
注册时间: 2009-07-24 14:33
送出感谢: 0
接收感谢: 0

Re: 关于moderncv制作简历

#2

帖子 semenljw » 2011-02-20 19:14

没人回答,自己再顶一下~~~
semenljw
帖子: 50
注册时间: 2009-07-24 14:33
送出感谢: 0
接收感谢: 0

Re: 关于moderncv制作简历

#3

帖子 semenljw » 2011-02-23 15:06

问题已解决,采用http://blog.sina.com.cn/s/blog_5e16f1770100lgs5.html所提供的moderncv宏包,并且将其中moderncv.cls文件中内容

代码: 全选

\ifpdf
\RequirePackage[pdftex,]{hyprref}
\else
\RequirePackage[dvips]{hyprref}
\fi
修改为

代码: 全选

\RequirePackage{hyprref}
后即可用xelatex编译
回复

回到 “办公、图像、机械电子设计等”