I am new to latex and I use a ready-made template to create my cv. However, I run into the following problem and I would be grateful for any suggestions-help you may offer:
The template is here https://www.overleaf.com/latex/template ... mzpvdjfqxp and I want to create a new cvsection that will include say a header for my BookChapters, and some fully justified text underneath it that will include my numbered book chapters and I can't find an easy way to do this...
Following the template, thus, I created a one column table with tabular* but whatever I do I can't get fully justified rows. This is what I added in the .cls file (which works but doesn't justify my text properly):
Code: Select all
Code, edit and compile here:
% Define an environment for cvpub\newenvironment{cvpubs}{\begin{center}\setlength\tabcolsep{0ex}\setlength{\extrarowheight}{0pt}\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} R{15.2cm}}}{\end{tabular*}\end{center}}% Define a line of cv information(skill)% Usage: \cvskill{<type>}{<skillset>}\newcommand*{\cvpub}[1]{\cvpubtypestyle{#1}\\}
Specifically, I add the following to the cls file:
% Define an environment for cvpub
\newenvironment{cvpubs}{
\setlength\tabcolsep{1ex}
\setlength{\extrarowheight}{0pt}
\begin{tabularx}{\linewidth}{@{}X@{}}
}{
\end{tabularx}
\newcommand*{\cvpub}[1]{
\cvpubtypestyle{#1}
\\
}
This is 'called' by resume.tex where it imports tex files with the relevant data, according to the following commands
%%% Import contents
\import{\sectiondir}{education.tex}
\import{\sectiondir}{experience.tex}
\import{\sectiondir}{BookChapters.tex}
\import{\sectiondir}{honors.tex}
etc.
I have created a new BookChapters.tex file which is as follows:
\cvsection{Book Chapters}
\begin{cvpubs}
\cvpub
{1. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.}
\cvpub
{2. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.}
\end{cvpubs}
when I run the resume.tex it gives me the following:
(C:\Binaries\miktex\tex\latex\oberdiek\rerunfilecheck.sty))
(C:\Binaries\miktex\tex\generic\oberdiek\se-ascii-print.def))
Runaway argument?
{ \end {tabularx} \newcommand *{\cvpub }[1]{ \cvpubtypestyle {##1} \\\ETC.
! File ended while scanning use of \@newenv.
<inserted text>
\par
l.12
?
! LaTeX Error: The font size command \normalsize is not defined:
there is probably something wrong with the class file.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.4 \begin{document}
?
I am sorry for my long question but since the structure of the cv is rather complicated I am trying to give you all the required information in order to find a solution,
Thank you very much for your help,
Dimitris