Text FormattingThe table is to the right of picture.

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

The table is to the right of picture.

Post by artemff »

How make that table will be to the right of picture?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

The table is to the right of picture.

Post by Stefan Kottwitz »

Just put it there without \newline or a paragraph break. Here's an example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\begin{document}
\includegraphics{test}
\begin{tabular}{c}
 Test
\end{tabular}
\end{document}
The simple table will be put to the right of the picture.

Stefan
LaTeX.org admin
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

The table is to the right of picture.

Post by artemff »

Stefan_K wrote:Just put it there without \newline or a paragraph break. Here's an example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\begin{document}
\includegraphics{test}
\begin{tabular}{c}
 Test
\end{tabular}
\end{document}
The simple table will be put to the right of the picture.

Stefan
Thanks. Is it possible to do this with array?
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Re: The table is to the right of picture.

Post by artemff »

Stefan_K, Your example don't work properly.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

The table is to the right of picture.

Post by Stefan Kottwitz »

artemff wrote:Is it possible to do this with array?
Of course, for example:

Code: Select all

\documentclass[a4paper,10pt]{article}
\usepackage[demo]{graphicx}
\begin{document}
\includegraphics{test}
$\begin{array}{rcl}
 E & = & mc^2
\end{array}$
\end{document}
Stefan
LaTeX.org admin
Post Reply