# Tag Info

6

Simply removing \par\noindent should be OK. Also, there is a spurious space in the line \end{minipage}} %\par\bigskip% Complete code \documentclass{article} \usepackage[margin=2cm]{geometry} \newlength\cardheight \newlength\cardwidth \setlength\cardheight{0.25\textheight} \setlength\cardwidth{0.4\textwidth} \newcommand\cards[1]{% ...

5

minipages have their own footnote counter, which is called mpfootnote. When you use the option symbol* loading the package footmisc, it affects only the normal footnote counter. So, if you want the same behavior for minipages, you have to add the line \renewcommand\thempfootnote{\fnsymbol{mpfootnote}} in your preamble. MWE: \documentclass{book} ...

5

I assume you intend the second argument in brackets following \begin{minipage} to act as the subfloat's caption. If that's your objective, you should place the argument immediately after \subfloat rather than after \begin{minipage}. Note that the minipage environment can take up to three optional arguments -- an "outer" vertical alignment indicator, which ...

4

The minipage environment adds a small piece of horizontal space after it, so if you use ... \begin{minipage}{.5\textwidth} ... \end{minipage}% \begin{minipage}{.5\textwidth} ... then you get the desired result- here's a complete MWE. % arara: pdflatex % !arara: indent: {overwrite: yes} \documentclass{beamer} \begin{document} ...

3

You need the [t] flag and the magic '\vspace{0pt}: \documentclass{article} \usepackage[ruled,noend]{algorithm2e} \begin{document} \begin{minipage}[t]{5cm} \vspace{0pt} \begin{algorithm}[H] \caption{Algo 1} line 1\; line 2\; \end{algorithm} \end{minipage}% \begin{minipage}[t]{5cm} \vspace{0pt} \begin{algorithm}[H] \caption{Algo ...

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 doesn't really concern Xetex so I excluded that from my example.) Sorry, I've misunderstood your question at first. A minipage is unbreakable by default, but you can use the xleftmargin=3pt and xrightmargin=3pt option of lstlisting. 3pt comes from the default value of the framesep option. If you change it, change these too (it can be automatized, but ...

2

This shows how to do it in both macro (\notes) and environment (\begin{Notes}) forms. EDIT: Thanks to jfbu for the proper syntax that allows one to avoid environment nesting. \documentclass{article} \newsavebox{\mybox} \newenvironment{Notes} {\begin{lrbox}{\mybox}\begin{minipage}{0.9\textwidth}} {\end{minipage}\end{lrbox}\fbox{\usebox{\mybox}}} ...

2

0.5\textwidth is too much. Use 0.45. Also the minipage environment should stick together as shown below. Change your minipage to 0.45\textwidth \documentclass[]{beamer} \begin{document} \begin{frame} \begin{figure} \centering \begin{minipage}{.45\textwidth} \centering \includegraphics[width=.4\linewidth]{example-image-a} \caption{A subfigure} ...

1

As previously suggested, if you intend to use the minipage environment to set the captions of the sufigures, the subfloat itself can do it and you may simply remove all the minipages in the figure. \documentclass{article} \usepackage{subfig} \usepackage[demo]{graphicx} %leave off the 'demo' option in your real document \begin{document} \begin{figure} ...

1

The adjustwidth environment of changepage takes two arguments, both of which are adjustments inward from the existing margins. So, \begin{adjustwidth}{-1cm}{-1cm} % <stuff> \end{adjustwidth} will enlarge the text block width around this environment on the left by 1cm, and on the right by 1cm (adding a total of 2cm to the entire text width). ...

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