# Tag Info

4

subfigure sets up a minipage. Hence you need to add \centering inside subfigure environment also. \documentclass{article} \usepackage{subcaption} %\DeclareCaptionLabelFormat{r-parens}{} %\renewcommand\thesubfigure{} \captionsetup[sub]{labelformat=empty} \begin{document} \thispagestyle{plain} \begin{figure}[h] \centering \begin{subfigure}[b]{1.5cm} ...

4

The problem is the clipping rectangle you are specifying, which starts at -.3\textwidth units below (0,0). This can be easily detected if you put a \fbox around each tikz picture, to reveal the actual extension of the picture: \begin{figure} \subbottom[]{ \fbox{\tikz{ \draw (0,0) ...

4

Your example combined with the code provided by Toby Cubitt (the author of cleveref) in Crossreference in Ref Range [(1a-1e) to (1a-e)] could be a starter: \documentclass{article} \usepackage{subfig} \usepackage{hyperref} \usepackage{cleveref} \makeatletter \newcommand\crefstripprefix[2]{% \begingroup% \edef\@toksa{#1}% \edef\@toksb{#2}% ...

3

I wouldn't be using minipage at all; just subfigure is enough. Code \documentclass{scrartcl} \usepackage{caption} \usepackage{floatrow} \usepackage{subcaption} \usepackage{graphicx,xcolor} \usepackage[framemethod=tikz]{mdframed} \newcommand{\fakeimage}{{\fboxsep=-\fboxrule\fbox{\rule{0pt}{3cm}\hspace{4cm}}}} \begin{document} \begin{figure} ...

3

This may not be the solution you want, but it works. BTW, could you at least try to create a MWE which is minimal and working, but still has the problem. \documentclass{article} \usepackage{tikz} \usepackage{caption} \usetikzlibrary{shadows} \begin{document} \begin{figure}[t] \centering \begin{tabular}{cc} \begin{tikzpicture}[thick,scale=0.5,every ...

3

Here is a solution using the stackengine (and the varwidth) package. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption} \usepackage{varwidth} \usepackage{stackengine} \usepackage{lipsum} \usepackage{float} \DeclareCaptionLabelFormat{none}{} \captionsetup[subfigure]{justification=centering, labelformat=none} \newsavebox{\mybox} ...

2

Your code is far away to be MWE and it also has some errors. So it is difficult to see, what is the problem. From the MWE below you can see, that with proper use of subfloats from subfig package you obtain nice figure on half of page: \documentclass{article} \usepackage{caption,subfig} \usepackage{tikz} \begin{document} \begin{figure}\centering ...

2

First: you have included floatrow twice. You can use ffigbox inside a figure environment: \documentclass[a4paper,12pt]{scrartcl} \usepackage{tikz,floatrow,hyperref} \usepackage[hypcap=true]{caption} \usepackage[hypcap=true]{subcaption} \usepackage[all]{hypcap} %link to top of figure % caption format ...

2

Try this solution. \documentclass{article} \usepackage{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure}[!h] \centering \begin{tabular}[c]{cc} \begin{subfigure}[c]{0.4\textwidth} \includegraphics[width=\textwidth]{figures/scatter_cash_CapIQ_CEOfixed_to_total.png} \caption{CEO fixed / total} ...

2

Do you want to resize or just shift them? You can easily resize them to \textwidth using \resizebox{\textwidth}{!}{ } (inside the figure environment), IMHO it would look better that way. \documentclass[a4paper,10pt]{scrreprt} \usepackage{pgfplots} \usepackage{subfig} \usepackage{blindtext} \begin{document} \begin{figure} \resizebox{\textwidth}{!}{ ...

2

A recommended solution with subcaption. \documentclass[preview,border=12pt]{standalone}% change it back to your document class \usepackage{pgfplots} \usepackage{subcaption} \usepackage{blindtext} \begin{document} \blindtext \begin{figure}[hbtp] \centering \subfigure[c]{.4\linewidth} \centering \begin{tikzpicture}[scale=0.6] ...

2

Use \makebox to set the "official width" to zero. This will remove the overfull \hbox warning (because TeX now considers the images to be zero points wide) and also center the box: \documentclass[a4paper,10pt]{scrreprt} \usepackage{pgfplots} \usepackage{subfig} \usepackage{blindtext} \begin{document} \begin{figure} \centering \makebox[0pt]{ \subfloat[]{ ...

1

The use of minipage-s might be better than manual spacing or the use of a tabular. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{caption} \usepackage{subcaption} \begin{document} \begin{figure}[!h] \centering \begin{subfigure}[c]{0.65\textwidth} ...

1

Using subcaption alone. If we can use \hspace{} between two adjacent subfigure environments horizontally, then we have to be allowed to use vspace{} between two adjacent subfigure environments vertically. I don't know whether or not this philosophy is correct. But it seems to be correct, doesn't it? In the following example, I deliberately choose different ...

1

The following should be right up your allow. It's achieved with the aid of subcaption and some manual float management: \documentclass{article} \usepackage{verbatimbox} \usepackage[T1]{fontenc} \usepackage{fancyvrb,listings,caption} \usepackage[labelformat=simple]{subcaption} \usepackage[scaled=.73]{beramono} \fvset{baselinestretch=0.94} \parindent=0pt ...

1

Try this: (just replace the image.png's with desired image files) \documentclass{article} \usepackage[tight]{subfigure} % If you want to control the alignment of the pictures % more accurately, uncomment these and try different values % \subfigcapmargin = .5cm % \subfigtopskip = 2cm % \subfigcapskip = 2cm % \subfigcaptopadj = 1cm % \subfigbottomskip = ...

1

Expanding my comment, as requested by the OP, the idea is to force the bounding box of each figure to the region containing the included figure. This is easy, because the figure is included in a node. If the name of the node is c, for example, you only have to include the following path as part of the tikzpicture: \path[use as bounding box] (c.south west) ...

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