Latex 找不到TeXstudio 2.10.4和moderncv MakeCVooter

Latex 找不到TeXstudio 2.10.4和moderncv MakeCVooter,latex,Latex,在TeXStudio(和moderncv)的最新版本中,无法识别用于在页脚上添加额外行的命令makecvfooter(错误\makecvfooter undefined.\renewcommand*{\makecvfooter})。我怎样才能解决这个问题 我的代码: \makeatletter % defines one's skype (optional) % usage: \skype{<email adress>} \newcommand*{\skype}[1]{\def\@s

在TeXStudio(和moderncv)的最新版本中,无法识别用于在页脚上添加额外行的命令makecvfooter(错误\makecvfooter undefined.\renewcommand*{\makecvfooter})。我怎样才能解决这个问题

我的代码:

\makeatletter
% defines one's skype (optional)
% usage: \skype{<email adress>}
\newcommand*{\skype}[1]{\def\@skype{#1}}
\renewcommand*{\makecvfooter}{%
\setlength{\footerwidth}{0.8\textwidth}%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
  \parbox[b]{\footerwidth}{%
    \centering%
    \color{color2}\addressfont%
    \vspace{\baselineskip}% forces a white line to ensure space between main text and footer (as footer height can't be known in advance)
    \ifthenelse{\isundefined{\@addressstreet}}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
      \ifthenelse{\equal{\@addresscity}{}}{}{\addtofooter[~--~]{\@addresscity}}% if \addresstreet is defined, \addresscity and \addresscountry will always be defined but could be empty
      \ifthenelse{\equal{\@addresscountry}{}}{}{\addtofooter[~--~]{\@addresscountry}}%
      \flushfooter\@firstfooterelementtrue\\}%
    \collectionloop{phones}{% the key holds the phone type (=symbol command prefix), the item holds the number
      \addtofooter{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
    \ifthenelse{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
    \ifthenelse{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
    \ifthenelse{\isundefined{\@skype}}{}{\addtofooter{\includegraphics[height=.7\baselineskip]{skype_gray}~\@skype}}%
    \collectionloop{socials}{% the key holds the social type (=symbol command prefix), the item holds the link
      \addtofooter{\csname\collectionloopkey socialsymbol\endcsname\collectionloopitem}}%
    \ifthenelse{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
    \ifthenelse{\lengthtest{\footerboxwidth=0pt}}{}{\flushfooter}% the lengthtest is required to avoid flushing an empty footer, which could cause a blank line due to the \\ after the address, if no other personal info is used
    }}}%
 \pagestyle{plain}
\makeatletter
%定义个人的skype(可选)
%用法:\skype{}
\纽科曼*{\skype}[1]{\def\@skype{1}
\renewcommand*{\makecvfooter}{%
\setlength{\footerwidth}{0.8\textwidth}%
\fancypagestyle{plain}{%
\fancyfoot[c]{%
\密码箱[b]{\footerwidth}{%
\居中%
\颜色{color2}\addressfont%
\vspace{\baselineskip}%强制使用白线以确保主文本和页脚之间的间距(因为页脚高度无法预先知道)
\如果其他{\isundefined{\@addressstreet}{}{\addtofooter[]{\addresssymbol\@addressstreet}%
\如果其他{\equal{\@addresscity}{}{}{\addtofooter[~-~]{\@addresscity}}%,如果定义了\addresstreet,\addresscity和\addresscountry将始终被定义,但可以为空
\如果其他{\equal{\@addresscountry}{}{}{\addtofooter[~-~]{\@addresscountry}}%
\flushfooter\@firstfooterelementtrue\\}%
\collectionloop{phones}{%键保存电话类型(=符号命令前缀),项保存号码
\addtofooter{\csname\collectionloopkey phonesymbol\endcsname\collectionloopitem}}%
\如果其他{\isundefined{\@email}}{}{\addtofooter{\emailsymbol\emaillink{\@email}}}%
\如果其他{\isundefined{\@homepage}}{}{\addtofooter{\homepagesymbol\httplink{\@homepage}}}%
\如果其他{\isundefined{\@skype}}{}{\addtofooter{\includegraphics[height=.7\baselineskip]{skype\u gray}~\@skype}}%
\collectionloop{socials}{%键保存社交类型(=符号命令前缀),项保存链接
\addtofooter{\csname\collectionloopkey社会符号\endcsname\collectionloopitem}}%
\如果其他{\isundefined{\@extrainfo}}{}{\addtofooter{\@extrainfo}}%
\如果ELSE{\lengthtest{\footerboxwidth=0pt}{}{\flushfooter}%,则需要进行lengthtest以避免刷新空页脚,如果未使用其他个人信息,则可能会由于地址后面的\\而导致空行
}}}%
\页面样式{plain}

这与TeXStudio无关,但与底层(La)TeX安装有关,即moderncv类。 在moderncv 2.0.0(2015-07-28发布)中,您的命令有一个新名称:

\renewcommand*{\makecvfoot}{%
}%
旧的是:

\renewcommand*{\makecvfooter}{%
}%
资料来源:

这与TeXStudio无关,但与底层(La)TeX安装有关,即moderncv类。 在moderncv 2.0.0(2015-07-28发布)中,您的命令有一个新名称:

\renewcommand*{\makecvfoot}{%
}%
旧的是:

\renewcommand*{\makecvfooter}{%
}%
资料来源:

作为修复,我还需要更改:

\makeletterfooter


在文件moderncv.cls和moderncvstylecasual.sty中,以使事情再次正常工作。

作为修复,我还需要更改:

\makeletterfooter


在文件moderncv.cls和moderncvstylecasual.sty中重新运行。

您好,您能发布一个吗?我添加了一个片段。您好,您能发布一个吗?我添加了一个片段。正如您在回答中看到的,在更改命令后,其他内容被打断。我只能看到我的答案,没有任何内容被打断。您问题中被打断的部分不是一个片段MWE。如果没有MWE进一步识别您的问题几乎是不可能的。按照以下说明添加“MWE”(最小工作示例),只需写入\vspace{-0.8cm}并接收“未定义的控制序列”正如您在答案中看到的,更改命令后,其他内容被中断。我只能看到我的答案,没有任何内容被中断。您问题中被中断的部分不是MWE。如果没有MWE,则几乎不可能进一步识别您的问题。按照以下说明添加“MWE”(最小工作示例)只需编写\vspace{-0.8cm}并接收“未定义的控制序列”