Quantcast
Channel: Are there examples written in PSTricks and they cannot be done using TikZ? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 7

Answer by Alain Matthes for Are there examples written in PSTricks and they cannot be done using TikZ?

$
0
0

1) nodesep with pstricks and pst-tree has no equivalent with tikz.This is a problem with Tikz you need to give the sibling distance by hand and not the distance between two nodes. It's possible to create the tree with TikZ with the result of pstricks but it's not easy.

With Pstricks:

http://pascal.parois.net/public/test2.tex

http://pascal.parois.net/public/test2.pdf

With TikZ

\documentclass[10pt]{article}\usepackage[utf8]{inputenc}\usepackage{fourier}\usepackage{tikz}\usepackage[a1paper,landscape]{geometry}\usetikzlibrary{trees,arrows}\pagestyle{empty}\usetikzlibrary{shapes.multipart}\usepackage[active,pdftex,tightpage]{preview}\PreviewEnvironment[]{tikzpicture}\begin{document}\newcommand{\spnode}[3]{%node[rectangle split,rectangle split parts=3]%,rectangle split draw splits=false{\textbf{#1} \nodepart{second}  #2  \nodepart{third}  \emph{#3}}} \begin{center}    \begin{tikzpicture}[%       text width        = 8em,       text centered,       level distance    = 9em,       every node/.style = {rectangle,                            rounded corners,                            shade,                            top color=white,                            bottom color=blue!50!black!20,                            draw=blue!40!black!60,                            very thick,                            outer sep =2pt,                           every third node part/.style={font=\footnotesize}}]\tikzset{upstyle/.style={%  grow=up,<-,,>=open triangle 60,  level 1/.style={sibling distance=60em},  level 2/.style={sibling distance=11em}}}\tikzset{upstyleleft/.style={%  level 2/.style={sibling distance=65em},  level 3/.style={sibling distance=60em},  level 4/.style={sibling distance=30em},  level 5/.style={sibling distance=20em},  level 6/.style={sibling distance=10em}}}\tikzset{upstyleleftright/.style={%  level 3/.style={sibling distance=10em},  level 4/.style={sibling distance=10em}}}\path \spnode { PAROIS}{Pascal}{date}[upstyle]    child {\spnode {HAMEL}{Brigitte}{date}      child {\spnode {GUIGARD}{Odette}{date}}      child {\spnode { HAMEL}{Jean}{date}        child {\spnode { TORQUEO}{Reine}{date}}        child {\spnode { HAMEL}{Henri}{date}              child {\spnode { THOMAS}{Marie}{date}}              child {\spnode { HAMEL}{Paul}{date}                child {\spnode { CHANTEUR}{Marie}{date}}                child {\spnode { HAMEL}{Emile}{date}                  child {\spnode { HAUVILLE}{Marie}{date}}                  child {\spnode { HAMEL}{Ulysse}{date}}}}              }           }    }    child[upstyleleft] { \spnode{ PAROIS}{Guy}{date}    child[upstyleleftright] {\spnode { COLLANGE}{Odette}{date}       child {\spnode {OLLIER}{Marie }{date}}       child {\spnode { COLLANGE}{Claudius}{date}            child {\spnode { GIMBERT}{Philomène}{date}}            child {\spnode { COLLANGE}{Jean}{date}}             }     }     child[upstyleleft] {\spnode { PAROIS}{Alexandre}{date}     child {\spnode { BEZIEAU}{Marie}{date}          child {\spnode { LEAUTE}{Marie}{date}               child {\spnode { CHEVALIER}{Rosalie}{date}}               child {\spnode { LEAUTE}{Pierre}{date}}                }          child {\spnode { BEZIEAU}{Jean}{date}               child {\spnode { GENDRON}{Marie}{date}}               child {\spnode { BEZIEAU}{Jean}{date}}                }           }     child {\spnode { PAROIS}{Alphonse}{date}          child {\spnode { LEBRETON}{Marie}{date}               child[sibling distance=10em] {\spnode { RENAUD}{Marie}{date}                    child {\spnode { EGRON}{Angélique}{date}}                    child {\spnode { RENAUD}{Pierre}{date}}               }               child {\spnode { LEBRETON}{Jean}{date}}           }          child {\spnode { PAROIS}{Auguste}{date}               child {\spnode { DOUILLARD}{Adèle}{date}                    child {\spnode { BONNET}{Marianne}{date}}                    child {\spnode { DOUILLARD}{Louis}{date}}}               child {\spnode { PAROIS}{Jean}{date}                    child {\spnode{ DUGUY }{Marie}{date}}                    child {\spnode{ PAROIS}{Pierre}{date}}                   }                }           }      }};    \end{tikzpicture}\end{center}\end{document}

enter image description here

2) Another thing is about Bezier's curves and the control points, there is nothing automatic with Tikz


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>