# Tag Info

## Hot answers tagged minipage

5

There was an error and 3 omissions. The error was a blank line after the second minpage which inserted therefore a paragraph break. The omission was the [t] optional argument on all 3 minipages to get top alignment. \documentclass{article} %\usepackage[margin=5.5cm]{geometry} \usepackage{amsmath} \begin{document} \begin{figure}[h] \centering ...

4

First, I changed the minipage width to 1\textwidth, not 1.7\textwidth. Then, I eliminated the center environment, as it was basically redundant with \centering. I then placed the image in a \makebox[0pt]{}, so that margin violations would be ignored. I added a \par at the end just to emphasize that \centering needs to have the paragraph end to take ...

3

Use the [t] option to align your minipage at the first line: \documentclass{article} \begin{document} \begin{itemize} \item blbl \item \begin{minipage}{4cm} some text\\some text\\some text\end{minipage} \item \begin{minipage}[t]{4cm} some text\\some text\\some text\end{minipage} \end{itemize} \end{document} Edit You can align the following minipage ...

3

Note that using a floating environment like figure inside a minibox environment does not make sense. The way around makes sense. caption.sty provides an undocumented macro \captionbox which comes handy for your use case: \documentclass[a4paper]{article} \usepackage{caption,graphicx,geometry} \geometry{showframe} \begin{document} \begin{figure}[t] ...

2

To preserve the spacing introduced by gb4e above and below, put minipage inside gb4e, not the other way around: \lipsum[4] \begin{exe} \item[]\begin{minipage}[t]{0.5\linewidth} \ex Left example \end{minipage}% \begin{minipage}[t]{0.5\linewidth} \ex Right example \label{rightex} \end{minipage} \end{exe} The right-column example is ...

2

Cheat! ;-) \documentclass{article} \usepackage{graphicx} \begin{document} \begin{figure}[htp] \centering \begin{minipage}[b]{.45\textwidth} \centering \includegraphics[height=5cm,width=3cm]{example-image-a} \begin{minipage}[t]{\textwidth} \caption{This is a short caption on two lines} \end{minipage} \end{minipage}% \hfill ...

2

Are you looking for something like this: \documentclass[11pt]{article} \usepackage{caption,subcaption} \usepackage{graphicx,booktabs} \begin{document} \begin{figure}[tbp] \centering \begin{minipage}[b]{1.0\linewidth} \centering \subcaption{Panel A subtitle} \label{fig:sub-a} \includegraphics[width=0.3\textwidth]{example-image-1x1} ...

2

The line with the minipages is over-full because of a paragraph indent before the first minipage, and a word space between them. You could use \noindent\begin{minipage} but here I use center which also sets \parindent to zero and re-adds suitable vertical spacing. I used % to remove the word space between the boxes. (It might be better to have a space ...

1

Just type \hspace{0.5cm} after \end{minipage} and before \begin{minipage}.

1

You can scale a tikzpicture by adding scale=<number> to the environment options, e.g. \begin{tikzpicture}[scale=0.75,...]. Another way would be to change the unit vectors, by saying e.g. \begin{tikzpicture}[x=0.8cm,y=0.8cm]. The default for both is 1cm. For this case you could alternatively change the coordinates of the nodes, to bring them a bit ...

1

When you do a minipage, the contents is wrapped inside a \vbox (or \vtop or \vcenter, but the cases are the same), which is set to the width of the widest box in it. In this case, the widest boxes are the lines of the paragraph in adjustwidth, which are \textwidth+0.5in wide; the adjustment on the left is not taken into account, because it's obtained by an ...

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