Skip to content

Instantly share code, notes, and snippets.

@Ademking
Created May 22, 2023 01:25
Show Gist options
  • Save Ademking/5c4ae4bf4a200a4d0a6719d4a8bce0b0 to your computer and use it in GitHub Desktop.
Save Ademking/5c4ae4bf4a200a4d0a6719d4a8bce0b0 to your computer and use it in GitHub Desktop.
Vertical alignment in longtable with figure in table
\documentclass{article}
\usepackage{array, longtable}
\usepackage[export]{adjustbox}
\usepackage{graphicx}
\usepackage{lipsum}
\begin{document}
\begin{longtable}{|p{1in}| >{\raggedright}p{4.5in}|}\hline
p column & p column \tabularnewline \hline
\includegraphics[width=1in,valign=t, margin=0pt 3pt 0pt 3pt]{node.js-logo-image.png}
& This pictogram is for substances that have certain properties in certain situations.
This pictogram indicates a level and type of hazard or risk when using the substance.
\tabularnewline \hline
\includegraphics[width=1in,valign=t, margin=0pt 3pt 0pt 3pt]{node.js-logo-image.png}
& \lipsum*[1]
\tabularnewline \hline
\end{longtable}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment