| 1 |
\documentclass{article} |
| 2 |
\AtBeginDvi{\special{papersize=\the\paperwidth,\the\paperheight}} |
| 3 |
|
| 4 |
\makeatletter |
| 5 |
\let\stript=\strip@pt |
| 6 |
\makeatother |
| 7 |
|
| 8 |
\input{../fonts} |
| 9 |
\usepackage[dvipdfm,a4paper]{geometry} |
| 10 |
\usepackage{familytree} |
| 11 |
|
| 12 |
\newcommand{\nee}[1]{% |
| 13 |
\\{\relsize{-1}(n\'{e}e #1)}% |
| 14 |
} |
| 15 |
|
| 16 |
\newcommand{\cname}[2][0]{% |
| 17 |
\ifnum#1=1\let\mybox=\fbox\else\let\mybox=\mbox\fi% |
| 18 |
\mybox{% |
| 19 |
\begin{minipage}[b]{5em}% |
| 20 |
\baselineskip=\dimexpr\baselineskip*10/15\relax% |
| 21 |
\centering{#2}% |
| 22 |
\end{minipage}% |
| 23 |
}% |
| 24 |
} |
| 25 |
|
| 26 |
\NewDocumentCommand{\idef}{O{\ftbiological}mO{0}moO{0pt}}{% |
| 27 |
% [cmark] id [fbox] name [opt] [xlen] |
| 28 |
\indvdldef[#1]{#2}{\cname[#3]{#4}}[#5][#6]% |
| 29 |
} |
| 30 |
|
| 31 |
\begin{document} |
| 32 |
%\pagestyle{empty} |
| 33 |
|
| 34 |
familytree pkg sample |
| 35 |
|
| 36 |
\section*{\textsl{Inheritance Diagram}} |
| 37 |
|
| 38 |
Here, the Crawley family and their stories are borrowed from the |
| 39 |
famous British TV series \textsl{Downton Abbey\,.} |
| 40 |
I've borrowed it just to show how to use this familytree package. |
| 41 |
|
| 42 |
|
| 43 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 44 |
\section*{Crawley sisters} |
| 45 |
|
| 46 |
\idef{youngSybil}{Lady Sybil} |
| 47 |
\idef{youngEdith}{Lady Edith} |
| 48 |
\idef{youngMary}{Lady Mary} |
| 49 |
\sblngdef{youngSis}{youngMary,ivali,youngEdith,ivali,youngSybil} |
| 50 |
|
| 51 |
\idef{Robert}[1]{Robert Crawley}[7th Earl of Grantham] |
| 52 |
\idef[\ftblank]{Cora}{Cora Crawley \nee{Levinson}}[Countess of |
| 53 |
Grantham,\haschild] |
| 54 |
\mrrgdef{seven}{}{Robert}{Cora} |
| 55 |
|
| 56 |
\gensdef{RobertyoungSis}{seven}{% |
| 57 |
{Cora}{youngSis}% |
| 58 |
} |
| 59 |
\fbox{\usebox{\RobertyoungSis}} |
| 60 |
\bigskip |
| 61 |
|
| 62 |
Under the fee tail or ``entail'', three daughters |
| 63 |
cannot inherit the title and the estate of Lord Grantham's, |
| 64 |
including the big amount of fortune (dowry) Cora had brought. |
| 65 |
The law requires a male heir. |
| 66 |
|
| 67 |
Fortunately Robert has a cousin James Crawley, and his son Patrick. |
| 68 |
They are good heir presumptive to the earldom. |
| 69 |
Actually, but not officially, the eldest daughter Lady Mary is engaged |
| 70 |
to Patrick so that the family will keep their assets. |
| 71 |
|
| 72 |
|
| 73 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 74 |
\section*{Relationship between Robert, Matthew and cousin Patrick} |
| 75 |
\small |
| 76 |
|
| 77 |
\idef{youngMatthew}[1]{Matthew Crawley} |
| 78 |
\idef{Patrick}[1]{Patrick Crawley}[deceased\,?] |
| 79 |
|
| 80 |
\idef{Reginald}{Dr. Reginald Crawley}[(deceased)] |
| 81 |
\idef[\ftblank]{Isobel}{Isobel Crawley \nee{Turnbull}}[\haschild] |
| 82 |
\mrrgdef{ReginaldIsobel}{}{Reginald}{Isobel}[3em] |
| 83 |
\gensdef{IsobelMatthew}{ReginaldIsobel}{% |
| 84 |
{Isobel}{youngMatthew}% |
| 85 |
} |
| 86 |
|
| 87 |
\ftundef{Robert} |
| 88 |
\idef{Robert}[1]{Robert Crawley}[7th Earl of Grantham,\maleline][2em] |
| 89 |
\pcdef{RobertMary}{Robert}{youngMary} |
| 90 |
|
| 91 |
\idef{James}[1]{James Crawley}[(deceased),\maleline][2em] |
| 92 |
\pcdef{JamesPatrick}{James}{Patrick} |
| 93 |
|
| 94 |
% \fbox{\vbox{% |
| 95 |
% \hbox{\usebox{\IsobelMatthew}}% |
| 96 |
% \vskip\baselineskip% |
| 97 |
% \hbox{\usebox{\RobertMary}}% |
| 98 |
% \vskip\baselineskip% |
| 99 |
% \hbox{\usebox{\JamesPatrick}}% |
| 100 |
% }} |
| 101 |
|
| 102 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 103 |
|
| 104 |
\idef{sixMat}{{\relsize{-1} Mr. Crawley}} |
| 105 |
[6th gen.,(deceased),\maleline][3em] |
| 106 |
\pcdef{sixMatpc}{sixMat}{IsobelMatthew} |
| 107 |
|
| 108 |
\idef{PatrickSix}{Patrick Crawley} |
| 109 |
[6th Earl of Grantham,(deceased),\maleline][3em] |
| 110 |
\pcdef{sixRobpc}{PatrickSix}{RobertMary} |
| 111 |
|
| 112 |
\pcdef{sixPatpc}{sixMat}{JamesPatrick} |
| 113 |
|
| 114 |
\sblngdef{sixes}{sixRobpc,ival,sixPatpc} |
| 115 |
|
| 116 |
% \fbox{\vbox{ |
| 117 |
% \hbox{\usebox{\sixMatpc}} |
| 118 |
% \vskip\baselineskip |
| 119 |
% \hbox{\usebox{\sixes}} |
| 120 |
% }} |
| 121 |
|
| 122 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 123 |
|
| 124 |
\idef{fiveMat}{{\relsize{-1} Mr. Crawley}}[5th gen.,(deceased),\maleline] |
| 125 |
\pcdef{fiveMatpc}{fiveMat}{sixMatpc} |
| 126 |
|
| 127 |
\idef{fiveRob}{{\relsize{-1} 5th Earl of Grantham}}[(deceased),\maleline] |
| 128 |
\pcdef{fiveRobpc}{fiveRob}{sixes} |
| 129 |
|
| 130 |
% \fbox{\vbox{% |
| 131 |
% \hbox{\usebox{\fiveMatpc}}% |
| 132 |
% \vskip\baselineskip% |
| 133 |
% \hbox{\usebox{\fiveRobpc}}% |
| 134 |
% }} |
| 135 |
|
| 136 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 137 |
|
| 138 |
\idef{fourMat}{{\relsize{-1} Mr. Crawley}}[4th gen.,(deceased),\maleline] |
| 139 |
\pcdef{fourMatpc}{fourMat}{fiveMatpc} |
| 140 |
\idef{fourRob}{{\relsize{-1} 4th Earl of Grantham}}[(deceased),\maleline] |
| 141 |
\pcdef{fourRobpc}{fourRob}{fiveRobpc} |
| 142 |
|
| 143 |
\sblngdef{fours}{fourRobpc,ival,fourMatpc} |
| 144 |
|
| 145 |
% \fbox{\usebox{\fours}} |
| 146 |
|
| 147 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 148 |
|
| 149 |
\idef[\fttop]{three}{{\relsize{-1} 3rd Earl of Grantham}}[(deceased),\maleline] |
| 150 |
\pcdef{threepc}{three}{fours} |
| 151 |
|
| 152 |
\fbox{\usebox{\threepc}} |
| 153 |
\bigskip |
| 154 |
|
| 155 |
\normalsize |
| 156 |
In 1912, James and Patrick have perished in the sinking of Titanic, |
| 157 |
and their body were not found. Not only Lady Mary lost her unofficial |
| 158 |
fianc\'{e}, but also the family lost the male heir. |
| 159 |
|
| 160 |
But Murray, Lord Grantham's business partner also a lawyer, discovered |
| 161 |
Robert's third cousin once removed, Matthew Crawley who is a son of an |
| 162 |
upper-middle-class doctor. |
| 163 |
Now Matthew has become the next heir presumptive out of the blue. |
| 164 |
|
| 165 |
|
| 166 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 167 |
\section*{Family member of Robert Crawley} |
| 168 |
|
| 169 |
\idef{Sybbie}{Sybil ``Sybbie'' Branson} |
| 170 |
\idef[\ftblank]{Tom}{Tom Branson}[\haschild] |
| 171 |
\idef{Sybil}{Sybil Cora Branson \nee{Crawley}}[(deceased)] |
| 172 |
|
| 173 |
\idef{Marigold}{Marigold Crawley} |
| 174 |
\idef{Edith}{Edith Pelham \nee{Crawley}}[Marchioness of Hexham] |
| 175 |
\idef[\ftblank]{Bertie}{Herbert ``Bertie'' Pelham}[7th Marquess of Hexham] |
| 176 |
\idef[\ftblank]{Gregson}{Michael Gregson}[(deceased),\private,\haschild] |
| 177 |
|
| 178 |
\idef{George}[1]{George Crawley}[Heir presumptive of,Robert Crawley] |
| 179 |
\idef[\ftblank]{Matthew}{Matthew Crawley}[(deceased),\haschild] |
| 180 |
\idef{Mary}{Mary Josephine Crawley}%[ ] |
| 181 |
|
| 182 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 183 |
|
| 184 |
\mrrgdef{Bransons}{Tom}{Sybil}{}[\dimexpr\wd\Bertie-\wd\Sybil-2em\relax] |
| 185 |
\gensdef{TomSybbie}{Bransons}{% |
| 186 |
{Tom}{Sybbie}% |
| 187 |
} |
| 188 |
% \fbox{\usebox{\TomSybbie}} |
| 189 |
|
| 190 |
\mrrgdef{EdithHus}{Gregson}{Edith}{Bertie}[-2em] |
| 191 |
\gensdef{EdithMarigold}{EdithHus}{% |
| 192 |
{Gregson}{Marigold}% |
| 193 |
} |
| 194 |
% \fbox{\usebox{\EdithMarigold}} |
| 195 |
|
| 196 |
\mrrgdef{MatthewMary}{Matthew}{Mary}{} |
| 197 |
[\dimexpr\wd\Bertie-\wd\Matthew-2em\relax] |
| 198 |
\gensdef{MaryGeorge}{MatthewMary}{% |
| 199 |
{Matthew}{George}% |
| 200 |
} |
| 201 |
% \fbox{\usebox{\MaryGeorge}} |
| 202 |
|
| 203 |
\sblngdef{sis}{MaryGeorge,ivalii,EdithMarigold,ivalii,TomSybbie} |
| 204 |
% \fbox{\usebox{\sis}} |
| 205 |
|
| 206 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 207 |
|
| 208 |
\idef{Rosamund}{Rosamund Painswick \nee{Crawley}} |
| 209 |
\hyphenation{Marmaduke} |
| 210 |
\idef[\ftblank]{Marmaduke}{Sir Marmaduke Painswick}[(deceased)] |
| 211 |
|
| 212 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 213 |
|
| 214 |
\mrrgdef{Painswicks}{}{Rosamund}{Marmaduke} |
| 215 |
\sblngdef{RobertRosamund}{seven,ivalii,Painswicks} |
| 216 |
% \fbox{\usebox{\RobertRosamund}} |
| 217 |
|
| 218 |
\edef\RobertRosamundsevennameCY{% |
| 219 |
\stript\dimexpr\sevenCoramrrgCY pt + \RobertRosamundsevennameCY pt% |
| 220 |
- \sevennameCY pt% |
| 221 |
} |
| 222 |
\gensdef{Robertandsis}{RobertRosamund}{% |
| 223 |
{seven}{sis}% |
| 224 |
} |
| 225 |
% \fbox{\usebox{\Robertandsis}} |
| 226 |
|
| 227 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 228 |
|
| 229 |
\ftundef{PatrickSix} |
| 230 |
\idef{PatrickSix}{Patrick Crawley}[6th Earl of Grantham (deceased)] |
| 231 |
\idef[\ftblank]{Violet}{Violet Crawley} |
| 232 |
[Dowager Countess of Grantham,\haschild] |
| 233 |
|
| 234 |
\mrrgdef{six}{}{PatrickSix}{Violet} |
| 235 |
\gensdef{Crawleys}{six}{% |
| 236 |
{Violet}{Robertandsis}% |
| 237 |
} |
| 238 |
|
| 239 |
\fbox{\usebox{\Crawleys}} |
| 240 |
|
| 241 |
\hfill (at the end of Season 7) |
| 242 |
|
| 243 |
\end{document} |
| 244 |
|
| 245 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 246 |
|
| 247 |
\idef[\ftblank]{}{Isidore Levinson}[(deceased)] |
| 248 |
\idef{}{Martha Levinson} |
| 249 |
\mrrgdef{Levinsons}{}{Isidore}{Martha} |
| 250 |
\idef{}{Harold Levinson} |
| 251 |
|
| 252 |
\idef{}{Roberta} |
| 253 |
\idef[\ftblank]{}{husband} |
| 254 |
|
| 255 |
\idef{}{Susan MacClare}[Marchioness of Flintshire] |
| 256 |
\idef[\ftblank]{}{Hugh ``Shrimpie'' MacClare}[Marquess of Flintshire] |
| 257 |
\mrrgdef{MacClares}{}{Shrimpie}{Susan} |
| 258 |
\idef{}{Lady Rose MacClare} |