Fite
20-08-2013, 20:16
Hallo Leute,
für folgendes Minimalbeispiel möchte ich, dass die A-Pfeile im linken und rechten Schaubild genau auf einer Linie sind. Wie bekomme ich das hin, probiere schon ewig herum. VG, Fite
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tikzpicture}
%Farben
\definecolor{hellgrau}{HTML}{E6E6E6}
\definecolor{mittelgrau}{HTML}{A4A4A4}
\definecolor{dunkelgrau}{HTML}{848484}
% Spannungspfeile
\draw [->,>=latex, very thick] (0.5,0)--(0,0) node[left] {A};
\draw [->,>=latex, very thick] (5.5,0)--(6,0) node[right] {A};
% Koerper
\draw [very thick, fill=hellgrau] (0.7,0)--(1.3,1.5)--(3,0.7)--(3,-0.7)--(1.7,-1.5)--(0.7,0);
\draw [very thick, fill=dunkelgrau] (3.1,-0.7)--(3.1,0.7)--(4,1.5)--(5.3,0)--(4.8,-1)--(3.5,-1.3)--(3.1,-0.7);
\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tikzpicture}
%Farben
\definecolor{hellgrau}{HTML}{E6E6E6}
\definecolor{mittelgrau}{HTML}{A4A4A4}
\definecolor{dunkelgrau}{HTML}{848484}
% Spannungspfeile
\draw[->,>=latex, very thick] (0.5,0)--(0,0) node[left] {A};
\draw[->,>=latex, very thick] (5.5,0)--(6,0) node[right] {A};
% Koerper
\draw [very thick, fill=hellgrau] (0.7,0)--(1.3,1.5)--(3,0.7)--(3,-0.7)--(1.7,-1.5)--(0.7,0);
\draw [very thick, fill=dunkelgrau] (3.1,-0.7)--(3.1,0.7)--(4,1.5)--(5.3,0)--(4.8,-1)--(3.5,-1.3)--(3.1,-0.7);
\draw [very thick, fill=dunkelgrau] (0.617,-0.055)--(1.667,-1.605)--(1.667,-2)--(1.5,-2.4)--(0.7,-2.1)--(0.5,-0.8)--(0.617,-0.055);
\end{tikzpicture}
\end{minipage}
\end{document}
für folgendes Minimalbeispiel möchte ich, dass die A-Pfeile im linken und rechten Schaubild genau auf einer Linie sind. Wie bekomme ich das hin, probiere schon ewig herum. VG, Fite
\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tikzpicture}
%Farben
\definecolor{hellgrau}{HTML}{E6E6E6}
\definecolor{mittelgrau}{HTML}{A4A4A4}
\definecolor{dunkelgrau}{HTML}{848484}
% Spannungspfeile
\draw [->,>=latex, very thick] (0.5,0)--(0,0) node[left] {A};
\draw [->,>=latex, very thick] (5.5,0)--(6,0) node[right] {A};
% Koerper
\draw [very thick, fill=hellgrau] (0.7,0)--(1.3,1.5)--(3,0.7)--(3,-0.7)--(1.7,-1.5)--(0.7,0);
\draw [very thick, fill=dunkelgrau] (3.1,-0.7)--(3.1,0.7)--(4,1.5)--(5.3,0)--(4.8,-1)--(3.5,-1.3)--(3.1,-0.7);
\end{tikzpicture}
\end{minipage}
\hfill
\begin{minipage}[t]{0.45\textwidth}
\centering
\begin{tikzpicture}
%Farben
\definecolor{hellgrau}{HTML}{E6E6E6}
\definecolor{mittelgrau}{HTML}{A4A4A4}
\definecolor{dunkelgrau}{HTML}{848484}
% Spannungspfeile
\draw[->,>=latex, very thick] (0.5,0)--(0,0) node[left] {A};
\draw[->,>=latex, very thick] (5.5,0)--(6,0) node[right] {A};
% Koerper
\draw [very thick, fill=hellgrau] (0.7,0)--(1.3,1.5)--(3,0.7)--(3,-0.7)--(1.7,-1.5)--(0.7,0);
\draw [very thick, fill=dunkelgrau] (3.1,-0.7)--(3.1,0.7)--(4,1.5)--(5.3,0)--(4.8,-1)--(3.5,-1.3)--(3.1,-0.7);
\draw [very thick, fill=dunkelgrau] (0.617,-0.055)--(1.667,-1.605)--(1.667,-2)--(1.5,-2.4)--(0.7,-2.1)--(0.5,-0.8)--(0.617,-0.055);
\end{tikzpicture}
\end{minipage}
\end{document}