# Tag Info

5

To force a figure to the current position, add \usepackage{float} to your preamble and use \begin{figure}[H] \centering \includegraphics[<options>]{<image>} \caption{<caption>} \end{figure} If this is your choice, please consider also reading How to influence the position of float environments like figure and table in LaTeX? ...

3

AFAIK, the only way to control the width and height of a pgfplot axis is with width and height, and pgfplot regards them more as guidelines than rules. If you want precision, you will need to use \resizebox. \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \pgfplotsset{ %label style={anchor=near ticklabel}, xlabel ...

2

I'll try to make the point of some things here, also because I don't agree with the approach suggested in the answer posted by @Mattia. There is a bit of confusion here about some heavy matters: positioning figures, floats, captions. First, the center environment is mainly meant to be used to center text paragraphs rather than images, figure should be used ...

2

You may also consider using the overprint command. \begin{figure} \begin{overprint} \onslide<1>\includegraphics{./figure1.png} \onslide<2>\includegraphics{./figure2.png} \onslide<3>\includegraphics{./figure3.png} \onslide<4->\includegraphics{./figure4.png} \end{overprint} \end{figure}

1

The package makeidx (the most common indexing package for LaTeX) has a way to format the pages of a particular index entry. Namely, if you write \index{bulldog|textbf} then the page number for this entry will be typeset in bold face. You can use this in your case as follows: Define a new "style command" that takes one argument (the page number) and ...

1

You can overlay anything on top of a picture, but you will need to do a lot of manual placement. Here I use relative coordinates from TikZ so that changing the size of the image will not affect the placement. \documentclass[border=1pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \usepackage{mwe} \begin{document} \begin{tikzpicture} \node (A) ...

1

Redefine the command: \documentclass{article} \usepackage{graphicx} \let\IG\includegraphics \renewcommand\includegraphics[2][]{\IfFileExists{#2}{\IG[#1]{#2}}{\ignorespaces}} \begin{document} \includegraphics[width=3cm]{example-image.pdf} \includegraphics[width=5cm]{somefile.pdf} \includegraphics[width=3cm]{example-image-a.pdf} ...

1

The problem here is specific to wrapfig being in a list. One way around this problem is to adjust the margins within the list manually, and placing the figure in the appropriate position. Below I've used the power of LaTeX3's xgalley to set some relative margins within the enumerate. The image is put flush right inside a zero-height tabular (using ...

1

Here is a solution, using the resume* feature of the enumitem package. It consists in closing the enumerate environment before the inclusion of the image, and create side to side two minipage environments, top-aligned. The left-hand side minipage contains the resumed enumerate, and the right-hand side the image and its caption. At the end of these ...

Only top voted, non community-wiki answers of a minimum length are eligible