Sunday, 2 June 2013

Automatic report generation

Automatic report generation

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
CV.tex
\input{CV_formats}

\begin{document}
\input{CV_data}
\end{document}
%% eof
CV_formats.tex
\documentclass{res}
%
% \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{fancyhdr}
\pagestyle{fancy}


\usepackage[T1]{fontenc}
%\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 -----
\output{CV} 
%% =============================================================================
%
%% =========================================
%% definition of data names
\def\name#1{\def\n@me{#1}}
\def\raddress#1{\def\r@ddress{#1}}
\def\waddress#1{\def\w@ddress{#1}}
\def\educationa#1{\def\educ@tiona{#1}}
\def\educationb#1{\def\educ@tionb{#1}}
\def\educationc#1{\def\educ@tionc{#1}}

\def\institutea#1{\def\in@titutea{#1}}
\def\instituteb#1{\def\in@tituteb{#1}}
\def\institutec#1{\def\in@titutec{#1}}
%
% \def\gpa1#1{\def\gp@1{#1}}
% \def\gpa2#1{\def\gp@2{#1}}
% \def\gpa3#1{\def\gp@3{#1}}

\def\dissertationa#1{\def\dissert@tiona{#1}}
\def\dissertationb#1{\def\dissert@tionb{#1}}
\def\dissertationc#1{\def\dissert@tionc{#1}}

\def\skillsa#1{\def\skill@a{#1}}
\def\skillsb#1{\def\skill@b{#1}}
\def\skillsc#1{\def\skill@c{#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#

No comments:

Post a Comment