Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This question already has an answer here:

Let's say I have something like this

text text text

\begin{mywraptable}{r}{6cm}
my beautiful table
\end{mywraptable}

text text text

And now I define the following custom environment:

\newenvironment{mywraptable}[3]{%
\begin{wraptable}{#1}{#2}
\caption{#3}
}{%
\end{wraptable}
}

Why does the following not properly "wrap" with the surrounding text?

text text text

\begin{mywraptable}{r}{6cm}{hello}
my beautiful table
\end{mywraptable}

text text text
share|improve this question

marked as duplicate by Werner, Kurt, Thorsten, lockstep, Peter Grill Mar 24 '13 at 16:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

I discovered this question was a duplicate of Defining a custom wrapfig environemnt and was able to solve the issue by replacing \begin{wraptable} with \wraptable and \end{wraptable} with \endwraptable.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.