Text FormattingPicture is located near text

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

Picture is located near text

Post by artemff »

I want that text is next to picture. Picture is descibed in figure. How make it??

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Picture is located near text

Post by Stefan Kottwitz »

You could use a minipage environment for the text and place the minipage next to the included graphic inside the figure environment.
Or have a look at the floatflt package.

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

Picture is located near text

Post by artemff »

Stefan_K wrote:You could use a minipage environment for the text and place the minipage next to the included graphic inside the figure environment.
Or have a look at the floatflt package.

Stefan
What this work don't do that i want, how correct this, if it is possible?

Code: Select all

\begin{figure}    
    \includegraphics{images/circuit6.eps}
    \caption{bla bla bla}
\begin{minipage}{0.49\textwidth}
 При R1 = $\infty$
    $\upvarphi_b = 35.9438{\text{В}} 
\Rightarrow$
\[
   \begin{array}{l}
   E_{\text{экв}} = 35.9438{\text{В}};\\
   I1*R_{\text{в}} + I1*R_{\text{н}} = E_{\text{экв}};\\
   \Rightarrow 
   R_{\text{в}} = \frac{E_{\text{экв}} -  I1*R_{\text{н}}}{I1};\\
   R_{\text{в}} = 
   \end{array}
\]
\end{minipage}
\end{figure} 
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Picture is located near text

Post by frabjous »

I have a hard time understanding what you want to do. Have you tried the wrapfig package?
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Re: Picture is located near text

Post by artemff »

I don't understand, how this package work (documentation is misunderstandable).

Maybe you give me simple example? Because I very need this information and can't find it.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Picture is located near text

Post by frabjous »

There's a very good example of its use on this page in the LaTeX WikiBook.

But again, I'm not sure whether or not this is the kind of thing you're looking for.
artemff
Posts: 113
Joined: Sat Oct 17, 2009 11:15 pm

Picture is located near text

Post by artemff »

frabjous, Can you see why this example don't correctly work?
Text in the beggining and then picture is shown.

Code: Select all

\documentclass [a4paper, 12pt, oneside]{scrartcl}
\usepackage [CP1251] {inputenc}
\usepackage [english] {babel}
\usepackage{indentfirst}
\usepackage{misccorr}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{ccaption}
\usepackage{wrapfig}
\begin{document}
Information Information Information Information Information Information
Information Information Information Information Information Information
Information Information Information Information Information Information
\begin{wrapfigure}{r}{0.49\textwidth}
  \begin{center}
    \includegraphics{circuit.eps}
  \end{center}
  \caption{circuit.eps}
\end{wrapfigure}
Information Information Information Information Information Information
\end{document}
Post Reply