3

i have a table with two columns, and in the left column I want 5 rows, and in the second column a single image covering the entire left column.

So far, this is what I tried but it is not working

\documentclass[letterpaper,11pt]{article}
\usepackage{graphicx}
\begin{document}
    \begin{tabular*}{7in}{l@{\extracolsep{\fill}}l}
        & {\centering \includegraphics[trim=8cm 20cm 8cm 8cm,clip=true,scale=0.1]{name.jpg}}\\
        \textsc{\textbf{\LARGE NAME HERE}} & \\
        \textsc{\small{ADDRESS}} &\\
        \textsc{\small{Languages}} & \\
        \small{Phone} & \\
        \small{Email} & \\
        \small{DOB: 15/05/1991}\\
        \end{tabular*}
\end{document}

2 Answers 2

1

Use two nested tabulars by adding a newcommand: \newcommand{\cell}[1]{\begin{tabular}{@{}l@{}}#1\end{tabular}}

\documentclass[letterpaper,11pt]{article}
\usepackage{graphicx}

\newcommand{\cell}[1]{\begin{tabular}{@{}l@{}}#1\end{tabular}}

\begin{document}
\begin{tabular*}{4in}{l@{\extracolsep{\fill}}l}
  \cell{{\LARGE\bfseries NAME HERE} \\
        {\small\scshape Address}    \\
        {\small\scshape Languages}  \\
        {\small Phone}              \\
        {\small Email}              \\
        {\small DOB: 15/05/1991}}            
  & \cell{\includegraphics[scale=0.3]{example-image-A}}
\end{tabular*}

\end{document} 

enter image description here

2

You looking for multirow cell:

\documentclass[letterpaper,11pt]{article}
\usepackage[demo]{graphicx}
\usepackage{array, multirow} % <-- added

\begin{document}
    \begin{tabular*}{5in}{>{\small}l @{\extracolsep{\fill}} c}
        &   \multirow{6}{*}{\includegraphics[trim=8cm 20cm 8cm 8cm, % <-- image is in multi row cell
                                             clip=true,scale=0.1]{name}}\\
\textsc{\textbf{\LARGE NAME HERE}} & \\
\textsc{ADDRESS}    &   \\
\textsc{Languages}  &   \\
Phone               &   \\
Email               &   \\
DOB: 15/05/1991     &   \\
    \end{tabular*}
\end{document}     

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .