Table, tabular, tabular, vertical, latex

Well, that sounds so simple, but I spent hours searching on Google, and I just can't find a solution, it's not difficult. I want to create a table in which there are images and text. I want each table row to have the same height. And I want the text to always start at the top. i.e.

\begin{tabular}{l l}
some text & some text and some more text...\\ %both starting at the same height.
\includegraphics{aImage.eps} & (*)Some text...   %both starting at the same height.
\end{tabularx}

In my intuition, the beginning of the text in an asterisk (*) should be vertically aligned at the top of aImage, but this is not the case, and I cannot figure it out correctly. Adding [b] or [t] does not help. That I’m completely wrong, because I can’t be the only person who wants this.

+3
source share
2 answers

, TikZ - . TikZ node \node{\includegraphics{myfile.ext}}, . , . ( , ), pgffor.

\documentclass{article}

\usepackage{tikz}

\begin{document}
\begin{tikzpicture}

\draw[step=2cm] (-4cm,0) grid (4cm,4cm);

\node at (-3cm,3cm) {Text};
\node at (-3cm,1cm) {includegraphics};

\end{tikzpicture}
\end{document}

, , LaTeX. , " - ".

, .

+1

, , , LaTeX , , - , , .

, , parbox, -

\includegraphics{aImage.eps} & \parbox[b]{0.4\linewidth}{(*)Some text\vspace{3\baselineskip}}

, parbox , , , . , ( 0.4\linewidth) ( 3\baselineskip) , - . , , , .

0

Source: https://habr.com/ru/post/1773955/


All Articles