# LaTex Image Problems (Align and position) [duplicate]

I've a problem with image import in LaTex. I want to set all images centered, i tried a lot of commands found around here but nothing seems works. Now I have encountered another problem, because images aren't positioned in the right part of the document @_@ I'm new with LaTex, so probably is a noob's mistake.

Here is the code:

\section{Cliente}

\begin{figure}[ht!]
\includegraphics[page=1,width=1.5\textwidth,center]{./Query-OrderByRandOttimizzata.png}
\end{figure}

\section{Contratto}

\begin{figure}[ht!]
\includegraphics[page=1,width=1.5\textwidth,center]{./10Contratti.png}
\end{figure}

\section{Societ\a}

\begin{figure}[ht!]
\includegraphics[page=1,width=1\textwidth,center]{./10Societa.png}
\end{figure}

\section{Impianti}

\begin{figure}[ht!]
\includegraphics[page=1,width=1\textwidth,center]{./10Impianti.png}
\caption{Nota: in questo caso si \e costretti a utilizzare la query con ORDER BY per via della condizione sull' ID non rispettata.}
\end{figure}

I can't post the image for results, but it's like this:

8.1 Cliente
Image. -> Not centered.

8.2 Contratto
Image. -> Not centered.

8.3 Società
NO IMAGE -> It is in the next page.

8.4 Impianti
NO IMAGE -> It is in the next page.

Another question: How can I insert the result of a query SQL in LaTex without use a screenshot? With "result of a query" I mean:

+----------+----------+
| Col1     | Col2     |
+----------+----------+
| Val1     | Val2     |
+----------+----------+

Hope that someone can help me, Thanks :)

P.s. Sorry for my bad English.

-

## migrated from stackoverflow.comJan 24 '14 at 22:18

This question came from our site for professional and enthusiast programmers.