Advertisement
cd62131

image matrix in tabular

Sep 1st, 2017
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.56 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{ifthen}
  3. \usepackage[pdftex]{graphicx}
  4. \begin{document}
  5. \begin{center}
  6. \begin{tabular}{@{}ccccc@{}}
  7.  \newcounter{k}%
  8.   \setcounter{k}{1}%
  9.   \newcounter{i}%
  10.   \setcounter{i}{1}%
  11.   \whiledo{\thek<19}{%
  12.     \rule[-3em]{0pt}{0pt}%
  13.     \begin{minipage}{.158\hsize}
  14.      \centering
  15.      \includegraphics[clip,width=\hsize]{./M\thek.eps}\\
  16.      \(M_{\thek}\)\\
  17.    \end{minipage}%
  18.     \ifthenelse{\thei=5\OR\thek=18}{\setcounter{i}{0}\\}{&}
  19.    \stepcounter{k}\stepcounter{i}}
  20. \end{tabular}\\
  21. \end{center}
  22. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement