This is a fairly common question among the rookies. How I can make a figure out in the text exactly where I want, not where you want to LaTeX? The answer most obvious is to not put the figure in an environment
figure, since it is the environment who tells LaTeX that has permission to put it wherever you want. Yes, \\ includegraphics can be used without being in a figure , as the environment
must carry the word Figure ", but its content is not necessarily a graph. This often surprises newcomers. However, this solution is often not satisfactory, because we need to have a standing figure, numbered and displayed on the "List Figures of the document, and all these features can only be achieved through command \\ caption , which can only occur within the environment figure (or other floating). In theory, supports the positioning I've often read the positioner [h!] is an order more blunt, but it seems that LaTeX often disobey often also (or may not be implemented in all versions of LaTeX). The case is to put a figure " here, although there is ugly, my responsibility " does not seem easy. But it's really as simple as including float package and specify the positioner For those who prefer to do things so twisted, you may add a caption anywhere text, not necessarily in an environment figure. This may be used capt-of package or packaging captdef . Both provide similar functionality, and basically use the same mechanism, so you can choose the one you like. Using capt-of , you add the figure caption writing \\ captionof {figure} {text} figure caption, while using captdef the command to use would be \\ figcaption {text} figure caption. Both packages are flexible and allow you to add captions to tables or other floats
that you have defined yourself using the float package . You can use a tabular environment to ensure that the figure and the "false foot" go together.
0 comments:
Post a Comment