Awesome-CV icon indicating copy to clipboard operation
Awesome-CV copied to clipboard

Tabularwidth

Open johannesbottcher opened this issue 10 years ago • 3 comments

Resolves #34

The original code reads \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.9}}}. A table using up the complete width of the text with the following preamble: first part doesn't do anything useful at all, second part is a column which will be as wide as it's widest element, third part is a paragraph column taking up 90 percent of the textwidth (which would be much much simpler as L{.9\textwidth}).

Now, if one word in the left column is very long, for example International communication (let's suppose that is a skill) which would take up maybe .2 of the textwidth, giving a sum of 1.1\textwidth.

Solution: Use a columntype that uses up the available space: X.

  • Replaced array by tabularx (none really needed for fixed width tables, but to resolve this issue)
  • got rid of the center environment (vspace added, vspace removed (i left that, but maybe removing that would be good idea) and once over vspace added for a table that is as wide as the textwidth (and hence always centered))
  • \leavevmode because of color. likely not needed with other commit that uses the former behaviour of the column.

johannesbottcher avatar Feb 29 '16 18:02 johannesbottcher

Thanks! I'll review and apply this pull request in 2 weeks.

Sorry for late update! It's a little bit busy days. Just left a month to be free from Korean military service!

posquit0 avatar Mar 02 '16 00:03 posquit0

When I applied your changes, I found a issue on the vspace between Skills and Experience Section. Please fix this issue!

And I suggest to delete following code to align to top in a column.

\renewcommand{\tabularxcolumn}{m}

posquit0 avatar Aug 07 '16 07:08 posquit0

I don't remember why i introduced the m-columns.

The spacing was wrong because a paragraph break after the table was missing. I did this half a year back, and only to one of the instances where the horizontal spacing is off. The other instances still need fixing.

johannesbottcher avatar Aug 07 '16 07:08 johannesbottcher