Graphics, Figures & TablesSub-tables, Sub-images and text formatting in tabularx

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gasor
Posts: 5
Joined: Tue Dec 08, 2009 9:29 pm

Sub-tables, Sub-images and text formatting in tabularx

Post by gasor »

Hi community,

i am looking for possible ways to write a procedure list/ list of sequences for a technical report with a very sprefic layout (see attached pictures).

My plan is to go for a tabularx environment with minipages as columns.

The layout should be roughly like this:
sketch of the planned layout
sketch of the planned layout
help2.JPG (25.07 KiB) Viewed 2359 times
The problem i have now is that i dont know how I could a format the text, including paragraphs, have a textflush around included graphics and how to include tab stopps or tables in the table.

Usually this kind of layout is easier handable in MS Word i guess, but since this should be part of a report which has already too many pages written in latex, i have to go for a latex solution.

what i have achieved so far is:
übung1.pdf
current status
(16.82 KiB) Downloaded 190 times
Can anyone help me with advice how i could get my favorized layout?
Ideas about a total nw approach to this problem are also very welcome!

Code: Select all

\documentclass{article}

\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{a4wide}

\begin{document}

\begin{tabularx}{\textwidth}{p{0.1\textwidth}| p{0.5\textwidth} p{0.3\textwidth}}
\underline{Time}											&  \centering{\underline{Action}}				& \centering{\underline{Comment}} &  \\
Start  & {A pen (Latin pinna, feather) is a long, thin, rounded device used to apply ink to a surface for the purpose of 								writing, usually paper. \includegraphics[width=0.2\textwidth]{eac.jpg} There are several different types, including 						ballpoint, rollerball, fountain, and felt-tip. Historically, reed pens, quill pens, and dip pens were used. Modern-day 					pens come in a variety of colors and assortments. The most common contain blue or black ink.}
  		 &{A ballpoint pen dispenses viscous oil-based ink by rolling a small hard sphere, usually 0.7–1.2 mm and made of brass, 					steel or tungsten carbide.[1] It automatically sends ink out from a little ball. The ink dries almost immediately on 						contact with paper. This type of pen is generally inexpensive and reliable. It has replaced the fountain pen as the 						most popular tool for everyday writing.}\\ & & \\
Middle & An ape is any member of the Hominoidea superfamily of primates, including humans. Due to its ambiguous nature, the 						term ape is less suitable as a means of describing taxonomic relationships.
			 & bla \\
			 & & \\
End 	 & dsGG & \\

\end{tabularx}
\end{document}

Recommended reading 2024:

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

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

gasor
Posts: 5
Joined: Tue Dec 08, 2009 9:29 pm

Re: Sub-tables, Sub-images and text formatting in tabularx

Post by gasor »

ok guys, problem solved. I'll explain how I did it for record if someone has to face the same problem later:

firstly i discovered that tabularx column can be defined as parboxes, e.g.
\begin{tabularx}{\textwidth}{p{2cm}| p{5cm} p{5cm}}

in these parboxes u can set other tabular envirnments, itemize, enumeration environment, minipages (verry useful for textflush around graphics), or simply use \includegraphics{...} to add graphics.

in the .tex-file it looks really chaotic at the moment and it is hard to keep the overview and it takes some time to find errors if u havent done it right in the first time, but the output is really nice and just as i wanted to have it!
Post Reply