LaTeX forum ⇒ Graphics, Figures & Tables\parpic tikzpicture align in enumerated item

Information and discussion about graphics, figures & tables in LaTeX documents.
bvj
Posts: 1
Joined: Thu Jul 11, 2019 8:53 pm

\parpic tikzpicture align in enumerated item

Postby bvj » Thu Jul 11, 2019 10:03 pm


If i use this code to create the PDF the drawing (tikzpic) appears in the right corner and the drawing is aligned to the first row of the linked item. how can i align the drawing to other rows, for example to the second or the third one?
Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass{article}
  2. \usepackage{tikz}
  3. \usetikzlibrary{calc,patterns,decorations.pathmorphing,decorations.markings,positioning,arrows}
  4. \usepackage{picins}
  5. \usepackage{mdwlist}
  6. \usepackage{lipsum}
  7.  
  8. \textwidth=6.5in
  9. \textheight=9.5in
  10. \voffset=-1in
  11. \hoffset=-1in
  12.  
  13. \begin{document}
  14.  
  15. \begin{enumerate}
  16. \item Neki tekst da se vidi kako se prelama sledec1a stavka. Dolazi zatim slika i treba da bude vishe redova
  17.  
  18. \item \parpic[r]{%
  19. \begin{tikzpicture}[every node/.style={draw,outer sep=0pt,thick}]
  20. % \draw [line width=0.8pt,domain=1.0:8.065193283210691] plot(\x,{(--8.-0.*\x)/4.});
  21. %\draw [line width=0.8pt,domain=1.0:8.065193283210691] plot(\x,{(-0.--4.*\x)/2.});
  22. \ \tikzstyle{spring}=[thick,decorate,decoration={zigzag,pre length=0.3cm,post length=0.3cm,segment length=12}]
  23. \tikzstyle{dampener}=[thick,decoration={markings,
  24. mark connection node=dmp,
  25. mark=at position 0.5 with
  26. {
  27. \node (dmp) [thick,inner sep=0pt,transform shape,rotate=-90,minimum width=15pt,minimum height=3pt,draw=none] {};
  28. \draw [thick] ($(dmp.north east)+(2pt,0)$) -- (dmp.south east) -- (dmp.south west) -- ($(dmp.north west)+(2pt,0)$);
  29. \draw [thick] ($(dmp.north)+(0,-5pt)$) -- ($(dmp.north)+(0,5pt)$);
  30. }
  31. }, decorate]
  32. \tikzstyle{ground}=[fill,pattern=north east lines,draw=none,minimum width=2cm,minimum height=0.3cm]
  33. \node (M) [ground,anchor=north] {};
  34. \node[draw=none,below=1.5cm of M,inner sep=-2,minimum size=0mm] (pt1){};
  35. \node[circle,below=1.5cm of pt1] (pt2){$m$};
  36. \draw [dampener] (pt1.north) -- ($(M.south)$) node[draw=none,pos=.52,right=.4cm] {$b$};
  37. \draw [spring] (pt1.south) -- ($(pt2.north)$) node[draw=none,pos=.5,right=.25cm] {$k$};
  38. \node[draw=none,left=1.25cm of pt2,minimum size=0mm] (pt3){};
  39. \node[draw=none,right=1.25cm of pt2,minimum size=0mm] (pt4){};
  40. \node[draw=none,right=.25cm of pt2,minimum size=0mm] (pt5){};
  41. \node[draw=none,below=.75cm of pt5,minimum size=0mm] (pt6){};
  42. \draw[dashed] (pt3) -- (pt2.west);
  43. \draw[dashed] (pt4) -- (pt2.east);
  44. \begin{scope}[>=latex]
  45. \draw[->,thick,xshift=.25cm] (pt5) -- (pt6) node[draw=none,pos=.5,right=.15cm] {$y(t)>0$};
  46. \end{scope}
  47. \end{tikzpicture}
  48. }%
  49.  
  50. %\lipsum[66]
  51. % \begin{enumerate}
  52. % \item
  53. % \lipsum
  54. Neka je $ABC$ pravougli trougao sa pravim uglom kod teman $C$. Neka je $D$ podnozhje visine iz temena $C$. Ugao kod temena $A$ trougla $ACD$ je ujedno i ugao kod temena $A$ trougla $ABC$. Ugao kod temena $D$ trougla $ACD$ je prav ugao, pa je jednak uglu kod temena $C$ trougla $ABC$. S obzirom da je zbir uglova trougla $180^{\circ}$ i trougao $ACD$ i $ABC$ imaju po dva jednaka ugla, to i trec1i uglovi ´ce biti jednaki.
  55. Slichno se dokazuje jednakost uglova trougla $BCD$ i $ABC$.
  56. % \item
  57. Neka je $O$ centar kruzhnice. kod temena $C$ trougla $ABC$. S obzirom da je zbir uglova trougla $180^{\circ}$ i trougao $ACD$ i $ABC$ imaju po dva jednaka ugla, to i trec1i uglovi c1e biti jednaki\\
  58. $OB = OB$ (poluprechnici kruzhnice)\\
  59. $AO = AO > OB$ (sve je jednako sa samim sobom) kod temena $C$ trougla $ABC$. S obzirom da je zbir uglova trougla $180^{\circ}$ i trougao $ACD$ i $ABC$ imaju po dva jednaka ugla, to i trec1i uglovi c1e biti jednaki\\
  60. $\measuredangle ABO = \measuredangle ACO$ (tangenta je normalna na poluprechnik)\\
  61. $\triangle ABO \cong \triangle ACO$ (po SSU)\\
  62. $AB = AC$ (iz prethodnog)
  63. \item josh jednom da vidim neshto.
  64. Neka je $O$ centar kruzhnice. kod temena $C$ trougla $ABC$. S obzirom da je zbir uglova trougla $180^{\circ}$ i trougao $ACD$ i $ABC$ imaju po dva jednaka ugla, to i trec1i uglovi c1e biti jednaki\\
  65. $OB = OB$ (poluprechnici kruzhnice)\\
  66. $AO = AO > OB$ (sve je jednako sa samim sobom) kod temena $C$ trougla $ABC$. S obzirom da je zbir uglova trougla $180^{\circ}$ i trougao $ACD$ i $ABC$ imaju po dva jednaka ugla, to i trec1i uglovi c1e biti jednaki\\
  67. $\measuredangle ABO = \measuredangle ACO$ (tangenta je normalna na poluprechnik)\\
  68. $\triangle ABO \cong \triangle ACO$ (po SSU)\\
  69. $AB = AC$ (iz prethodnog) \end{enumerate}
  70. \end{enumerate}
  71. \end{document}
Attachments
wrap2.pdf
(44.88 KiB) Downloaded 21 times

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 10 guests