## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ One column table for text which is fully justified

Information and discussion about graphics, figures & tables in LaTeX documents.
jagatic
Posts: 1
Joined: Tue Dec 01, 2015 12:51 pm

### One column table for text which is fully justified

Dear all,

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/templates/awesome-cv/tvmzpvdjfqxp 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):
% 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}    \\}

I now see that in order to have fully-justified text I need to use the tabularx command (instead of the tubular*), however when I try to include it in the cls file, it does not work:

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

Tags:

Johannes_B
Site Moderator
Posts: 3805
Joined: Thu Nov 01, 2012 4:08 pm
I didn't have time to answer the question and pinged the original author. How didn't have time as well, it seems.

In order to help, we need to see a minimal working example to reproduce what you see.
The template was updated in the last few days (https://github.com/posquit0/Awesome-CV), maybe the issue has resolved by itself?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

posquit0
Posts: 2
Joined: Thu Nov 19, 2015 9:07 am
Hi, I'm an author of Awesome-CV.
Sorry for so late response about your problem. I don't have a much time to use the computer because I'm serving compulsory military service in Korea.

As above reply, I added '\cvparagraph' section for justified text in last update. You can refer this issue(https://github.com/posquit0/Awesome-CV/issues/10).

Have a good day!