LaTeX forum ⇒ Graphics, Figures & TablesOne 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

Postby jagatic » Tue Dec 01, 2015 1:42 pm

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):
  1. % Define an environment for cvpub
  2. \newenvironment{cvpubs}{
  3. \begin{center}
  4. \setlength\tabcolsep{0ex}
  5. \setlength{\extrarowheight}{0pt}
  6. \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} R{15.2cm}}
  7. }{
  8. \end{tabular*}
  9. \end{center}
  10. }
  11. % Define a line of cv information(skill)
  12. % Usage: \cvskill{<type>}{<skillset>}
  13. \newcommand*{\cvpub}[1]{
  14. \cvpubtypestyle{#1}
  15. \\
  16. }

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:

User avatar
Johannes_B
Site Moderator
Posts: 3584
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Mon Jan 04, 2016 4:38 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

Postby posquit0 » Fri Jan 08, 2016 6:13 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!


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Google [Bot] and 7 guests