
Erstmaliger LaTeX-Benutzer hier!
Ich verwende Overleaf (früher WriteLatex) und wenn ich versuche, eine ihrer Lebenslaufvorlagen zu verwenden, erhalte ich eine Fehlermeldung, ohne dass ich auch nur einen einzigen Buchstaben in den Code eingebe.
Vorlage:
https://www.overleaf.com/latex/templates/aparna-cv/ckldkvjcjwxz#.VTLIhPnF98E
Fehler:
Missing control sequence inserted.
<inserted text>
\inaccessible
l.84 ...ty}{Fargo, ND}{B.Sc. Physics}{2004 - 2008}
Antwort1
Das eigentliche Problem liegt weiter vorne. Wenn Sie die Zeile, in der das IIT Madras Logo aufgerufen wird (Zeile 68 der Originalvorlage), ersetzen, z. B. wie im Beispiel, funktioniert alles einwandfrei. (Sie haben dieses Logo wohl nicht.)
% (c) 2002 Matthew Boedicker <[email protected]> (original author) http://mboedick.org
% (c) 2003-2007 David J. Grant <davidgrant-at-gmail.com> http://www.davidgrant.ca
% (c) 2008 Nathaniel Johnston <[email protected]> http://www.nathanieljohnston.com
% (l) 2012 Arun I B <[email protected]> http://www.ee.iitm.ac.in/~ee10s026/
%This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 2.5 License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/2.5/ or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.
\documentclass[letterpaper,11pt]{article}
\newlength{\outerbordwidth}
\pagestyle{empty}
\raggedbottom
\raggedright
\usepackage[svgnames]{xcolor}
\usepackage{framed}
\usepackage{times}
\usepackage{tocloft}
\usepackage{graphicx}
\usepackage{multirow}
\usepackage[utf8]{inputenc}
\title{Aparna-CV}
%-----------------------------------------------------------
%Edit these values as you see fit
\setlength{\outerbordwidth}{3pt} % Width of border outside of title bars
\definecolor{shadecolor}{gray}{0.75} % Outer background color of title bars (0 = black, 1 = white)
\definecolor{shadecolorB}{gray}{0.93} % Inner background color of title bars
%-----------------------------------------------------------
%Margin setup
\setlength{\evensidemargin}{-0.25in}
\setlength{\headheight}{0in}
\setlength{\headsep}{0in}
\setlength{\oddsidemargin}{-0.25in}
\setlength{\paperheight}{11in}
\setlength{\paperwidth}{8.5in}
\setlength{\tabcolsep}{0in}
\setlength{\textheight}{9.5in}
\setlength{\textwidth}{7in}
\setlength{\topmargin}{-0.3in}
\setlength{\topskip}{0in}
\setlength{\voffset}{0.1in}
%-----------------------------------------------------------
%Custom commands
\newcommand{\resitem}[1]{\item #1 \vspace{-2pt}}
\newcommand{\resheading}[1]{\vspace{8pt}
\parbox{\textwidth}{\setlength{\FrameSep}{\outerbordwidth}
\begin{shaded}
\setlength{\fboxsep}{0pt}\framebox[\textwidth][l]{\setlength{\fboxsep}{4pt}\fcolorbox{shadecolorB}{shadecolorB}{\textbf{\sffamily{\mbox{~}\makebox[6.762in][l]{\large #1} \vphantom{p\^{E}}}}}}
\end{shaded}
}\vspace{-5pt}
}
\newcommand{\ressubheading}[4]{
\begin{tabular*}{6.5in}{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular*}\vspace{-6pt}}
%-----------------------------------------------------------
\begin{document}
%-----------------------------------------------------------
%Insert IIT Madras Logo
\begin{tabular*}{7in}{l@{\extracolsep{\fill}}r}
% & \multirow{4}{*}{\includegraphics[scale=0.19]{iitmlogo}}\\ % HERE!
& \multirow{4}{*}{}\\
& \\
%-----------------------------------------------------------
\textbf{\Large Sreekanth $|$ EE10S0600 } & \\
Research Scholar & \\
IIT Madras, Chennai, India \\
[email protected] \\
\end{tabular*}
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Education}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{itemize}
\item
\ressubheading{My University}{My Town, ON}{B.Sc. Physics}{2004 - 2008}
\begin{itemize}
\resitem{Undergraduate Thesis: Why Electron Spins Rule}
\resitem{Graduated with Honours and a XX.X\% average}
\end{itemize}
\item
\ressubheading{My High School}{Hick Town, ON}{High School Diploma}{2000 - 2004}
\begin{itemize}
\resitem{President of Students' Council and captain of the rugby team in senior year}
\resitem{Graduated with a XX.X\% average}
\end{itemize}
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Personal Statement}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{center}
\parbox{6.762in}{I'm the hardest working person I know, and therefore you should hire me. My qualities include blah, blah, and blah. I have lots of experience working with blah, and I am not afraid to blah. In fact, I'm such an amazing person that I can't believe you haven't hired me yet.}
\end{center}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Work Experience}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{itemize}
\item
\ressubheading{Calculus I}{My University}{Undergraduate Teaching Assistant}{Sept. 2007 - Apr. 2008}
\begin{itemize}
\resitem{Graded assignments.}
\resitem{Led weekly course seminars.}
\end{itemize}
\item
\ressubheading{Happy Time Farms}{Hick Town, ON}{Farm Hand}{Sept. 2000 - Dec. 2002}
\begin{itemize}
\resitem{Milked cows.}
\resitem{Milked goats.}
\resitem{Milked cats.}
\end{itemize}
\item
\ressubheading{Hick Town Press}{Hick Town, ON}{Paperboy}{June 1996 - Aug. 2000}
\begin{itemize}
\resitem{Delivered the local newspaper to 70 customers every morning.}
\end{itemize}
\end{itemize}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Awards, Grants \& Honours}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\vspace{-2pt}
\begin{center}\begin{tabular*}{6.6in}{l@{\extracolsep{\fill}}r}
\multicolumn{2}{c}{Physics Graduation Prize (\$XXX) \cftdotfill{\cftdotsep}2007}\\
\multicolumn{2}{c}{Award of Awesomeness (\$XXX) \cftdotfill{\cftdotsep} 2006}\\
\multicolumn{2}{c}{My University Entrance Scholarship (\$X XXX) \cftdotfill{\cftdotsep}2004}\\
\multicolumn{2}{c}{My High School Grade 12 Physics Award (\$XXX) \cftdotfill{\cftdotsep}2004}\\
\multicolumn{2}{c}{Boy Genius Award (\$XXX) \cftdotfill{\cftdotsep}2003}\\
\vphantom{E}
\end{tabular*}
\end{center}\vspace*{-16pt}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\resheading{Skills}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{itemize}
\item
Programming and Markup Languages
\begin{itemize}
\resitem{{\bf Expert:} CSS, HTML}
\resitem{{\bf Intermediate:} Java, \LaTeX, Python}
\end{itemize}
\item
Software
\begin{itemize}
\resitem{{\bf Expert:} MS Access, MS Excel, MS Word}
\resitem{{\bf Intermediate:} Maple, MATLAB}
\end{itemize}
\item
Other
\begin{itemize}
\resitem{People person, enjoys being challenged, hardworking, smells nice}
\end{itemize}
\end{itemize}
\end{document}
Antwort2
Nachdem ich den Code überprüft hatte, konnte ich die Kompilierung durch Kommentieren durchführen
\ressubheading{My High School}{Hick Town, ON}{High School Diploma}{2000 - 2004}
für die der Eintragsteilcode
\begin{tabular*}{6.5in}
{l@{\cftdotfill{\cftsecdotsep}\extracolsep{\fill}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular*}\vspace{-6pt}}
Anscheinend ist der Code nicht klar geschrieben, aber soweit ich es verstehe, versuchen sie, die Unterüberschrift tabellarisch zu schreiben, wie im Handbuch (Wiki Latex-Tabellen).
\begin{tabular}{r@{.}l}
3 & 14159 \\
16 & 2 \\
123 & 456 \\
\end{tabular}
Die Lösung wäre also, die Definition von „Resubheading“ wie folgt zu ändern:
\begin{tabular}
{l@{\hspace{120mm}}r}
\textbf{#1} & #2 \\
\textit{#3} & \textit{#4} \\
\end{tabular}\vspace{-6pt}}
Der obige Code ist ein Hack. Sie können die Logik ändern, damit alles besser passt.