Graphics, Figures & TablesImages and Text in the right Order

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Images and Text in the right Order

Post by Onor »

Hello,

I would like to have a images and text in order that I put in the latex document.
How can I do that?

Thank you.

Code: Select all

begin{table}[!ht]
\begin{tabular}{lll}
Click on the “New Plan” icon &
\includegraphics[scale=1]{image021.png}&
(1) or go to “File/New/Plan” (2):
\end{tabular}
\end{table}%

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{lilly/image006.png}
\end{figure}
\end{center}
\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image06.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image018.png}
\end{figure}
\end{center}

text
\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image18.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image026.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image027.png}
\end{figure}
\end{center}

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{limage028.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image029.png}
\end{figure}
\end{center}

text
Last edited by Onor on Fri Aug 05, 2011 1:07 pm, edited 2 times in total.

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Images and Text in the right Order

Post by localghost »

I can't comprehend the problem from the given information. Perhaps you should start with the right placement parameters for your floats.

Code: Select all

\documentclass[11pt,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{First dummy figure}\label{fig:dummy-1}
  \end{figure}

  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Second dummy figure}\label{fig:dummy-2}
  \end{figure}

  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Third dummy figure}\label{fig:dummy-3}
  \end{figure}

  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Fourth dummy figure}\label{fig:dummy-4}
  \end{figure}

  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Fifth dummy figure}\label{fig:dummy-5}
  \end{figure}

  \blindtext

  \begin{figure}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Sixth dummy figure}\label{fig:dummy-6}
  \end{figure}
\end{document}
The blindtext package is only used for creating dummy text, thus is not part of the solution.

And by the way, the forum software offers a »Code« environment to tag code as such. You can find the corresponding button right above the input window while composing a message. Would be nice if you use it. Just keeps a post clear and legible.


Best regards and welcome to the board
Thorsten
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Images and Text in the right Order

Post by Onor »

When I write this and generate pdf I got the place of texts and images mixted but I need to get them in the same order I write in .tex file

Code: Select all


begin{table}[!ht]
\begin{tabular}{lll}
Click on the “New Plan” icon &
\includegraphics[scale=1]{image021.png}&
(1) or go to “File/New/Plan” (2):
\end{tabular}
\end{table}%

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{lilly/image006.png}
\end{figure}
\end{center}
\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image06.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image018.png}
\end{figure}
\end{center}

text
\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image18.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image026.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image027.png}
\end{figure}
\end{center}

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{limage028.png}
\end{figure}
\end{center}

text

\begin{center}
\begin{figure}[!h]
\includegraphics[width=0.70\textwidth]{image029.png}
\end{figure}
\end{center}

text

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Images and Text in the right Order

Post by localghost »

The information content of your last post is the same as in your initial post, thus is not very helpful. Did you test my example? As I already said, start with the right placement parameters for your floats.

Code: Select all

\begin{figure}[!ht]
% figure content
\end{figure}
For more specific help build a minimal example that is compilable as is for everybody else.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Images and Text in the right Order

Post by Stefan Kottwitz »

Hi Onor,

simply use \includegraphics, not the figure environment.

Looking at features of the figure environment:
  • Floating: not needed, as your questions showed,
  • Captions and referencing: not needed, you don't use \caption in your code.
Simply using \includegraphics with a center environment or \centering would be sufficient. However, in general I recommend to keep in mind the figure and floating concept of LaTeX. Regarding this, I agree with Thorsten and recommend to look at his examples.

Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Images and Text in the right Order

Post by Onor »

Thank you It's working but I have another problem

I wont to show a table in a paragraph as shown in the exemple but I got table in the subsubsection :(


whot should I change?

Code: Select all

\subsubsection{name}
\paragraph{name}
\begin{table}[!ht]
\begin{tabular}{lll}
Click hier &
\includegraphics[scale=1]{image099.png}& 
icon:
\end{tabular}
\end{table}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Images and Text in the right Order

Post by Stefan Kottwitz »

Hi Onor,

it's similar: also here, you don't need floating and captions, so just remove \begin{table}[!ht] and \end{table}.

Stefan
LaTeX.org admin
Onor
Posts: 17
Joined: Mon Aug 01, 2011 9:30 am

Re: Images and Text in the right Order

Post by Onor »

Thank you
Post Reply