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.
\centeringinside thefigureenvironment. – Sigur Jan 24 '14 at 22:23page=1is not needed. 2)width=1.5\textwidthmeans the image will never fit in\textwidthand not fit in\linewidththat is usually equal or smaller than\textwidth. The result is an overfull\hboxwarning and centering is not an issue. Smaller images can be horizontally centered by using\centeringat the start of thefigureenvironment. 3)centeris not an option for\includegraphics..5\textwidthit may run off the page on both sides. – Torbjørn T. Feb 24 '14 at 08:36