Tag Info

Hot answers tagged

27

This is caused by the floatrow package. If you don't use that package, the caption would be placed above. With floatrow, I would use a table environment instead of figure and specify the table style: \floatsetup[table]{capposition=top}


16

Here's one possibility. Since your images must go in specific places, I think that it's better not to use floating environments. I propose a different approach, using boxes (in this case, minipages) to place the information: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[norsk]{babel} \usepackage[landscape, ...


15

You can use \caption* command instead of \caption provided by caption package. \documentclass{article} \usepackage{floatrow} \usepackage{caption} \begin{document} \begin{figure}[h] \ffigbox[\FBwidth] {Your picture is here.} {\caption*{To my family}} \end{figure} \end{document}


9

The following duplicates your layout, to some extent, and is flexible: \documentclass{article} %\usepackage{showframe}% http://ctan.org/pkg/showframe \usepackage{caption}% http://ctan.org/pkg/caption \usepackage[labelformat=simple]{subcaption}% http://ctan.org/pkg/subcaption %\usepackage{graphicx}% http://ctan.org/pkg/graphicx ...


7

You can use the option heightadjust=object for \floatsetup, as I did in the following example: \documentclass[10pt]{article} \usepackage{floatrow} \usepackage[demo]{graphicx} \floatsetup{heightadjust=object} \begin{document} \begin{figure} \begin{floatrow} \floatbox{figure}[.4\textwidth][\FBheight][t] {\caption{first image positioned at the top} ...


7

You could work out how much space is taken up by your float style and adjust accordingly, or you could just let latex do it for you. If you use \includegraphics[height=\dimexpr\textheight\relax]{dummy} LaTeX reports LaTeX Warning: Float too large for page by 22.2pt on input line 9. so if you use ...


7

To make the word "Figure" appear in uppercase, you can use the option figurename=FIGURE in the \captionsetup. To change the subfigure letters to uppercase, you can use \renewcommand{\thesubfigure}{\Alph{subfigure}} somewhere in your preamble. If you also want the caption text to be made uppercase, you can define a new style using ...


7

Here's one possibility (the geometry package with its showframe option was only used to display a frame as a visual guide): \documentclass[12 pt]{article} \usepackage[showframe]{geometry} \usepackage[demo]{graphicx} \usepackage[singlelinecheck=off]{caption} \usepackage{floatrow} \usepackage{lipsum} \newlength\Myfigwd \begin{document} \begin{figure} ...


7

Here's one possibility; you might need to adjust some lengths according to your actual needs: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{floatrow} \usepackage{subfig} \begin{document} \begin{figure} \ffigbox[][7.8cm]{% \begin{subfloatrow} \ffigbox[\FBwidth][] {\caption{subfigure-a}} ...


6

You can use \RawCaption outside the \floatbox command: \documentclass{article} \usepackage{floatrow} \usepackage[demo]{graphicx} \usepackage{siunitx} \usepackage{caption} \begin{document} \begin{figure} \RawCaption{\caption{Selected Interatomic Distances of Protons in $\beta$-Pinene Normal actone}\label{fig:noeDistances}}\vskip\captionskip ...


6

It seems the starred environment version subfloatrow* produces the correct numbering. The floatrow manual isn't too verbose, though, about why is so -- quoting from section 6.2: subfloatrow* The starred form loads settings for creation captions of float parts, but in this environment the \caption command restores its meaning. Thus, you need the ...


5

If you want them vertically centered, you can use \CenterFloatBoxes, as in the following example: \documentclass{article} \usepackage{floatrow} \usepackage[demo]{graphicx} \begin{document} \begin{figure} \CenterFloatBoxes \begin{floatrow} \ffigbox {\includegraphics{image}} {\caption{A caption for a figure in a figure and a table side by ...


5

You can use the \renewcommand\subfloatrowsep{\hskip 6\columnsep} to increase the figure separation. \documentclass{article} \usepackage{caption,subcaption,floatrow} \usepackage[demo]{graphicx} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \thisfloatsetup{floatwidth=.35\hsize,% capposition=beside,% capbesideposition=left,% ...


5

You have fixed the with of \includegraphics exactly as big as \ffigbox. Probably the problem is only that the content can not be as big as the container. Narrowing a pinch the images, for example to .45\Xhsize and .95\Xhsize, seem to solve the problem and it is even more elegant (IMHO, of course). With .499\Xhsize and .999 \Xhsize the horizontal difference ...


5

I found out that one needs to restore the normal LaTeX behaviour, which is introduced by adding \RawFloats at the beginning of the figure environment.


5

\documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage[labelformat=simple]{subcaption} \renewcommand\thesubfigure{(\alph{subfigure})} % see subcaption doc \begin{document} \begin{figure} \captionsetup{singlelinecheck=off} \captionsetup[subfigure]{singlelinecheck=on} % \captionbox{Foo\label{fig:1}}[0.42\textwidth][l]{% ...


5

A \colorbox adds additional margins, i.e. \fboxsep, so one need to subtract it two times from the \textwidth. The easiest way to fix this is to use the pre-defined colorbox of the caption package which code already respects \fboxsep: \documentclass{article} \usepackage{caption} \usepackage{floatrow} \floatsetup[figure]{framestyle=fbox, ...


5

You missed one % \begin{subfloatrow}[3]%<<<<<<<<<<<<<<<<<


5

Here's a very basic, feasible implementation that inserts the caption at the desired location: \documentclass{article} \usepackage{graphicx}% http://ctan.org/pkg/graphicx \newsavebox{\graphicsbox} \begin{document} \begin{figure}[ht] \centering \savebox{\graphicsbox}{\includegraphics[width=.7\linewidth]{myfigure}}% Store image ...


4

I made a two-line change to boxhandler's macro \ReciteFigure, and set of few of the package parameters. \documentclass{article} \usepackage{floatrow} \usepackage{caption} \usepackage{boxhandler} \makeatletter \renewcommand\ReciteFigure[6][ht]{% \begin{figure}[#1]% \begin{\LRFigurePlacement}% \let\@makecaption\new@makecaption% ...


4

I don’t know the floatrow package but it seems like you want to use \RawCaption: This command allows to “release” caption contents from special box register created by floatrow package for the creation of necessary layout. Code \documentclass{article} \usepackage{tikz} \usepackage{floatrow} \begin{document} \begin{figure} \begin{tikzpicture} ...


4

The basic idea is to use TikZ to place the images inside nodes with names; this will give you control over the positioning and will also allow the placement of arrows. The requirement about cross-referencing can be fulfilled simply by using the \label, \ref mechanism. Some explanations I decided not to use overpic at all. The grid and placement of ...


4

Since your example document is fine when using caption v3.2f this is either a bug in the actual version v3.3 or an incompatibility between caption and floatrow caused by the re-implementation of the counter handling in caption v3.3 (which became necessary due some issues of the old counter handling). However, since floatrow is not supported by its author ...


4

What about using TikZ and write your caption over the image? \documentclass{article} \usepackage{graphicx} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} \node [draw=black, anchor=south west] at (0,0) {\includegraphics[width=\textwidth]{fig1}}; \node [draw=black, anchor=south west, text width=.3\textwidth] at (0,0) ...


4

Although the question includes an example code, there's no mention about the desired caption placement. The following example code contains the original layout and the one obtained by using \CenterFloatBoxes: \documentclass[pdftex,12pt,a4paper,english,dutch,leqno]{article} \usepackage[top=1cm,right=1cm,bottom=1cm,left=1.5cm,noheadfoot]{geometry} ...


4

Having rummaged through floatrow.sty for a few hours, I think that it is a matter of omission. Footnotes in floats still use the "normal" mechanism for minipage footnotes, i.e. the formatting is not adapted to \captionfootfont (used for additional explanations) or \floatfont (used for the actual table material). Solution: Inside of floats, (EDIT:) ...


4

You can use a \parbox of the desired width. For example, to get a width equal to 0.6 times the width of the text area you can say: \documentclass{article} \usepackage[demo]{graphicx} \usepackage{floatrow} \usepackage{siunitx} \begin{document} \begin{figure} \parbox{.6\textwidth}{\RawCaption{\caption{Selected Interatomic Distances of Protons in ...


4

The command \floatsetup allows the user to specify some options. This specification is always local. If you do the setup in your preamble the setup is done for the whole document. To change the setup for a single subfloat you can use \floatsetup inside a group. The floating objects are always a group so you can change \floatsetup inside the object ...


4

The following example uses the anchor by \caption via \label{<label>} and links it via \hyperref[<label>]{...}: \documentclass[11pt]{book} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{lipsum} \usepackage{floatrow} \usepackage{caption} \usepackage{hyperref} \begin{document} \begin{figure} \begin{floatrow}[3] ...


4

I don't think that you need afterpage and restoregeometry. Use negative space to move your graphic around and avoid overful box messages. E.g. \section{First Section}% \lipsum% \begin{figure}[pc]% \vspace{-2cm}%move up \begin{minipage}[t][\dimexpr \textheight + 3cm]{\textwidth} \centering% \makebox[\linewidth]{\rule{1.1\textwidth}{\textheight}} ...



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