I am trying to automatically create a curriculum vitae (or any other document if one would prefer) from a datafile that holds all values/entries.

Here are my individual files that go into this project:

CV.tex reads in CV_data.tex and uses CV_formats.tex to create a curriculum vitae in this case. All three files must be in the same directory and one must run CV.tex to invoke the other two and build the final document.

The resume class I am using can be found here



%% eof


% \usepackage[paper=letterpaper,left=1.0in,right=1.0in,top=1.0in,bottom=1.0in,]{geometry}
% \usepackage{res}
\usepackage{ifthen}              %% if-then-else arguments
\usepackage{paralist,array}      %% enhancements to array environment
\usepackage{float,multirow,longtable}  %% multipage tables, multirow cells
\usepackage{lscape,rotating}     %% allows for landscape tables and figures
\usepackage{color,url}           %% allows for colors and easy formatting of URL's
\usepackage{amsmath,amssymb}     %% AMS math macros; esp. \text{} in math environment 

%\usepackage{helvetica} % uses helvetica postscript font (download helvetica.sty)
%\usepackage{newcent}   % uses new century schoolbook postscript font 
\newsectionwidth{0pt}  % So the text is not indented under section headings
\usepackage{fancyhdr}  % use this package to get a 2 line header
\renewcommand{\headrulewidth}{0pt} % suppress line drawn by default by fancyhdr
\setlength{\headheight}{22pt} % allow room for 2-line header
\setlength{\headsep}{24pt}  % space between header and text
\setlength{\headheight}{24pt} % allow room for 2-line header
\pagestyle{fancy}     % set pagestyle for document
% \usepackage{hyperref}
\rhead{ {\it My.Name.GoesHere}\\{\it p. \thepage} } % put text in header (right side)
\cfoot{}                                     % the foot is empty
\topmargin=-0.5in % start text higher on the page

%% =============================================================================
\def\output#1{\def\outp@t{#1}}   %% output format specifier  
%% --- SET OUTPUT FORMAT ----- 
%% =============================================================================
%% =========================================
%% definition of data names

% \def\gpa1#1{\def\gp@1{#1}}
% \def\gpa2#1{\def\gp@2{#1}}
% \def\gpa3#1{\def\gp@3{#1}}



% \def\sponsornote#1{\def\spons@rnote{#1}}
% \def\status#1{\def\st@tus{#1}}
% \def\investigator#1{\def\investig@tor{#1}}
% \def\CoI#1{\def\Co@I{#1}}
% \def\location#1{\def\loc@tion{#1}}
% \def\note#1{\def\n@te{#1}}
%%% initialize data names
%   \gpa1{}
%   \gpa2{}
%   \gpa3{}
%% ------------------------------------------

%% ==========================================
%% CV format for table descriptions
%\newcommand{\FormFperiod}{Performance Period: }
%% -------------------------------------

\thispagestyle{empty} % this page has no header  
\name{\n@me\\ [12pt]  }% the \\[12pt] adds a blank line after name

\address{{\bf \w@ddress}}      

\address{{\bf \r@ddress}}


{\sl \textbf{\educ@tiona, \in@titutea}}\\
\textbf{\dissert@tiona} \\
{Skills:} \skill@a

{\sl \textbf{\educ@tionb}}\\
\textbf{\dissert@tionb} \\
{Skills:} \skill@b

{\sl \textbf{\educ@tionc}}\\
\textbf{\dissert@tionc} \\
{Skills:} \skill@c

  %% reset variables
%   \gpa1{}
%   \gpa2{}
%   \gpa3{}


\ifthenelse{\equal{\outp@t}{CV}}{% true condition 
  }{}% leave false condition blank    

%% eof


%% ==========================================
  \raddress{Res address}
  \waddress{Work address}
%   \gpa1{}
%   \gpa2{}
%   \gpa3{}
%   \entry

%% end data

When I run CV.tex it doesn't seem to generate my full document and skips all the "address", "education", "institute", "dissertation" details.

What am I missing in the implementation? This was built on a previous colleague's implementation and he is unavailable to ask! :(

  • Side comment: you might be interested in Peter Flynn's ideas about using LaTeX in conjunction with XML. – jub0bs Jun 2 '13 at 14:56
  • Why you use \def\dissertationa#1{\def\dissert@tiona{#1}} instead of \newcommand ? I have created similar documents sucesfuly using \newcommand – apc Jun 2 '13 at 16:49
  • Your datafile isn't doing anything, it only stores informations. Try what happens if you uncomment the line with \entry. – Ulrike Fischer Jun 2 '13 at 17:07
  • With \entry it didn't make any difference! Will try a few more things. I wonder if it is because of the res class wreaking havoc? – dearN Jun 2 '13 at 17:39

There are 3 main errors in your files:

  1. In CV_formats.tex, remove the \begin{resume} and \end{resume}. You can't use an environment (which on top you haven't defined) before \begin{document},

  2. Resumes are typeset by the \CVentry command. Add that command after \input{CV_data} in CV.tex, and

  3. As you are using the @ character as part of command names in CV_formats.tex, you need to write \makeatletter before the first line using @ (i.e., \def\output#1{\def\outp@t{#1}}) and add \makeatother at the end of the file.



|improve this answer|||||
  • Thanks for your reply. I don't understand what 2) that you suggest means. "Add that command after \input{CV_data} in CV.tex, and"... What is that command? – dearN Jun 2 '13 at 18:31
  • @drN \CVentry, the command mentioned in the previous sentence – Xavier Jun 2 '13 at 19:38
  • would you mind sharing what you did? – dearN Jun 3 '13 at 19:29
  • @drN I did exactly what I wrote in my answer. I've uploaded the files here for you. – Xavier Jun 4 '13 at 4:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.