Alinear la imagen tikz dentro del texto

Alinear la imagen tikz dentro del texto

Quiero alinear mi tikz dentro de un texto.

Una muestra se puede ver en la segunda imagen del siguiente enlace: Imagen cortesía dehttp://www.echoecho.com/htmlimages08.htm ingrese la descripción de la imagen aquí

Esta es mi prueba:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=6.0em]{geometry}
\usepackage[nomessages]{fp}
\usepackage{mathtools}
\usepackage{amssymb}
\usepackage{stmaryrd }
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{wrapfig}
\usepackage{enumerate}
\usepackage[turkish]{babel}

\usepackage[hidelinks]{hyperref}
\usepackage[stable]{footmisc}
\usepackage{perpage} %the perpage package
\MakePerPage{footnote} %the perpage package command

\setcounter{secnumdepth}{-1}

 \begin{document}

\begin{enumerate}
\item 
Ardışık üç pozitif tamsayının çarpımının hiçbir zaman bir tamsayının birden büyük bir kuvvetine eşit olamayacağını gösteriniz.

\item

\begin{tabular}[t]{p{4.5cm}r}

$ABCD$ kirişler dörtgeni ve $|AE|=|AD|$, $|BC|=|BE|$ dir. 
Buna göre, $EF\parallel AB$ olduğunu gösteriniz.

&


\definecolor{ffffff}{rgb}{1,1,1}
\begin{tikzpicture}[baseline=(current bounding box.north),line cap=round,line join=round,>=triangle 45,x=0.24698133918770565cm,y=0.24577572964669714cm]
\clip(-0.5,-2.72) rectangle (11.5,3.6);
\draw [line width=1.2pt] (0.06,-2.01)-- (4.43,3.26);
\draw [line width=1.2pt] (9.33,1.94)-- (4.43,3.26);
\draw [line width=1.2pt] (9.33,1.94)-- (11.14,-2.13);
\draw [line width=1.2pt] (11.14,-2.13)-- (0.06,-2.01);
\draw [line width=1.2pt] (11.14,-2.13)-- (4.43,3.26);
\draw [line width=1.2pt] (9.33,1.94)-- (0.06,-2.01);
\draw (-0.38,-2.0) node[anchor=north west] {$A$};
\draw (11.4,-2.00) node[anchor=north west] {$B$};
\draw (9.56,2.14) node[anchor=north west] {$C$};
\draw (3.96,3.48) node[anchor=north west] {$D$};
\draw (6,0.92) node[anchor=north west] {$E$};
\draw (7.90,0.87) node[anchor=north west] {$F$};
\begin{scriptsize}
\fill [color=ffffff] (0.06,-2.01) circle (2.0pt);
\fill [color=ffffff] (4.43,3.26) circle (2.0pt);
\fill [color=ffffff] (9.33,1.94) circle (2.0pt);
\fill [color=ffffff] (11.14,-2.13) circle (2.0pt);
\fill [color=ffffff] (6.36,0.67) circle (2.0pt);
\fill [color=ffffff] (7.67,0.66) circle (2.0pt);
\end{scriptsize}
\end{tikzpicture}
\end{tabular}


\item
$0<q<200$ ve $\dfrac{59}{80} < \dfrac{p}{q} <\dfrac{45}{61}$ koşullarını sağlayan bir $(p,q)$ tamsayı çifti bulunuz ve böyle tek bir $(p,q)$ tamsayı çifti olduğunu gösteriniz.

\item
$7$ arkadaşı olan bir kimse, bir hafta boyunca her akşam $3$ arkadaşını yemeğe çağırır. Farklı iki akşam yemeğe çağrılan gruplar birbirlerinden farklı olup; $7$ arkadaştan her biri en az bir akşam yemeğe çağrılmaktadır. Bu koşulları sağlayan kaç değişik çağrı programı yapılabileceğini bulunuz.

\item
\begin{tabular}[t]{p{7cm}r}

$O$ merkezli çemberin yarıçapı $R$'dir. $A$ merkezli $|AB|$ yarıçaplı çember ile $B$ merkezli $|BA|$ yarıçaplı çemberin $D$ kesim noktası alınıyor. $CD$ doğrusu, $O$ merkezli çemberi $E$ noktasında kestiğine göre $|ED|$ uzunluğunu $R$ cinsinden hesaplayınız. 

&
\begin{tikzpicture}[baseline=(current bounding box.north),line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]

\clip(-0.16,-1.88) rectangle (6.4,3.52);
\draw [line width=1.2pt] (4.02,0.3) circle (2.16cm);
\draw [line width=1.2pt] (4.55,2.4) circle (1.08cm);
\draw [line width=1.2pt] (3.47,2.39) circle (1.08cm);
\draw [line width=1.2pt] (1.93,0.87)-- (5.5,1.88);
\draw [line width=1.2pt] (1.93,0.87)-- (1.04,0.62);
\draw (4.04,0.04) node[anchor=north west] {$O$};
\draw (5.74,1.94) node[anchor=north west] {$C$};
\draw (4.78,2.58) node[anchor=north west] {$A$};
\draw (3.1,2.62) node[anchor=north west] {$B$};
\draw (1.56,1.12) node[anchor=north west] {$E$};
\draw (4.10,1.25) node[anchor=south east] {$D$};
\begin{scriptsize}
\fill [color=ffffff] (4.02,0.3) circle (2.0pt);
\fill [color=ffffff] (5.5,1.88) circle (2.0pt);
\fill [color=ffffff] (4.55,2.4) circle (2.0pt);
\fill [color=ffffff] (3.47,2.39) circle (2.0pt);
\fill [color=ffffff] (4.01,1.46) circle (2.0pt);
\fill [color=ffffff] (1.93,0.87) circle (2.0pt);
\end{scriptsize}
\end{tikzpicture}

\end{tabular}

\item
$$\sqrt{x - \dfrac{1987}{14}} + \sqrt{x - \dfrac{1988}{13}} + \sqrt{x - \dfrac{1989}{12}} = \sqrt{x - \dfrac{14}{1987}} + \sqrt{x - \dfrac{13}{1988}} + \sqrt{x - \dfrac{12}{1989}}$$
denkleminin tüm reel çözümlerini bulunuz.

\item
İki kişinin bir keki paylaşmasının her iki tarafı da hoşnut eden ve adil bir yöntemi şudur: Biri keki iki parçaya ayırır, diğeri parçalardan birini kendine seçer. Diğer bir deyişle keki $[0,1]$ aralığı gibi düşünürsek, birinci kişi $x_1\in [0,1]$ seçer; ikinci kişi ise $x_1$ ve $1-x_1$ sayılarından birini seçer. (Burada her iki tarafın da ``keksever'' olduğu varsayıldığından, ikinci kişinin $x_1$ ve $1-x_1$ sayılarından daha büyük olanını seçeceği ve dolayısıyla birincinin de $x_1 = \dfrac 12$ seçimini yapacağı kolaylıkla görülür.) Üç keksever kişi için benzer bir paylaşma yöntemi bulabilir misiniz? 



\end{enumerate}

\end{document}

Respuesta1

En primer lugar, su código no se puede compilar con \usepackage[turkish]{babel}ni sin \shorthandoff{=}. Ahora tengo algunas dificultades para dar una respuesta con un código de tikz como este. Creo que tu código proviene de Geogebra o algo así. Entonces, en la parte A, intento darte algunas explicaciones para traducir el código de geogebra a algo más legible y comprensible. El siguiente código ahora es perfecto porque intento obtener un código simple y muy similar al tuyo.

Parte A

Estás frente a un papel blanco con unos lápices.

a) Seleccionar un lápiz Debes seleccionar el color y el tamaño. Por defecto, el color es negro y el tamaño es 0,4 puntos. En tu código \definecolor{ffffff}{rgb}{1,1,1}define un color; rgb 1,1,1 es el color blanco y es muy extraño pero innecesario. Tikz carga el paquete xcolor y este paquete define algunos colores fundamentales como el blanco y el negro. Si continúas ejecutando Geogebra, puedes usar un editor para cambiar todo el código como ffffff por blanco. Un ejemplo \definecolor{mycolor}{rgb}{.2,1,.5}. El tamaño line width=0.5ptse da al principio porque este tamaño se utiliza para los dibujos. line width=1.2ptEs demasiado grande para mí pero...

b) Ahora necesitas dibujar pequeños círculos. Eliges un punto en el papel (a,b) del primer punto (0,0) está bien. Necesitamos usar este punto después para que sea posible nombrar el punto. Le das un nombre con coordenada (a). Después de esto escribes la etiqueta $A$ con el mismo lápiz. Con tikz se puede colocar una etiqueta o un texto con un nodo. Por defecto, el nodo es un rectángulo y escribes $A$ en él. Puedes unir el rectángulo al punto con un ancla aquí anchor=north west.

Con el mismo lápiz sumas B, C y D. Se rellenan los círculos. Puedes llenar los círculos con la opción [fill].Observación: Por defecto, el color es negro si quieres otro color, fill=graypor ejemplo.

c) Ahora podemos dibujar las líneas. Del mismo color y del mismo tamaño que dibujamos, el \draw (a) -- (b) -- (c) --(d) -- cycle;ciclo del cuadrilátero se utiliza para cerrar el camino.

d) El punto E y F. F es un punto de la recta AC. Es fácil definirlo con coordenadas baricéntricas. E en mi ejemplo está en la intersección de dos líneas AC y BD. Nombramos las líneas (los caminos) conname path

\draw (a) -- (b) -- (c) --(d) -- cycle;
\draw [name path=ac] (a) -- (c);
\draw [name path=bd] (b) -- (d);

Obtengo la intersección con `nombre intersecciones={of=ac y bd, by=e}``

Puedes evitar los últimos pasos porque Geogebra puede darte las coordenadas de E y F pero creo que necesitas ubicar A, B, C y D con coordenadas simples. Es más legible.

Código completo para la imagen.

\begin{tikzpicture}[scale=.4,line width=0.5pt]
\draw[fill] (0,0)  coordinate (a)  circle (4pt)   node[anchor=north west] {$A$}
            (11,0) coordinate (b)  circle (4pt)   node[anchor=north west] {$B$}
            (9,3)  coordinate (c)  circle (4pt)   node[anchor=south west] {$C$} 
            (3,4) coordinate (d)   circle (4pt)   node[anchor=south west] {$D$} ;
 \draw (a) -- (b) -- (c) --(d) -- cycle;
 \draw [name path=ac] (a) -- (c);
 \draw [name path=bd] (b) -- (d);
 \draw [name intersections={of=ac and bd, by=e},fill] (e) circle (4pt) node[anchor=north] {$E$};
 \draw[fill]  (barycentric cs:a=1,c=1) coordinate (f) circle (4pt) node[anchor=north] {$F$};;
\end{tikzpicture}

observaciones:Eliminé la baselineopción: el cuadro no está colocado en relación con una línea. Yo también lo eliminé x= ... and y=.... Es más sencillo usar el valor predeterminado de 1 cm para xey y luego usar una escala.

Parte B

Utilicé el picinspaquete para colocar las imágenes dentro del texto. Puedes encontrarloaquí

No está en texlive y necesitas descargarlo. wrapfigEl paquete es incompatible con la lista de enumeración.

Necesitas el para cargar \usepackage{mdwlist}. Este paquete es útil porque cuando usa la macro \parpicdel picinspaquete, el margen de sangría es falso, por lo que debe agregarlo antes del siguiente elemento.

\suspend{enumerar} \resume{enumerar}

El código completo puede ayudarte:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=6.0em]{geometry}
\usepackage{tikz}
\usetikzlibrary{intersections}
\usepackage{picins}
%  http://tug.ctan.org/tex-archive/macros/latex209/contrib/picins/picins.sty
\usepackage{mdwlist}
\usepackage{multicol,lipsum}
\usetikzlibrary{arrows}

\begin{document}
\begin{multicols}{2}
\begin{enumerate}

    \item 
\parpic[l]{%
\begin{tikzpicture}[scale=.25,line width=0.5pt]
\draw[fill] (0,0)  coordinate (a)  circle (4pt)   node[anchor=north west] {$A$}
            (11,0) coordinate (b)  circle (4pt)   node[anchor=north west] {$B$}
            (9,3)  coordinate (c)  circle (4pt)   node[anchor=south west] {$C$} 
            (3,4) coordinate (d)   circle (4pt)   node[anchor=south west] {$D$} ;
 \draw (a) -- (b) -- (c) --(d) -- cycle;
 \draw [name path=ac] (a) -- (c);
 \draw [name path=bd] (b) -- (d);
 \draw [name intersections={of=ac and bd, by=e},fill] (e) circle (4pt) node[anchor=north] {$E$};
 \draw[fill]  (barycentric cs:a=1,c=1) coordinate (f) circle (4pt) node[anchor=north] {$F$};;
\end{tikzpicture}
}%
\lipsum[1]
\suspend{enumerate}
\resume{enumerate}

\item   \parpic[r]{%
\begin{tikzpicture}[scale=.4,line width=0.5pt]
\draw[fill] (0,0)  coordinate (a)  circle (4pt)   node[anchor=north west] {$A$}
            (11,0) coordinate (b)  circle (4pt)   node[anchor=north west] {$B$}
            (9,3)  coordinate (c)  circle (4pt)   node[anchor=south west] {$C$} 
            (3,4) coordinate (d)   circle (4pt)   node[anchor=south west] {$D$} ;
 \draw (a) -- (b) -- (c) --(d) -- cycle;
 \draw [name path=ac] (a) -- (c);
 \draw [name path=bd] (b) -- (d);
 \draw [name intersections={of=ac and bd, by=e},fill] (e) circle (4pt) node[anchor=north] {$E$};
 \draw[fill]  (barycentric cs:a=1,c=1) coordinate (f) circle (4pt) node[anchor=north] {$F$};;
\end{tikzpicture}
}%
\lipsum[1-1]

\end{enumerate}
\end{multicols}

\begin{enumerate}

    \item 
\parpic[l]{%
\begin{tikzpicture}[scale=.8,line width=0.5pt]
\draw[fill] (0,0)  coordinate (a)  circle (4pt)   node[anchor=north west] {$A$}
            (11,0) coordinate (b)  circle (4pt)   node[anchor=north west] {$B$}
            (9,3)  coordinate (c)  circle (4pt)   node[anchor=south west] {$C$} 
            (3,4) coordinate (d)   circle (4pt)   node[anchor=south west] {$D$} ;
 \draw (a) -- (b) -- (c) --(d) -- cycle;
 \draw [name path=ac] (a) -- (c);
 \draw [name path=bd] (b) -- (d);
 \draw [name intersections={of=ac and bd, by=e},fill] (e) circle (4pt) node[anchor=north] {$E$};
 \draw[fill]  (barycentric cs:a=1,c=1) coordinate (f) circle (4pt) node[anchor=north] {$F$};;
\end{tikzpicture}
}%
\lipsum[1]
\suspend{enumerate}
\resume{enumerate}

\item   \parpic[r]{%
\begin{tikzpicture}[scale=.5,line width=0.5pt]
\draw[fill] (0,0)  coordinate (a)  circle (4pt)   node[anchor=north west] {$A$}
            (11,0) coordinate (b)  circle (4pt)   node[anchor=north west] {$B$}
            (9,3)  coordinate (c)  circle (4pt)   node[anchor=south west] {$C$} 
            (3,4) coordinate (d)   circle (4pt)   node[anchor=south west] {$D$} ;
 \draw (a) -- (b) -- (c) --(d) -- cycle;
 \draw [name path=ac] (a) -- (c);
 \draw [name path=bd] (b) -- (d);
 \draw [name intersections={of=ac and bd, by=e},fill] (e) circle (4pt) node[anchor=north] {$E$};
 \draw[fill]  (barycentric cs:a=1,c=1) coordinate (f) circle (4pt) node[anchor=north] {$F$};;
\end{tikzpicture}
}%  
\lipsum[1-1]

\end{enumerate}
\end{document}  

Se puede ver un pequeño problema cuando cambio la escala de la imagen, los círculos son más grandes y es un problema para las etiquetas. Es por eso que el código no es perfecto pero intenté obtener un código similar al código de geogebra.

ingrese la descripción de la imagen aquí

Respuesta2

ver el paquetewrapfig(documentación tambiéndisponible en linea).

información relacionada