veseba
10-06-2012, 23:09
Hallo,
ich habe ein kleines Problem, wenn ich mit LuaLaTeX ein Baumdiagramm erstelle. Ich nutze das auto-pst-pdf-Paket vom Dante e. V.: http://texnik.dante.de/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
Wenn ich den Baum mit pdfLaTeX erstelle, ergibt sich kein Problem.
\documentclass[paper=a4,fontsize=11pt,ngerman,fleqn,oneside]{scrbook}
%------------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
%------------------------------------------------------------------
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{amssymb}
%------------------------------------------------------------------
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pst-node}
\usepackage{pst-text}
\usepackage{pst-solides3d}
\usepackage[tightpage]{auto-pst-pdf}
%------------------------------------------------------------------
\usepackage[includeheadfoot,top=0cm,left=2.5cm,right=2.5cm,hea dsep=0.5cm,headheight=2cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage[autooneside,headsepline,footsepline, plainheadsepline,plainfootsepline]{scrpage2}
%------------------------------------------------------------------
\usepackage{pdflscape}
%------------------------------------------------------------------
\def\bhBox#1#2#3{\parbox[c][#1][c]{#2}{#3}}
%------------------------------------------------------------------
%------------------------------------------------------------------
\begin{document}
%------------------------------------------------------------------
\begin{landscape}
\begin{postscript}
\begin{pspicture}(-20,-20)(20,20)
\psscalebox{0.75}{
\rput[l](-13.5,0){\rnode{A}{\psscalebox{1}{\bhBox{10cm}{10cm }{\pstree[treemode=R,linewidth=0.25pt]{\TR{}}{%
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$A$}\ncput*{\rnode{O}{$P(A)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{A}(B)$}}{\TR{\rnode{C}{$ P(A)\cdot P_{A}(B)=P(A\cap B)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{A}\left(\over line{B}\right)$}}{\TR{\rnode{D}{$P(A)\cdot %
P_{A}\left(\overline{B}\right)=P\left(A\cap\overli ne{B}\right)$}}}}
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$\overline{A}$}\ncput*{\rnode{P}{$P\left (\overline{A}\right)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{\overline{A}}(B)$}}{\TR{ \rnode{E}{$P\left(\overline{A}\right)\cdot %
P_{\overline{A}}(B)=P\left(\overline{A}\cap B\right)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{\overline{A}} \left(\overline{B}\right)$}}{\TR{\rnode{F}{$P\left (\overline{A}%
\right)\cdot P_{\overline{A}}\left(\overline{B}\right)=P\left(\ overline{A}\cap\overline{B}\right)$}}}}}
\ncangle[angleA=0,angleB=0,arm=0.75cm,linearc=0.15,linewidt h=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{D}{F}\ncput*{\rotatebox{90}{\rnode{G}{$+$}}}
\ncangle[angleA=180,angleB=180,arm=0.75cm,linearc=0.15,line width=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{C}{E}\ncput*{\rotatebox{90}{\rnode{H}{$+$}}}}}}}}
\end{pspicture}
\end{postscript}
\end{landscape}
\end{document}
Erstelle ich ihn jedoch mit LuaLaTeX, ist er auseinandergepflückt. Die Additionszeichen befinden sich nicht an der richtigen Stelle und die Wahrscheinlichkeiten, die sich auf den einzelnen Pfaden des Baumes befinden, sind weit zum linken Seitenrand verschoben.
\documentclass[paper=a4,fontsize=11pt,ngerman,fleqn,oneside]{scrbook}
%------------------------------------------------------------------
\usepackage{libertineotf}
\usepackage{fontspec,xunicode}
\usepackage{unicode-math}
\setmathrm{Latin Modern Math}
\setmathfont[math-style=TeX]{Latin Modern Math}
%------------------------------------------------------------------
\usepackage[dvipsnames]{pstricks}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pst-node}
\usepackage{pst-text}
\usepackage{pst-solides3d}
\usepackage[tightpage]{auto-pst-pdf}
%------------------------------------------------------------------
\usepackage[includeheadfoot,top=0cm,left=2.5cm,right=2.5cm,hea dsep=0.5cm,headheight=2cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage[autooneside,headsepline,footsepline, plainheadsepline,plainfootsepline]{scrpage2}
%------------------------------------------------------------------
\usepackage{pdflscape}
%------------------------------------------------------------------
\def\bhBox#1#2#3{\parbox[c][#1][c]{#2}{#3}}
%------------------------------------------------------------------
%------------------------------------------------------------------
\begin{document}
%------------------------------------------------------------------
\begin{landscape}
\begin{postscript}
\begin{pspicture}(-20,-20)(20,20)
\psscalebox{0.75}{
\rput[l](-13.5,0){\rnode{A}{\psscalebox{1}{\bhBox{10cm}{10cm }{\pstree[treemode=R,linewidth=0.25pt]{\TR{}}{%
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$A$}\ncput*{\rnode{O}{$P(A)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{A}(B)$}}{\TR{\rnode{C}{$ P(A)\cdot P_{A}(B)=P(A\cap B)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{A}\left(\over line{B}\right)$}}{\TR{\rnode{D}{$P(A)\cdot %
P_{A}\left(\overline{B}\right)=P\left(A\cap\overli ne{B}\right)$}}}}
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$\overline{A}$}\ncput*{\rnode{P}{$P\left (\overline{A}\right)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{\overline{A}}(B)$}}{\TR{ \rnode{E}{$P\left(\overline{A}\right)\cdot %
P_{\overline{A}}(B)=P\left(\overline{A}\cap B\right)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{\overline{A}} \left(\overline{B}\right)$}}{\TR{\rnode{F}{$P\left (\overline{A}%
\right)\cdot P_{\overline{A}}\left(\overline{B}\right)=P\left(\ overline{A}\cap\overline{B}\right)$}}}}}
\ncangle[angleA=0,angleB=0,arm=0.75cm,linearc=0.15,linewidt h=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{D}{F}\ncput*{\rotatebox{90}{\rnode{G}{$+$}}}
\ncangle[angleA=180,angleB=180,arm=0.75cm,linearc=0.15,line width=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{C}{E}\ncput*{\rotatebox{90}{\rnode{H}{$+$}}}}}}}}
\end{pspicture}
\end{postscript}
\end{landscape}
\end{document}
Ich hoffe, ihr könnt mir helfen. Danke schon einmal im Voraus.
ich habe ein kleines Problem, wenn ich mit LuaLaTeX ein Baumdiagramm erstelle. Ich nutze das auto-pst-pdf-Paket vom Dante e. V.: http://texnik.dante.de/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
Wenn ich den Baum mit pdfLaTeX erstelle, ergibt sich kein Problem.
\documentclass[paper=a4,fontsize=11pt,ngerman,fleqn,oneside]{scrbook}
%------------------------------------------------------------------
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[utf8]{inputenc}
%------------------------------------------------------------------
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{amssymb}
%------------------------------------------------------------------
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pst-node}
\usepackage{pst-text}
\usepackage{pst-solides3d}
\usepackage[tightpage]{auto-pst-pdf}
%------------------------------------------------------------------
\usepackage[includeheadfoot,top=0cm,left=2.5cm,right=2.5cm,hea dsep=0.5cm,headheight=2cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage[autooneside,headsepline,footsepline, plainheadsepline,plainfootsepline]{scrpage2}
%------------------------------------------------------------------
\usepackage{pdflscape}
%------------------------------------------------------------------
\def\bhBox#1#2#3{\parbox[c][#1][c]{#2}{#3}}
%------------------------------------------------------------------
%------------------------------------------------------------------
\begin{document}
%------------------------------------------------------------------
\begin{landscape}
\begin{postscript}
\begin{pspicture}(-20,-20)(20,20)
\psscalebox{0.75}{
\rput[l](-13.5,0){\rnode{A}{\psscalebox{1}{\bhBox{10cm}{10cm }{\pstree[treemode=R,linewidth=0.25pt]{\TR{}}{%
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$A$}\ncput*{\rnode{O}{$P(A)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{A}(B)$}}{\TR{\rnode{C}{$ P(A)\cdot P_{A}(B)=P(A\cap B)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{A}\left(\over line{B}\right)$}}{\TR{\rnode{D}{$P(A)\cdot %
P_{A}\left(\overline{B}\right)=P\left(A\cap\overli ne{B}\right)$}}}}
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$\overline{A}$}\ncput*{\rnode{P}{$P\left (\overline{A}\right)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{\overline{A}}(B)$}}{\TR{ \rnode{E}{$P\left(\overline{A}\right)\cdot %
P_{\overline{A}}(B)=P\left(\overline{A}\cap B\right)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{\overline{A}} \left(\overline{B}\right)$}}{\TR{\rnode{F}{$P\left (\overline{A}%
\right)\cdot P_{\overline{A}}\left(\overline{B}\right)=P\left(\ overline{A}\cap\overline{B}\right)$}}}}}
\ncangle[angleA=0,angleB=0,arm=0.75cm,linearc=0.15,linewidt h=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{D}{F}\ncput*{\rotatebox{90}{\rnode{G}{$+$}}}
\ncangle[angleA=180,angleB=180,arm=0.75cm,linearc=0.15,line width=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{C}{E}\ncput*{\rotatebox{90}{\rnode{H}{$+$}}}}}}}}
\end{pspicture}
\end{postscript}
\end{landscape}
\end{document}
Erstelle ich ihn jedoch mit LuaLaTeX, ist er auseinandergepflückt. Die Additionszeichen befinden sich nicht an der richtigen Stelle und die Wahrscheinlichkeiten, die sich auf den einzelnen Pfaden des Baumes befinden, sind weit zum linken Seitenrand verschoben.
\documentclass[paper=a4,fontsize=11pt,ngerman,fleqn,oneside]{scrbook}
%------------------------------------------------------------------
\usepackage{libertineotf}
\usepackage{fontspec,xunicode}
\usepackage{unicode-math}
\setmathrm{Latin Modern Math}
\setmathfont[math-style=TeX]{Latin Modern Math}
%------------------------------------------------------------------
\usepackage[dvipsnames]{pstricks}
\usepackage{pst-plot}
\usepackage{pst-tree}
\usepackage{pst-node}
\usepackage{pst-text}
\usepackage{pst-solides3d}
\usepackage[tightpage]{auto-pst-pdf}
%------------------------------------------------------------------
\usepackage[includeheadfoot,top=0cm,left=2.5cm,right=2.5cm,hea dsep=0.5cm,headheight=2cm,bottom=2cm,footskip=1cm]{geometry}
\usepackage[autooneside,headsepline,footsepline, plainheadsepline,plainfootsepline]{scrpage2}
%------------------------------------------------------------------
\usepackage{pdflscape}
%------------------------------------------------------------------
\def\bhBox#1#2#3{\parbox[c][#1][c]{#2}{#3}}
%------------------------------------------------------------------
%------------------------------------------------------------------
\begin{document}
%------------------------------------------------------------------
\begin{landscape}
\begin{postscript}
\begin{pspicture}(-20,-20)(20,20)
\psscalebox{0.75}{
\rput[l](-13.5,0){\rnode{A}{\psscalebox{1}{\bhBox{10cm}{10cm }{\pstree[treemode=R,linewidth=0.25pt]{\TR{}}{%
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$A$}\ncput*{\rnode{O}{$P(A)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{A}(B)$}}{\TR{\rnode{C}{$ P(A)\cdot P_{A}(B)=P(A\cap B)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{A}\left(\over line{B}\right)$}}{\TR{\rnode{D}{$P(A)\cdot %
P_{A}\left(\overline{B}\right)=P\left(A\cap\overli ne{B}\right)$}}}}
\pstree[linewidth=0.25pt,levelsep=4cm]{\Tcircle{$\overline{A}$}\ncput*{\rnode{P}{$P\left (\overline{A}\right)$}}}{%
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$B$}\ncput*{$P_{\overline{A}}(B)$}}{\TR{ \rnode{E}{$P\left(\overline{A}\right)\cdot %
P_{\overline{A}}(B)=P\left(\overline{A}\cap B\right)$}}}
\pstree[linestyle=none,levelsep=5cm,thistreenodesize=1cm]{\Tcircle{$\overline{B}$}\ncput*{$P_{\overline{A}} \left(\overline{B}\right)$}}{\TR{\rnode{F}{$P\left (\overline{A}%
\right)\cdot P_{\overline{A}}\left(\overline{B}\right)=P\left(\ overline{A}\cap\overline{B}\right)$}}}}}
\ncangle[angleA=0,angleB=0,arm=0.75cm,linearc=0.15,linewidt h=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{D}{F}\ncput*{\rotatebox{90}{\rnode{G}{$+$}}}
\ncangle[angleA=180,angleB=180,arm=0.75cm,linearc=0.15,line width=0.25pt,nodesepA=2.5pt,nodesepB=2.5pt,arrows=<->,arrowsize=5pt]{C}{E}\ncput*{\rotatebox{90}{\rnode{H}{$+$}}}}}}}}
\end{pspicture}
\end{postscript}
\end{landscape}
\end{document}
Ich hoffe, ihr könnt mir helfen. Danke schon einmal im Voraus.