I am trying to write a CV. I have no previous experience of using latex.

This is my .cls file that I have written:

\ProvidesClass{Arpon_cv}[2018/09/28 Arpon's custom CV class]
\section[#1]{#1 \hfill #2}%
  \subsection[#1]{#1 \hfill #2}%
  \subsubsection[#1]{#1 \hfill #2}%

This is my .tex file:

     \datedsubsection{Bachelor of Science}{2015-Now}
         \vugichugi{University of Dhaka, Dhaka, Bangladesh}{}
         \vugichugi{Current CGPA (Up to 6th Semester): 3.72}{}
     \datedsubsection{Higher Secondary Certificate}{2014}
         \vugichugi{St. Joseph Higher Secondary School, Dhaka, Bangladesh}{}
         \vugichugi{GPA: 5.00 out of 5.00}{}
     \datedsubsection{Secondary School Certificate}{2012}
         \vugichugi{St. Joseph Higher Secondary School, Dhaka, Bangladesh}{}
         \vugichugi{GPA: 5.00 out of 5.00}{}

\datedsection{Standardized Tests}{}
     \datedsubsection{Graduate Record Examination (GRE)}{2018}
         \vugichugi{Total- 329. Quantitative Reasoning: 170, Verbal Reasoning: 159 Analytical Writing Analysis: 5.0}{}
     \datedsubsection{Test Of English as a Foreign Language (TOEFL)}{2018}
         \vugichugi{Total: 111. Reading: 29, Listening: 29, Speaking: 27, Writing: 26}{}

\datedsection{Research Interests}{}

\datedsection{Research Experience}{}
     \datedsubsection{Undergraduate Thesis}{Sept 2018-Now}
         \vugichugi{Title: Computer code development for steady-state neutronics analysis of a novel reactor core.}{}
         \vugichugi{Description: I am currently working on developing a computer code to numerically approximate the steady-state neutronics of a novel reactor core.}{} 
     \datedsubsection{Undergraduate Project}{Sept 2017-March 2018}
         \vugichugi{Title: Demonstration of axial neutron flux distribution in a hypothetical reactor core employing control pellets (control material in pellet form).}{}
         \vugichugi{Description: I demonstrated an evenly balanced axial flux distribution that can be generated if hypothetical control pellets (control material in pellet form) are used instead of regular single-piece control rods. Regular control rods generate uneven axial flux distribution when partially inserted.}{}

\datedsection{Industrial Attachment}{}
     \datedsubsection{Institute of Electronics}{March 2018-April 2018}
         \vugichugi{Atomic Energy Research Establishment (AERE), Savar, Dhaka, Bangladesh.}{}
         \vugichugi{A facility of Bangladesh Atomic Energy Commission (BAEC)}{}

\datedsection{Prizes, Awards and Grants}{}

\datedsection{Work Experience}{}
     \datedsubsection{Administrative Experience}{??}
     \datedsubsection{Teaching Experience}{??}

\datedsection{Volunteer Work}{}

\datedsection{Computer and Programming Skills}{}


When I compile the .tex file, the first page of the output pdf comes out blank. enter image description here The Header "Education" starts from the second page. And nothing below the "Industrial Attachment" section is printed. All the sections after that is just lost. enter image description here What am I doing wrong here?

  • 2
    Welcome to TeX.SE. Please add MWE tex.meta.stackexchange.com/questions/228/… as copyable code, not as screenshots. – CampanIgnis Sep 28 '18 at 12:29
  • Is it okay now? Please help me clear up this confusion. – Amit Hasan Arpon Sep 28 '18 at 12:37
  • @CampanIgnis I edited my post now. Please take a look – Amit Hasan Arpon Sep 28 '18 at 13:12
  • The problem seem to me that you typeset everything as section, subsection, and subsubsection and thus misusing those elements. I cannot help you more here, at the moment. – CampanIgnis Sep 28 '18 at 13:36
  • then what can I do to remedy this? – Amit Hasan Arpon Sep 28 '18 at 13:51

I would not define the parts of your resume/cv upon the various sectioning commands. I would just create what you want from scratch. There's a lot going on in the sectioning commands that you really don't need here, and part of this is what's creating issues for you.

I've redefined your three primary commands as follows:




which results in output such as:

enter image description here

It's not altogether identical to your output, but very similar.

Using \addvspace has the pleasant effect that it only inserts the largest of multiple vertical space being added.

I'd recommend defining a titling and description command of some sort. Something along the lines of:


\def\ae@title{\ttfamily\scshape Title:}%%

  %% set the length here in case there are formatting commands                        
  %% that might effect the appearance of the 'TITLE'                                  
  \settowidth\ae@title@width{\ae@title}%% comment to avoid unwanted whitespace
  %% set width of parbox to remaining space on line minus `1em` of
  %% space between title and the parbox itself  
      %% calculate the proper depth of the box
  \par%% switch to vmode to allow `\addvspace to do its magic
  \prevdepth\tpd}%% measure the depth to get interline spacing more properly adjusted 

  \ttfamily{\scshape Description:} #1\par\addvspace{1ex}}


which produces this appearance:

enter image description here

There are a couple of things I'm doing here which might be of interest. For one, \columnwidth and \textwidth are not necessarily the same. Generally, I feel \columnwidth is safer if you have a document that might have multple columns, for example. Note, I did use \textwidth for the section header \datedsection.

Next, I used a \parbox to get a particular effect to show off the title. You may or may not like this style. If you want to keep it though, then it's useful to understand what's going on with \prevdepth. Essentially, I'm correcting how LaTeX takes into account the depth of the minipage or \parbox. See egreg's answer to How to keep a constant baselineskip when using minipages (or \parboxes)? which nicely explains this trick I'm using.

Finally, I'm not so sure of the wisdom of bludgeoning your reader with so much capitalization.

  • I cannot thank you enough. This solved the problem. – Amit Hasan Arpon Sep 29 '18 at 1:02

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.