TeX - LaTeX Asked on November 23, 2021
I have some figures and would like to add them on the left with a corresponding text on the right, with letters indicating the order, like the following image.
This is one way of doing it using a tabular
.
% figtextprob.tex SE 554582
%documentclass{memoir} % or the article/report/book class with tabularx
documentclass{article} usepackage{tabularx}
usepackage{graphicx} % for including graphical images
usepackage{mwe} % provides some sample images
begin{document}
begin{tabular}{m{0.5cm}m{0.2textwidth}m{0.7textwidth}}
(H) & includegraphics[width=0.2textwidth]{example-image-a} & His colleague
asks him, ``Why are you so cold?'' \
end{tabular}
begin{tabular}{m{0.5cm}m{0.2textwidth}m{0.7textwidth}}
(I) & includegraphics[width=0.2textwidth]{example-image-b} & Bill replies,
``I forgot my coat, and it started snowing while I was walking to work!'' \
end{tabular}
end{document}
If you use the memoir
class (a superset of the book
, report
and article
classes) you don't need the tabularx
package.
If everything will fit on one page then put all the entries into a single tabular
otherwise one entry per tabular
so that page breaks can be done automatically.
Adjust the lengths as appropriate for your document.
If you want more information on the tabular
settings read Chapter 11 Rows and columns in the memoir
manual (> texdoc memnoir
).
Answered by Peter Wilson on November 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP