1

In this moment I have something like that

enter image description here

and I want this

enter image description here

and this is the portion of the code

\begin{minipage}[b]{0.4\linewidth}
    \subsection{Tercera Configuraci\'on}
    Con ayuda de un gancho conductor tipo cocodrilo, conectar los polos positivo y negativo, en una misma linea de conducci\'on pero en diferentes nodos. (Ver Figura 4)
\vspace{1.3cm}
\end{minipage}
\hfill
\begin{minipage}[b]{0.53\linewidth}
    \includegraphics[scale=0.14]{CuboTres.png}
    \captionsetup{justification=centering}
    \captionof{figure}{Tercer montaje}
\end{minipage}

I saw this similar question " How to center a specific caption? " but in my case doesn't work.

I'm using MiKTeX and TeXworks.

  • Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it

    While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem.

    – Peter Grill Nov 05 '14 at 20:01
  • I replaced your image with example-image (from the mwe package) and it worked fine. I even put a \noindent\rule{\textwidth}{1pt} above it to check the alignment. – John Kormylo Nov 05 '14 at 20:31

1 Answers1

1

A \centering inside the minipage should do the trick, working on my side.

\begin{minipage}[b]{0.4\linewidth}
\subsection{Tercera Configuraci\'on}
Con ...
\vspace{1.3cm}
\end{minipage}
\hfill
\begin{minipage}[b]{0.53\linewidth}
\centering
   \includegraphics[scale=0.14]{CuboTres.png}
   \captionsetup{justification=centering}
   \captionof{figure}{Tercer montaje}
\end{minipage}

regards

  • thanks but i don't want to move the image too, i just want to move the captions – Omar Rodriguez Nov 05 '14 at 20:17
  • 1
    Welcome to TeX.SX! It's sometimes better to provide complete examples instead of fragments of code only –  Nov 05 '14 at 20:22
  • @OmarRodriguez just move the \centering down after a blank line after the \includeimage (but it's more normal to centre both if you are centering the caption) – David Carlisle Nov 05 '14 at 20:49