I have some questions regarding tables and graphics.
1. How to make the table not to move too far away from where it is written? My table always move to 1~2 pages away on the top of that page. My code is:
Code: Select all
\begin{table}[h]
\begin{center}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
...
\hline
\end{tabular}
\end{center}
\end{table}
Code: Select all
\documentclass[a4paper]{article}
%\documentclass[12pt]{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[margin=1in]{geometry} % set the margins to 1in on all sides
\usepackage{graphicx} % to include figures
\usepackage{amsmath} % great math stuff
\usepackage{amsfonts} % for blackboard bold, etc
\usepackage{amsthm} % better theorem environments
\usepackage{slashbox}
...
\includegraphics[scale=2]{/home/lehe/results/0_1.png}
4. If my image files are named after numbers from 1, 2, ..., 10, is it possible to use something like loop to go over them so to include them in the tex file?
Thank you and regards!