How to Continue Writing a Text After a Figure Latex
You should upgrade or use an alternative browser.
- Forums
- Mathematics
- MATLAB, Maple, Mathematica, LaTeX
Help in LaTeX- Continuing text after embedding a picture
- LaTeX
- Thread starter opus
- Start date
- TL;DR Summary
- LaTeX embedded pictures
Any ideas?
Attachments
- Screen Shot 2019-06-13 at 4.52.28 PM.png
Answers and Replies
I found this resource
https://www.overleaf.com/learn/latex/Positioning_of_Figuresand have tried the commands that it has given, such as setting the image at the top of the following page etc, but it's not really doing anything. Odd....
Edit: Also trimmed the image to get rid of all excessive border whitespace.
Attachments
- Screen Shot 2019-06-13 at 6.15.51 PM.png
Thanks!
This is a really bad solution as it will mess up your typesetting completely if you decide to write more text in front. The \newpage command should never be used unless you really mean to start a new page. It should certainly not be used for image placement.Got it. Had to use the \newpage command before embedding the image.
Thanks!
You also should not be using the figure environment if you want to put a figure in the actual text for some reason. The figure environment should be used when you want a figure in your document that has a caption and is referred to in the main text through a \ref command. In other words you would write something like
bla bla bla, see Figure~\ref{fig:1}. \begin{figure} ... \caption{}\label{fig:1} \end{figure} bleh bleh bleh.
In your case, you are not showing your entire document so we can only guess at what is going on. However, it is clear that you are making the figure on page 1, which likely has some sort of title. LaTeX is not going to put the figure on the same page as that title because where it would be put is occupied by the title. Placing the figure there would also mean moving the place where it occurs in the source to the next page, which is also not going to happen. Hence, LaTeX places your figure on the next page, regardless of whether it has text or not. When the figure is alone on a page, it is typically centered on that page, which seems to be what is going on in your case.
Note again that the figure environment produces a float (as does the table environment). These are objects that LaTeX is allowed to move around when typesetting and should be referred to in the text (they are not part of the main text!). If you want to place some image in the main text, you can just include it there, preferably in a centered environment or similar.
TLDR; You are not using the figure environment in the way it is intended. It produces a float that is allowed to move around when typesetting your document, not an object that should be placed in the main text.
Suggested for: Help in LaTeX- Continuing text after embedding a picture
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Last Post
- Forums
- Mathematics
- MATLAB, Maple, Mathematica, LaTeX
Source: https://www.physicsforums.com/threads/help-in-latex-continuing-text-after-embedding-a-picture.973390/
0 Response to "How to Continue Writing a Text After a Figure Latex"
Post a Comment