# Tag Info

5

Package subfigure is obsolete for a long time. Use a modern alternatve like package subcaption: \documentclass{article} \usepackage{subcaption} \usepackage{mwe} \begin{document} \begin{figure} \begin{subfigure}{.49\textwidth} \centering A nice little title \includegraphics[width=\linewidth]{example-image-a} \caption{a ...

4

The problem are the different tick formats of your axis. Here is an example with only 2x2 where it is solved. First of all, I created a 2x2 figure in Matlab using subplot(2,2,x) with x from 1 to 4. I exported the figure to tikz and got the following code: % This file was created by matlab2tikz v0.4.6 running on MATLAB 8.3. % Copyright (c) 2008--2014, Nico ...

4

There are two things you can do. Make the tabular align at the baseline too (like the image does by default) by using \begin{tabular}[b]{@{}cc@{}} %% note [b] Or align the circuit at the center of its bounding box (like the tabular does by default, you don't need to put [c] BTW): \begin{circuitikz}[baseline={(current bounding box.center)}] ...

4

You need to specify a width in the mandatory argument for each of the subfigure environments; something like \begin{subfigure}[b]{.6\textwidth} ... \end{subfigure}% \begin{subfigure}[b]{.4\textwidth} ... \end{subfigure} (the % after the first \end{subfigure} is esential). It is not clear to me, however, why are you using subfigure for each matrix; ...

3

By default, images align (have their baseline) on the bottoms and tabulars are centered. Both can be adjusted internally, or one can use \raisebox. The following aligned their centers. Also, \hfil and \vfil is how centering is actually done. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage{booktabs} ...

3

That's odd:-) I didn't trace exactly what happened there, but anyway it's more natural to use \hrule rather than \hrulefill in this context, and that has the advantage of working:-) \documentclass[journal,a4paper]{IEEEtran} \usepackage[utf8]{inputenc} \usepackage[T5,T1]{fontenc} \usepackage{subcaption} % Subfigures ...

3

Why TikZ? You could just save the figures from Matlab as an eps file and use the package subcaption. \documentclass{article} \usepackage[demo]{graphicx} \usepackage{subcaption}% http://ctan.org/pkg/subcaption \captionsetup[subfigure]{labelformat = parens, labelsep = space, font = small} \begin{document} \begin{figure} \centering ...

3

You can use \ContinuedFloat like this: \documentclass[demo]{article} \usepackage{subfig,graphicx} \begin{document} \begin{figure}[htb] \centering \subfloat[Pedestrian level (2 m)]{ \label{fig:8} \includegraphics[width=12cm]{2m.eps} } \subfloat[10 m above ground level]{ \label{fig:9} ...

2

First of all, let's see what a regular figure looks like under aastex: \documentclass{aastex} \usepackage{graphicx,showframe} \begin{document} \begin{figure} \centering \includegraphics[width=.3\linewidth]{example-image} \figcaption{Side-by-side figures.} \label{fig:figures} \end{figure} \end{document} Note the use of \figcaption for the ...

2

The caption package is not compatible with IEEEtran and so also subcaption. Indeed you have the following warning in the .log file: Package caption Warning: Unsupported document class (or package) detected, (caption) usage of the caption package is not recommended. See the caption package documentation for explanation. You can use subfig ...

2

Update: (2014/10/16) A second approach is use of patchcmd from etoolbox to patch the \hfill command embedded in subfigmatrix because the \hfill is used to evenly allocate the figures in a row. Code \PassOptionsToPackage{}{graphicx} \documentclass[]{article} \usepackage[papersize={20cm,25cm}]{geometry} \usepackage{graphicx} \usepackage{subfigmat} ...

2

You have two options: Omit the space between the two subfigures putting a % symbol after of the first \end{subfigure} (i.e \end{subfigure}%). Reduce the width of the subfigures for example to 0.45\linewidth, (i.e. \begin{subfigure}{.45\linewidth}). This allows to keep the space between both subfigures without forcing a change of line. ...

2

The subfigure environment is defined by the subcaption package. Moreover, it takes a mandatory argument -- the intended width. The following code works fine: \documentclass{article} \usepackage{graphicx} \usepackage{subcaption} % not 'subfigure' \begin{document} \begin{figure} \begin{subfigure}{3in} % choose intended width here ...

2

The package caption that's automatically loaded by subfig (unless you pass it the caption=false option) makes further checks to the placement of \label for a caption, in order to warn users making the common error of having the label before the caption. You have it after, but there's a catch: the \caption command is inside an environment, so the label it ...

2

The subtable makes no sense here if you want it on top of each other. This is centered: \begin{table}[!htb] \centering \begin{circuitikz} \draw (0,-1) to[battery] (0,2) to[ammeter] (4,2) -- (4,-1) to[resistor] (0,-1) (0.5,-1) -- (0.5,-2) to[voltmeter] (3.5,-2) -- (3.5,-1) ; \end{circuitikz} \begin{tabular}{@{}cc@{}} \toprule Current & ...

2

You have explicitly prevented latex from putting the float on a page on its own, as you have used the optional argument and not included p so over-riding the default [tbp]. So not using the option or including p would probably help. \pagebreak does not flush pending floats you need \clearpage for that, although that may not be needed if the floats are ...

1

I worked out a solution to my problem and thought i would post it here in case anyone else had the same problem as me. I ended up giving up on the subfigure environment and just using the maths environment to format them. \begin{figure}[h!] \centering \[ \left[ \begin{array}{ccccc} w_{1,1} & w_{1,2} & \cdots & w_{1,m-1} & w_{1,m}\\ ...

1

subfigure is obsolet for many years, subfig doesn't work well with hyperref. Package subcaption is a good alternative. Font swtches are, well ... switches, but not environments. Please take a mental note. Best practice is to define global things in the preamble, loading package subcaption also provides the capabilities of package caption. You now have ...

1

The cubcaption manual hints to use the command subcaption instead of captionof. It increases the counters internally. Another possibility would be to use the provided environment subfigure (it uses a minipage itself and got the same syntax, you could just do a string replace) along with the caption command we all know. Both of the following MWEs produce ...

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