Graphics, Figures & Tables ⇒ How to wrap a tikz picture?
How to wrap a tikz picture?
Hi,
how can I wrap my text around a tikz picture?
The picture is a tall and narrow diagram column.
I tried wrapfig and floatflt, but they produce compilation errors.
how can I wrap my text around a tikz picture?
The picture is a tall and narrow diagram column.
I tried wrapfig and floatflt, but they produce compilation errors.
Last edited by drowsy on Mon Jan 26, 2009 7:53 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to wrap a tikz picture?
Please build a minimal working example (MWE) to show this undesired behaviour. Attach the log file if necessary. To simplify this task, you can replace your picture by drawing a grid.
Longer text passages can be generated with the blindtext package.
Best regards
Thorsten¹
Code: Select all
\draw[style=help lines] (-3,-10) grid (3,10);
Best regards
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to wrap a tikz picture?
Well, wrapfig compiles, but it says:
I will produce a MWE, but the document is very large, so it takes time to make it minimal.
In the meantime, can you tell me what works for you?
This might help faster and better then requesting MWEs...
Basically, it moves the picture like 14 pages later.\begin{wrapfigure}{l}{10cm}
\begin{tikzpicture}
Package wrapfig Warning: wrapfigure used inside a conflicting environment on in
put line 8.
Package wrapfig Warning: Stationary wrapfigure forced to float on input line 34
.
I will produce a MWE, but the document is very large, so it takes time to make it minimal.
In the meantime, can you tell me what works for you?
This might help faster and better then requesting MWEs...
Re: How to wrap a tikz picture?
ok, the problem was that I put it inside a very long definition
environment and did not notice that.
environment and did not notice that.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to wrap a tikz picture?
In your initial post you talked about errors. But these messages are (only) warnings.drowsy wrote:Well, wrapfig compiles, but it says:
Code: Select all
Package wrapfig Warning: wrapfigure used inside a conflicting environment on in put line 8. Package wrapfig Warning: Stationary wrapfigure forced to float on input line 34 .
A MWE should always show what you are doing wrong and not what is working for me. Another point is that I'm not intended to give a solution immediately. It would have no learning effect. Nevertheless you get my MWE with wrapfig.drowsy wrote:[...] In the meantime, can you tell me what works for you?
This might help faster and better then requesting MWEs [...]
Code: Select all
\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[margin=2cm]{geometry}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{lmodern}
\usepackage{blindtext}
\parindent0em
\begin{document}
\begin{wrapfigure}{r}{7cm}
\centering
\begin{tikzpicture}
\draw[style=help lines] (-3,-8) grid (3,8);
\end{tikzpicture}
\caption{Tall and narrow figure}\label{fig:tnfigure}
\end{wrapfigure}
\blindtext[4]
\end{document}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to wrap a tikz picture?
I did, but the very first sentence was asking for an example.localghost wrote: In your initial post you talked about errors.
Anyway, thank you. Problem solvedHi,
how can I wrap my text around a tikz picture?

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
How to wrap a tikz picture?
But you also talked about compilation and your own efforts. And I'm still interested in these efforts in the sense of a MWE.drowsy wrote:[...] the very first sentence was asking for an example [...]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
How to wrap a tikz picture?
Huh? See my earlier post, the problem was that I had a loooonglocalghost wrote: And I'm still interested in these efforts in the sense of a MWE.
definition(did not notice it) and a float inside.