I am using inline lists (from the enumitem package) within a table (see Comma-separated list environment) Originally, I had an issue where the inline list would expand horizontally to the width of the table. I mostly fixed this using a \hfill after the inline list, but this doesn't seem to work for the last table row. Does anyone have any ideas how I could fix this?

Here is the relevant LaTeX code:

\setlist[commalist]{itemjoin={{,}},itemjoin*={{ and}},afterlabel=\unskip{{~}}}`

##1 & %
##2 %
\end{commalist}. \hfill %

\section*{Technical Skills}
\technicalSkillsItem{Programming Languages}
{\item C
\item C++
\item Java
\item Perl
\item Python}
\technicalSkillsItem{Web-Based Development}
{\item PHP
\item JavaScript
\item CSS
\item HTML}
\technicalSkillsItem{Document markup}
{\item \LaTeX}
{\item Oracle
\item MySQL
\item postgreSQL}
\technicalSkillsItem{Operating Systems}
{\item Microsoft Windows
\item Linux
\item Solaris}
{\item Git
\item Subversion
\item Eclipse IDE}
  • 1
    Please, complete the code to a MWE. – egreg Jul 9 '12 at 21:53
  • 1
    Please always post complete documents that may be processed by latex. The fragment contains may undefined commands and undefined tablular L column, so it is virtually impossible for anyone to guess what it does or how to help make it do something different. – David Carlisle Jul 9 '12 at 21:56
  • Just guessing, try a \\ before \end{technicalSkills} – JLDiaz Jul 9 '12 at 22:08

Just add \par before \end{longtable} in the definition of the technicalSkills environment.


I added \phantom{} after the end of the commalist (ie. \end{commalist}. \phantom{}). This seems to work best for me.

  • 1
    \null would be a better choice. – egreg Jul 12 '12 at 23:20

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.