Graphics, Figures & Tablespicture in text

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
michael_b
Posts: 15
Joined: Fri Nov 06, 2009 11:20 am

picture in text

Post by michael_b »

Hey all,

is it possible to create a picture into the flow of a text as if it was a word?

I have got this problem:
triangle.jpg
triangle.jpg (23.91 KiB) Viewed 2656 times
I know how to get the red triangle but how can i put the picture into the text?

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
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

picture in text

Post by localghost »

With pgf/tikZ this is no problem.

Code: Select all

\documentclass[11pt,a4paper,ngerman]{article}
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{%
	adieresis={ä},
	germandbls={ß},
	Euro={€}
}
\usepackage{babel}
\usepackage{nicefrac}
\usepackage{tikz}
\usetikzlibrary{patterns}
\usepackage{lmodern}

\begin{document}
  Dreieck \tikz\draw[red,pattern=north east lines,pattern color=red] (0,0)--(20pt,0)--(20pt,10pt)--cycle; mit Flächeninhalt $\nicefrac{1}{2}\cdot 1\cdot 1$.
\end{document}
Please upload attachments to the forum server.


Best regards
Thorsten
magicmoose
Posts: 90
Joined: Fri Nov 06, 2009 7:29 am

Re: picture in text

Post by magicmoose »

Or if you have the picture already as a file, you can just use \includegraphics without starting a figure environment
michael_b
Posts: 15
Joined: Fri Nov 06, 2009 11:20 am

Re: picture in text

Post by michael_b »

thank you very much. i didn't know that it was that easy with the \includegraphics. ;-)
Post Reply