Graphics, Figures & TablesInserting a list within a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Eivissa
Posts: 3
Joined: Mon Aug 24, 2015 10:52 am

Inserting a list within a table

Post by Eivissa »

Does anyone know how to do this?

I'm currently using sharelatex to make a CV, but I'm even finding this hard. The table in question is the one here:
picture1.jpg
picture1.jpg (59.63 KiB) Viewed 11230 times
But instead of just normal text on the left, I want to create an itemized list of what I did.

Here's the section of the code:

Code: Select all

%Section: Work Experience at the top
\section{Work Experience}
\begin{tabular}{r|p{11cm}}
 \emph{Current} & Trader at \textsc{Enoi} s.p.a., Milan \\\textsc{Jan 2009}&\emph{Physical Natural Gas Trading}\\&\footnotesize{Provided analysis of spreads, in particular time and location spreads, with emphasis on trading opportunities on the curve, also taking into account the availability of storage facilities. Became familiar with logistic implications of physical gas trading and developed knowledge of continental virtual hubs for gas exchange.}\\\multicolumn{2}{c}{} \\
 \textsc{Jul-Oct 2008} & 1\textsuperscript{st} year Analyst at \textsc{Lehman Brothers}, London \\&\emph{Commodities Structured Trading}\\&\footnotesize{Developed spreadsheets for risk analysis on exotic derivatives on a wide array of commodities (\textit{ags, oils, precious} and \textit{base metals}), managed blotter and secondary trades on structured notes, liaised with Middle Office, Sales and Structuring for bookkeeping.}\\\multicolumn{2}{c}{} \\
\textsc{Summer 2007} & Summer Intern at \textsc{Lehman Brothers}, \emph{Capital Markets}\\&\footnotesize{Received pre-placed offer from the Exotics Trading Desk as a result of very positive review. Rated ``\emph{truly distinctive}'' for Analytical Skills and Teamwork.}
\end{tabular}

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Eivissa
Posts: 3
Joined: Mon Aug 24, 2015 10:52 am

Re: Inserting a list within a table

Post by Eivissa »

Anyone?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Inserting a list within a table

Post by Stefan Kottwitz »

Hi Eivissa,

welcome to the forum!

Perhaps there was no answer yet, because that code snippet is not compilable. Nobody can test that. It would always be good to post a small compilable example, in the meaning of a Infominimal working example. This is nearly a guarantee for a solution.

Here, I can hardly read the table, as there are text lines up to 479 characters long. That's not fun to read or to edit. If a table row ends by \\, I would also end the line in the source code.

Generally, when somebody shows testable readable code, it's quickly solved most of the time. Just as a general advice.

But back to the topic. You could simply use an itemize environment. It also works in a table. Do you know this, itemize?

Stefan
LaTeX.org admin
Eivissa
Posts: 3
Joined: Mon Aug 24, 2015 10:52 am

Inserting a list within a table

Post by Eivissa »

Cheers Stefan, I don't really have a background in coding so this is what I've come up with as a mwe.

Code: Select all

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}

\section{Work Experience}
\begin{tabular}{r|p{11cm}}
 \emph{ddd} & Job \\
 \textsc{Date}&\emph{Title}\\
 &\footnotesize{details}\\
 \multicolumn{2}{c}{} \\
 
 \textsc{Date} & Job \\
 &\emph{Title}\\
 &\footnotesize{details}\\
 \multicolumn{2}{c}{} \\
\end{tabular}

\end{document}
I basically want to insert an itemized list into the details bit but it keeps screwing up.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Inserting a list within a table

Post by Johannes_B »

As Stefan said, you can use itemize.

Code: Select all

\documentclass{article}
\usepackage{showframe}
\usepackage{blindtext}

\begin{document}

\section{Work Experience}
\begin{tabular}{r|p{11cm}}
	\emph{ddd} & Job \\
	\textsc{Date}&\emph{Title}\\
	&\footnotesize \begin{itemize}
		\item dancing duck
		\item wobbling whale
		\item salsa snake
		\item Rock and Roll Racoon
		\item \blindtext%to demonstrate how wide the tabular is
			%and why you get the warning
\end{itemize}
	\\

	\textsc{Date}
	& Job \\
	&\emph{Title}\\
	&\footnotesize details \\
	\\
\end{tabular}

\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply