LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Latex question, image and paragraph ordering.. (https://www.linuxquestions.org/questions/linux-software-2/latex-question-image-and-paragraph-ordering-249178/)

doublefailure 10-30-2004 02:30 PM

Latex question, image and paragraph ordering..
 
hello

i'm very new to tex.

when i import a graph file with

paragraph1

\begin{figure}[htbp]
\begin{center}
\input{figure3.pstex_t}
\caption{figure3 name }
\label{figure:figure3}
\end{center}
\end{figure}

paragraph2


sometimes when the image is big, the graph position gets changed.

i.e. on pdf, it appears like this

pargraph1

paragraph2

the figure3


can i fix this problem?

thank you in advance

ToniT 10-30-2004 02:45 PM

The line
Code:

\begin{figure}[htbp]
means: Here starts a figure, please put it here, or if it doesn't fit there very well, put it in the top of the page, or if it doesn't look good there either, but it at the bottom of the page, or into a separate figures-page.

To force it to be "here", you can say
Code:

\begin{figure}[!h]
Warning: micromanaging your document leads to a major loss in efficiency and work hours. Generally it is better to let LaTeX decide where to put the text and figures and focus your energy on just referring to the picture in right place of the text (and to the subject itself).

doublefailure 10-30-2004 03:27 PM

thanks

i got your point.

i just changed location of images so that it can be better related to the text contents.


btw, !h gives warning
LaTeX Warning: `!h' float specifier changed to `!ht'.

and doesn't seem to work as you said.


thank you again.

ToniT 10-30-2004 08:40 PM

hmm.. that is strange.
I just checked from lshort manual (page 42, floating bodies)
and if I understand it correctly, it should work as I said.


All times are GMT -5. The time now is 07:16 PM.