我在 texmaker 中更新这份简历时做错了什么?

我在 texmaker 中更新这份简历时做错了什么?

我必须更新我的简历(课程moderncv),我已经完成了基本工作,但使用快速构建中的各种选项没有任何作用。格式与以前一样,我只是添加了一个部分。

   \documentclass[11pt,a4paper,sans]{moderncv}        % possible options include font size ('10pt', '11pt' and '12pt'), paper size ('a4paper', 'letterpaper', 'a5paper', 'legalpaper', 'executivepaper' and 'landscape') and font family ('sans' and 'roman')

    % moderncv themes
    \moderncvstyle{casual}                             % style options are 'casual' (default), 'classic', 'banking', 'oldstyle' and 'fancy'
    \moderncvcolor{blue}                               % color options 'black', 'blue' (default), 'burgundy', 'green', 'grey', 'orange', 'purple' and 'red'
    %\renewcommand{\familydefault}{\sfdefault}         % to set the default font; use '\sfdefault' for the default sans serif font, '\rmdefault' for the default roman one, or any tex font name
    %\nopagenumbers{}                                  % uncomment to suppress automatic page numbering for CVs longer than one page

    % character encoding
    \usepackage[utf8]{inputenc}                       % if you are not using xelatex ou lualatex, replace by the encoding you are using
    %\usepackage{CJKutf8}                              % if you need to use CJK to typeset your resume in Chinese, Japanese or Korean

    % adjust the page margins
    \usepackage[scale=0.75]{geometry}
    \usepackage{graphicx,amsmath,amssymb,amsfonts}
    %\setlength{\hintscolumnwidth}{3cm}                % if you want to change the width of the column with the dates
    %\setlength{\makecvtitlenamewidth}{10cm}           % for the 'classic' style, if you want to force the width allocated to your name and avoid line breaks. be careful though, the length is normally calculated to avoid any overlap with your personal info; use this at your own typographical risks...

    % personal data
    \name{sds}{V}
    \title{Curriculum Vitae}                               % optional, remove / comment the line if not wanted
    \address{abc}{M.D.U. }{fddssg}% optional, remove / comment the line if not wanted; the "postcode city" and "country" arguments can be omitted or provided empty
    \phone[mobile]{1234}                   % optional, remove / comment the line if not wanted; the optional "type" of the phone can be "mobile" (default), "fixed" or "fax"
    %\phone[fixed]{+2~(345)~678~901}
    %\phone[fax]{+3~(456)~789~012}
    \email{[email protected]}                               
    \photo[64pt][0.2pt]{Bh.jpg} 
    \quote{Best way to predict the future is to create it.}                                 
    \makeatletter\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}\makeatother
    %   to redefine the bibliography heading string ("Publications")
    %\renewcommand{\refname}{Articles}https://preview.overleaf.com/public/vpctmcqykhmn/images/71b8368a0d520687a842d23e32a816e8b40c73b0.jpeg


    \begin{document}


    \makecvtitle

    \section{Education}
    \cventry{2017-present}{Ph.D Scholar}{University }{fdfg}{\textit{}}{Tfgf}
    \cventry{2013--2016}{MS by Research}{institute}{Pu}{\textit{6.80}}{a,b,c}  % arguments 3 to 6 can be left empty
    \cventry{2010--2013}{B.Sc. (Hons.)}{Uni}{dd}{\textit{78.60\%}}{Algebra, Calculus, Analysis, Differential Equations, Statistics, Numerical Analysis}

    \cventry{2009-2010}{Class 12th}{Campus School}{Ro}{\textit{85.80\%}}{}

    \cventry{2009-2010}{Class 10th}{Campus School}{Ro}{\textit{95.40\%}}{}

\end{document}

那么现在在此之后添加另一个部分不会被快速构建更新,然后查看 pdf 是一样的吗?我已经很久没有使用它了。请提醒我我遗漏了什么?

编辑:我正尝试将其添加为教育部分之后的一个部分。

\section{Achievements}
\cventry{2013-2016}{ scholarship} 
\cventry{December 2017}{NET Qualified - AIR- 24}
\cventry{June 2018}{JRF- AIR - 111}

以下是 Overleaf 试图告诉我的内容。

在此处输入图片描述

答案1

您编辑的代码存在的问题已在您提供的代码第一部分的注释中指出:

% arguments 3 to 6 can be left empty

这意味着你不能用文字填充它们,你可以将它们留空但你必须写空的{}moderncv定义的命令\cventry具有 6 个参数和一个代码中未使用的可选参数。

为了编译添加的代码,您需要添加缺少的{}命令\cventry,例如

\cventry{2013-2016}{scholarship}{3}{4}{5}{6} % <========================

在这个例子中,我只是简单地编号了,{}以便能够在打印的简历中向您显示结果......

拥有完整的 MWE

\documentclass[11pt,a4paper,sans]{moderncv}

\moderncvstyle{casual}
\moderncvcolor{blue}

\usepackage[utf8]{inputenc}

\usepackage[scale=0.75]{geometry}
\usepackage{graphicx,amsmath,amssymb,amsfonts}

\name{sds}{V}
\title{Curriculum Vitae}
\address{abc}{M.D.U. }{fddssg}
\phone[mobile]{1234}
\email{[email protected]}
\photo[64pt][0.2pt]{example-image} 
\quote{Best way to predict the future is to create it.}

\setlength{\footskip}{42.5pt} % <=======================================

\makeatletter\renewcommand*{\bibliographyitemlabel}{\@biblabel{\arabic{enumiv}}}\makeatother


\begin{document}

\makecvtitle

\section{Education}
\cventry{2017-present}{Ph.D Scholar}{University }{fdfg}{\textit{}}{Tfgf}
\cventry{2013--2016}{MS by Research}{institute}{Pu}{\textit{6.80}}{a,b,c}  % arguments 3 to 6 can be left empty
\cventry{2010--2013}{B.Sc. (Hons.)}{Uni}{dd}{\textit{78.60\%}}{Algebra, Calculus, Analysis, Differential Equations, Statistics, Numerical Analysis}

\cventry{2009-2010}{Class 12th}{Campus School}{Ro}{\textit{85.80\%}}{}

\cventry{2009-2010}{Class 10th}{Campus School}{Ro}{\textit{95.40\%}}{}


\section{Achievements}
\cventry{2013-2016}{scholarship}{3}{4}{5}{6} % <========================
\cventry{December 2017}{NET Qualified - AIR- 24}{3}{}{}{}
\cventry{June 2018}{JRF- AIR - 111}{}{}{}{}

\end{document}

显示结果:

产生的简历

请看我添加了行

\setlength{\footskip}{42.5pt} % <=======================================

摆脱对……的担忧\footskip

最后再说一句:在您添加的代码中,您会December 2017打印两行。这看起来不太好看。请添加/取消注释该行

\setlength{\hintscolumnwidth}{3cm}

将更大的第一列放置December 2017在一行中:

第二份简历

3cm根据您的需要调整长度。

关于 TeXMaker:

您始终可以通过切换到控制台/终端来编译代码,而无需 TeXmaker。切换到您的 cv 所在的目录,假设mwe.tex然后键入。然后您将获得一个不应包含错误消息的pdflatex mwe.tex文件(将我给出的 MWE 复制到您的计算机以进行测试)。现在 - 如果您包含参考书目 - 键入或,具体取决于使用的软件包 - 并键入两次。这样做的好处是您可以在每个步骤之后检查日志文件(以及参考书目的 blg 文件)。mwe.logbibtex mwebiber mwepdflatex mwe.tex

如果 TeXMaker 在快速构建后没有更改 PDF,则表明快速构建失败(就像您的原始代码一样)。通常它应该显示错误消息,或者您只是忽略了它们。

根据您对 TeXMaker 的配置,快速构建可能会删除辅助文件 - 结果是删除了带有错误消息的文件。要消除 TeXMaker 的错误,请将您当前的 TeXMaker 快速构建配置添加到您的问题中!如果使用,请删除擦除选项!

答案2

无需更改文件快速构建的任何设置。在运行出现故障后,转到“工具”>“清理”以删除任何有故障的辅助文件可能会有所帮助。然后,您需要以正确的次数运行构建序列

问题可能是您如何添加额外的部分,而您的内容可能存在一些小问题。对于这个问题,我只需从上面剪切并粘贴部分标题,然后将其添加到 \end(document} 之前即可

在此处输入图片描述

    \cventry{2009-2010}{Class 10th}{Campus School}{Ro}{\textit{95.40\%}}{}

    \section{Experience}
    \cventry{2017-present}{Ph.D Scholar}{University of Life}{+ TexExchange forum}{\textit{}}{Learning Latex}

\end{document}

注意,每种类型的条目都有固定数量的括号,以创建给定的结构化布局

 \cventry{Date}{Description}{More}{info}{goes}{here}
 \cvitemwithcomment{Tag}{A fuller description}{Right set comment}

因此,如果您对 \cventry 的布局感到满意,但它仅包含部分信息,则需要包含空括号

\cventry{Date}{Fuller Description}{}{}{}{}

相关内容