GeneralImage placement

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
NinV
Posts: 69
Joined: Sun Oct 05, 2008 12:57 pm

Image placement

Post by NinV »

Hi,

I'm a beginner so I beg your pardon if a post a trivial question.
I've already read some guides, but I didn't succeed to sort out my problem.

I have to 'compose' an image uploading several small pictures according to the passed variables. The result should be like this example.

I did succeed to compose the image, but zooming it or even printing it the 32 parts are separated from each other by spaces (a white line).

My code is the following:

Code: Select all

\usepackage{cool}
\usepackage{pstricks}
\usepackage{calc}
\usepackage{ifthen}
\usepackage{graphicx}
\graphicspath{{img/}}

\newcommand{\nvtbao}[1][22,0,0,0,0,0,0,0,0,0,2,2,6,0,0,0,0,0,0,0,0,6,2,2,0,0,0,0,0,0,0,0,0,22]{
 \liststore{#1}{bc}
 \psset{unit=0.5}
 \begin{pspicture}(0,0)(8,4)
  \rput(8.5,3.5){b}
  \rput(8.5,2.5){a}
  \rput(0.5,-0.5){\footnotesize 1}
  \rput(1.5,-0.5){\footnotesize 2}
  \rput(2.5,-0.5){\footnotesize 3}
  \rput(3.5,-0.5){\footnotesize 4}
  \rput(4.5,-0.5){\footnotesize 5}
  \rput(5.5,-0.5){\footnotesize 6}
  \rput(6.5,-0.5){\footnotesize 7}
  \rput(7.5,-0.5){\footnotesize 8}
  \rput(-0.5,0.5){B}
  \rput(-0.5,1.5){A}
  \rput(0.5,4.5){\footnotesize 8}
  \rput(1.5,4.5){\footnotesize 7}
  \rput(2.5,4.5){\footnotesize 6}
  \rput(3.5,4.5){\footnotesize 5}
  \rput(4.5,4.5){\footnotesize 4}
  \rput(5.5,4.5){\footnotesize 3}
  \rput(6.5,4.5){\footnotesize 2}
  \rput(7.5,4.5){\footnotesize 1}

 \rput(-1,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bci.eps}}

 \rput[bl](0,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcii.eps}}
 \rput[bl](1,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bciii.eps}}
 \rput[bl](2,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bciv.eps}}
 \rput[bl](3,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcv.eps}}
 \rput[bl](4,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcvi.eps}}
 \rput[bl](5,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcvii.eps}}
 \rput[bl](6,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcviii.eps}}
 \rput[bl](7,3){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcix.eps}}

 \rput[bl](0,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcx.eps}}
 \rput[bl](1,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxi.eps}}
 \rput[bl](2,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxii.eps}}
 \rput[bl](3,2){\includegraphics[height=0.5cm,width=0.5cm]{cb\bcxiii.eps}}
 \rput[bl](4,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxiv.eps}}
 \rput[bl](5,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxv.eps}}
 \rput[bl](6,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxvi.eps}}
 \rput[bl](7,2){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxvii.eps}}

 \rput[bl](0,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxviii.eps}}
 \rput[bl](1,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxix.eps}}
 \rput[bl](2,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxx.eps}}
 \rput[bl](3,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxi.eps}}
 \rput[bl](4,1){\includegraphics[height=0.5cm,width=0.5cm]{cb\bcxxii.eps}}
 \rput[bl](5,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxiii.eps}}
 \rput[bl](6,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxiv.eps}}
 \rput[bl](7,1){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxv.eps}}
 
 \rput[bl](0,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxvi.eps}}
 \rput[bl](1,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxvii.eps}}
 \rput[bl](2,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxviii.eps}}
 \rput[bl](3,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxix.eps}}
 \rput[bl](4,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxx.eps}}
 \rput[bl](5,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxxi.eps}}
 \rput[bl](6,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxxii.eps}}
 \rput[bl](7,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxxiii.eps}}

 \rput[bl](8,0){\includegraphics[height=0.5cm,width=0.5cm]{bb\bcxxxiv.eps}}
 \end{pspicture}
}
I did some tests with the package subfigure, but it didn't work as well:

Code: Select all

\documentclass{article}
\usepackage[bf,SL,BF]{subfigure}
\usepackage{fullpage}
\usepackage{graphicx}
\graphicspath{{img/}}
\makeatletter
\def\mpt{\@minipagetrue}
\def\mpf{\@minipagefalse}
\makeatother

\newcommand{\figura}{%
      \includegraphics{bb1.eps}\hspace{-4pt}
}

\begin{document}

\begin{figure}%
  \centering
  \figura\figura\figura\figura\figura\figura\figura\mpt\figura\\[-2pt]
  \figura\figura\figura\figura\figura\figura\figura\mpt\figura\\[-2pt]
\end{figure}
\end{document}
Can anybody help me to understand what is wrong with these codes? Or suggest me a guide to look at?

Thank you very much,
Nino
Window + MiKTeX 2.7
Ubuntu + TexLive + Kile
Xandros (eeePC) + TeTex + TexMaker

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply