Articles of floats

Floats that span the text width and the margin

What is the correct way of placing floats that span the text width and the margin? If the width of the float content is increased, ConTeXt does not reserve space in the margin which leads to overlapping content. At the moment I adjust the vertical placement manually using \godown, but that can’t be the right […]

Remove space before macro if exist a environment

I create a new macro: \newcommand{\intersection}[1]{% \par\vspace{\baselineskip}% \noindent\textbf{\large\bfseries\sffamily #1}\par} It works perfectly for what I want, but when there is a environment before macro, latex insert two lines: If possible that macro “detects” when exist a figure (or other environments) don’t insert a line break? MWE \documentclass[a4paper]{article} \usepackage{caption} \usepackage{amsmath,amssymb} \usepackage{chemfig} \newcommand{\intersection}[1]{% \addvspace{\baselineskip}% \noindent\textbf{\large\bfseries\sffamily #1}\par} \begin{document} […]

subfigures in a custom float (subcaption & float packages)

I need figures and subfigures with a custom caption name. In order to achieve my goal I am trying to use float package to define new float type, and subfigure to create the subfigures. However, I get compilation error messages. I reduced the code to this: \documentclass[a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{float} \usepackage{subcaption} \floatstyle{plain} \newfloat{program}{thb}{lop} \floatname{program}{Program} \begin{document} \begin{program} […]

changing the position of a caption

I have a code for putting a figure: \begin{figure} \includegraphics{some_narrow_and_tall_image.pdf} \caption{caption of the figure which can be pretty long} \end{figure} The page format is single-column. Right now the caption appears below the image, as expected from this code. I would like to set it up so that the caption is on the right hand-side of […]

Insert A3 page with figure into A4 document with active references

Based on the first answer from a previous post “Insert foldable A3 pages in an A4 document with active references”, I tried to get a figure on an A3 page in my thesis. However, it does not turn out as it should: the picture does not get centered on the page. Otherwise it works. (see […]

Warning: \label in float, but not after \caption

In my document, I usually use two following ways to work with pictures: \begin{figure}[ht!] \centering \includegraphics[scale=0.6]{pic1.pdf} \caption{ description …} \label{enz:fig_usm_1f_RLz} \end{figure} and combination with package Subfigure: \begin{figure}[ht!] \centering \subfigure[my subcaption 1 ]{ \includegraphics[scale=1.2]{subfig1.pdf}\label{my_subfig1}} \subfigure[my subcaption 2 ]{ \includegraphics[scale=1.2]{subfig2.pdf}\label{my_subfig2}} \caption{ bla bla bla bla } \label{enz:fig_ZD_NLO} \end{figure} I have got many warnings from compilers like this:: […]

Make a minipage float

I am using the minipage environment to put a table and figure next to each other. Now I would like this to ‘float’ like a normal figure or table, such that LaTeX decides where to put it (using the [htb] options). After some googling, I found that the minipage environment is not a floating one, […]

Formatting list of custom floats in classic thesis

I am writing a document using classicthesis package, where I have some algorithms written with the clrscode package. I used package float to create a new float named “algorithm”. However when I print the list of algorithms using \listof{algorithm}{List of algorithms} I either get a wrongly formatted list (i.e. with the long series of dots […]

Place logo on top of page next to edge

Before anything, this question may have been asked already, but I can’t find it. I want to place a picture right on top of the page letting no white space between the top edge of the page and the top edge of the picture. I have already fitted the picture width to the paper width […]

Fit float to page

This is a follow-up question to Best figure size adjustment when dealing with different image sizes. I want to resize a figure in a way, that the figure including the caption fits the page. Resizing just the figure has been explained in the previously mentioned question. The solution looked as follws: \documentclass[a4paper,10pt]{scrartcl} \usepackage{graphicx} \begin{document} \begin{figure} […]