Curricula Vitae / RésumésHow do I include a table?

ModernCV, Friggeri, Plasmati, Classicthesis-CV, and more
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

How do I include a table?

Post by templateuser »

Hello,

Thank you so much for this template. Very nice work!

I tried to use the \table environment (to include a table with caption and label), but I got an error saying that it has not been defined. Do you have any solution for this issue?

Thanks in advance,
Natalie

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10340
Joined: Mon Mar 10, 2008 9:44 pm

How do I include a table?

Post by Stefan Kottwitz »

Hi Natalie,

with the table environment in a moderncv document, you would get the error:

Code: Select all

LaTeX Error: Environment table undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.61 \begin{table}
It's not supported. But you don't really need floating (!) tables with labels for cross-referencing and such. A normal tabular environment should do, if you don't need floating.

Still, a caption could be added by using \captionof{table}{text} if you load the caption package or the small capt-of package. You may enclose table and caption in a minipage environment or a \parbox with \centering.

Stefan
LaTeX.org admin
Post Reply