Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.
\documentclass[preview,border=12pt]{standalone}
\usepackage{pst-tree}
\psset{treemode=R,edge=\ncline}

\def\ABCD{%
    \psTree{\Tcircle{A}} 
        \psTree{\Tcircle{B}} 
            \pstree{\Tcircle{C}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{C}}
        \endpsTree
        \psTree{\Tcircle{C}} 
            \pstree{\Tcircle{B}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{B}}
        \endpsTree
        \psTree{\Tcircle{D}} 
            \pstree{\Tcircle{B}}{\Tcircle{C}}
            \pstree{\Tcircle{C}}{\Tcircle{B}}
        \endpsTree
    \endpsTree
}

\def\BACD{%
    \psTree{\Tcircle{B}} 
        \psTree{\Tcircle{A}} 
            \pstree{\Tcircle{C}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{C}}
        \endpsTree
        \psTree{\Tcircle{C}} 
            \pstree{\Tcircle{A}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{A}}
        \endpsTree
        \psTree{\Tcircle{D}} 
            \pstree{\Tcircle{A}}{\Tcircle{C}}
            \pstree{\Tcircle{C}}{\Tcircle{A}}
        \endpsTree
    \endpsTree
}

\def\CABD{%
    \psTree{\Tcircle{C}} 
        \psTree{\Tcircle{A}} 
            \pstree{\Tcircle{B}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{B}}
        \endpsTree
        \psTree{\Tcircle{B}} 
            \pstree{\Tcircle{A}}{\Tcircle{D}}
            \pstree{\Tcircle{D}}{\Tcircle{A}}
        \endpsTree
        \psTree{\Tcircle{D}} 
            \pstree{\Tcircle{A}}{\Tcircle{B}}
            \pstree{\Tcircle{B}}{\Tcircle{A}}
        \endpsTree
    \endpsTree
}

\def\DABC{%
    \psTree{\Tcircle{D}} 
        \psTree{\Tcircle{A}} 
            \pstree{\Tcircle{B}}{\Tcircle{C}}
            \pstree{\Tcircle{C}}{\Tcircle{B}}
        \endpsTree
        \psTree{\Tcircle{B}} 
            \pstree{\Tcircle{A}}{\Tcircle{C}}
            \pstree{\Tcircle{C}}{\Tcircle{A}}
        \endpsTree
        \psTree{\Tcircle{C}} 
            \pstree{\Tcircle{A}}{\Tcircle{B}}
            \pstree{\Tcircle{B}}{\Tcircle{A}}
        \endpsTree
    \endpsTree
}

\begin{document}
\psTree[thislevelsep=0]{\Tn}
    % commenting one of the following will fix the problem, but why?
    \ABCD
    \BACD
    \CABD
    \DABC
\endpsTree
\end{document}

enter image description here

Why does adding one more subtree make a cropped output?

My batch file

rem LatexDviPsPdf.bat

echo off

rem %1 TeX input filename without extension

if exist "%~1.pdf" del "%~1.pdf"

if exist "%~1.tex" latex -shell-escape "%~1.tex"

if exist "%~1.dvi" dvips -t unknown "%~1.dvi"

if exist "%~1.ps" gswin64c -r10000 -dCompatibilityLevel=1.5 -dAutoRotatePages=/None -sDEVICE=pdfwrite -o "%~1.pdf" "%~1.ps"

for %%x in (aux dvi log out ps toc nav snm) do (if exist "%~1.%%x" del "%~1.%%x")
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted
+500

do not use the -r10000 option. I can reproduce the problem when using your gs call.

share|improve this answer
    
It must be documented in PSTricks manual. :-) It is really confusing to debug. –  Fifa Earth Cup 2014 Oct 3 '13 at 12:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.