Linked Questions

2
votes
1answer
5k views

Figure inside a minipage [duplicate]

Possible Duplicate: How to use figure inside a minipage? For a kind of report, I have to write each section in a boxed space. To do that, I use the following : \newcommand{\textbox}[1]{ \hfill \...
0
votes
1answer
34 views

Wraping text around a figure at centre [duplicate]

I am trying to wrap text around a figure, but I would like this figure to be centered in the middle of the page. I have been using the wrapfig package. My code is below. \begin{wrapfigure}{r}{0.5\...
347
votes
8answers
382k views

Keeping tables/figures close to where they are mentioned

Is there any package or a method to force LaTeX to keep floating environments like table and figure closer to where they are declared?
5
votes
1answer
19k views

Shrink table with \adjustbox and handling booktabs margins

I'm trying to shrink table to fit on a page (as described here) but code doesn't compile. Also, my table has some tiny gaps in margins, how do I remove those? My code: \adjustbox{max width=\textwidth}{...
3
votes
1answer
624 views

How to put a figure inside a minipage when using memoir?

I need to put a figure inside a minipage, like so: \documentclass{memoir} \begin{document} \begin{minipage}{10cm} \begin{figure} blabla \caption{test} \end{figure} \end{minipage} \end{...
3
votes
1answer
1k views

display both an image and a code, side-by-side

I'd like to display both an image and a code using pdflatex, side-by-side to illustrate a concept. The code uses listing package. How could I do that ?
2
votes
1answer
551 views

Add figures to a minipage

I've been trying to add figures to a minipage in lyx but couldn't really find a way. Does someone know how this is done in lyx?
2
votes
1answer
414 views

How to center a figure with two subfigures under an enumeration item?

I want to center my two subfigures under the enumeration item, while the figure output is just at the center of the page. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.15} \...
3
votes
1answer
637 views

Minipages in Springer template

I'm using the Springer svjour3 template and trying to put two figures in the same level with: \begin{minipage}{\linewidth} % outer minipage \begin{figure} \centering \begin{minipage}{.45\linewidth}...
0
votes
2answers
349 views

Vertical SubFigures

This is NOT a duplicate of Insert two images as subfigures vertically I want two sub figures, vertically aligned. Question 229440 suggests using subfigure, but that requires \usepackage{subcaption}....
1
vote
1answer
70 views

Missing \endcsname inserted., “relax” when inserting figures in minipage in newcommand

I am trying to insert figures in minipages in newcommands to get two images on a a5 paper. MWE: \documentclass{article} \usepackage{mwe} \usepackage[a5paper, margin=5mm]{geometry} \newcommand{\...
0
votes
1answer
31 views

Two different versions for exam, solution file needs to have a figure. Float(s) lost error with current code

I'm writing an exam for my class. The problems file needs to have an empty box after each question, while the solutions file should have the solution (preferably in a different colour). I got the code ...