General ⇒ Wrapping style of tables
Wrapping style of tables
I have a question about tables. I am writing a paper and I want to occasionally use simply tables. However, since the content of the cells is relatively small I don't want the tables to stretch from the one side of the page to the other, but be wrapped along the text (for example, if the page is 20cm wide, I want the table to be just 10 cm. wide and have text on the other 10 cm. next to it). Which package should I use for that?
Thank you very much
Alexander
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Wrapping style of tables
Thanks for the advice. Unfortunately I have problems obtaining the package documentation. There's a note that "most of the package documentation is contained in wrapfig.sty itself (after the \endinput command at the end of the package proper)". What is a "package proper". I also tried to use the floatflt package. The problem with it is that, although putting the figure on the right side, it doesn't just put text nexto to the figure, but also overrides it.
Wrapping style of tables
Code: Select all
\documentclass{article}
\usepackage[a4paper,pagesize]{typearea}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{color}
\usepackage{graphicx}
\usepackage{eurosym}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage{blindtext}
\usepackage{url}
\usepackage[authoryear,longnamesfirst,comma,square]{natbib}
\usepackage{mathrsfs}
\usepackage{tikz}
\usepackage[rflt]{floatflt}
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{floatingfigure}[r]{5cm}
\includegraphics[width=5cm]{figure2}\\
\caption{Comparison}
\end{floatingfigure}
\end{document}
- Attachments
-
- figure2.pdf
- (235.42 KiB) Downloaded 288 times
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Wrapping style of tables
here is the file: wrapfig.sty
Open it and look at the beginning (lines 1-159) and the end (lines 333-595), there it's documented.
Stefan
Re: Wrapping style of tables
http://en.wikibooks.org/wiki/LaTeX/Floa ... hite_space
Re: Wrapping style of tables

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Wrapping style of tables
Stefan