summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/familytree/doc-ja/familytree-ja.tex
blob: 12c31edc335013dbe4caa624cfee938677cdcfec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
\iffalse
Copyright 2022 Jiro Senju

This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
any later version.

This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this package.  If not, see <http://www.gnu.org/licenses/>.
\fi

%\RequirePackage{plautopatch}
% \documentclass[
%   draft,
%   jlreq_notes,open_bracket_pos=nibu_tentsuki
% ]{jlreq}
% jlreq and nameref don't co-work
% \makeatletter
% \show\section
% \show\jlreq@headingcs@section
% \patchcmd{\section}
%          {\@afterindenttrue}{\@afterindenttrue\def\@currentlabelname{#1}}
%          {}{\errmessage{patching section}}
% \makeatother
\documentclass[
  draft
]{jsarticle}
\advance\evensidemargin 2zw
\advance\oddsidemargin 2zw
\advance\textwidth -2zw

\usepackage{doc}
\makeatletter
% borrowd from ltxdoc.
\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}}
\def\cmd@to@cs#1#2{\char\number`#2\relax}
\makeatother
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
\providecommand\marg[1]{%
  {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}}
\providecommand\oarg[1]{%
  {\ttfamily[}\meta{#1}{\ttfamily]}}

\input{../fonts}

\usepackage[dvipdfmx,final]{graphicx}
\usepackage[final]{listings}
\usepackage{jlisting}
\lstset{basicstyle=\small\ttfamily\mcfamily,
  language=TeX,
  columns=[c]flexible,
  tabsize=4,
  %frame=tb,
  keepspaces=true,
  lineskip=-.1em,
  belowskip=\smallskipamount}
\usepackage{multicol}
\usepackage{needspace}
%
% hyperref should come last
\usepackage[dvipdfmx,final,pdfusetitle]{hyperref}
\usepackage{pxjahyper}
% CJKbookmarks=true
% bookmarksdepth=section
% pdffitwindow=true
% pdfpagetransition=Dissolve
% pdfstartview=FitB
\hypersetup{
  hyperfootnotes=false,
  colorlinks=true,
  linkcolor=blue,
  % anchorcolor=black,
  % citecolor=black,
  % urlcolor=black,
  bookmarks=true,
  bookmarksnumbered=true,
  setpagesize=false,
  %pdftitle={},
  %pdfauthor={},
  pdfpagelayout=SinglePage,
  pdfpagemode=UseOutlines,
  pdfstartview=FitH
}

\usepackage{familytree}

\makeatletter
\def\meta@font@select{\slshape}
\def\fps@table{htbp}
\makeatother

%\xspcode`\\=3% it doesn't help

\renewcommand{\contentsname}{Ìܼ¡}
\renewcommand{\tablename}{ɽ}
\newcommand{\parag}[1]{%
  \allowbreak%
  \paragraph{#1}\nopagebreak\hskip0pt\nopagebreak%
  \medskip%
}
\newcounter{CS}[section]
\newcommand{\CS}{%
  \ifnum\theCS=0%
    control sequence%
    \stepcounter{CS}%
  \else%
    CS%
  \fi%
}
\newcommand{\srcfig}[2][]{%
  {%
    \noautoxspacing%
    %\inhibitxspcode`¡Ë=2% is not helpful
    \lstinputlisting{\Dir/#2print}%
    \nopagebreak[4]%
  }%
  \nopagebreak[4]%
  \hfil\includegraphics[#1]{\Dir/#2.pdf}%
}
\newcommand{\jslash}{~\slash{} \allowbreak}
\newcommand{\IhadtoSplit}{%
  Ť¤½èÍý¤òʬ³ä¤·Ï¢Â³¼Â¹Ô¤·¤Æ¤¤¤ë¤À¤±¤Î¡¢·è¤·¤ÆåºÎï¤Ç¤Ï¤Ê¤¤¹½Â¤¡£%
  globalÊÑ¿ô¤ò¿ÍѤ·¤Æ¤ª¤ê¡¢¤è¤í¤·¤¯¤Ê¤¤¡£%
  ¤À¤¬¡¢½èÍý¤¬Ä¹¤¤¤ÈÆɤߤˤ¯¤¤¤¿¤áʬ³ä¤·¤¿¡£%
}
\newcommand{\FamilyTree}{²È·Ï¿Þ}
\newcommand{\Patrilineal}{Éã·Ï}
\newcommand{\Matrilineal}{Êì·Ï}
\newcommand{\MaleLine}{ÃË·Ï}
\newcommand{\FemaleLine}{½÷·Ï}
\newcommand{\InheritanceDiagram}{Áê³´Ø·¸ÀâÌÀ¿Þ}
\let\tableautorefname=\tablename%
\renewcommand{\subsectionautorefname}{}
\newcommand{\refnm}[1]{%
  \autoref{#1}¡Ö\nameref{#1}¡×%
}

\begin{document}
\MakeShortVerb{\|}
\GetFileInfo{familytree.sty}
\title{{\spaceskip=1ex\textsf{familytree} package \fileversion}}
\author{Àé½»¼£Ïº\\\texttt{\small jiro1010senju AT gmail DOT com}}
\date{\filedate}
\maketitle

\FamilyTree

³Æ¿Í¤òbox¤È¤·¤ÆÄêµÁ¤·¡¢³Æ¡¹¤ò´Ø·¸Àþ¤Ç¤Ä¤Ê¤°¡£
¿Íʪ¤Ë¾ðÊó¤òÉղ乤ì¤Ð\InheritanceDiagram ¤È¤·¤Æ¤â»È¤¨¤ë¤À¤í¤¦¡£

\begin{itemize}
\item Éã·Ï\jslash Êì·Ï¤ËÂбþ
\item ½Ä½ñ¤­¤ËÂбþ¡Ê|jlreq.cls|¤Î¤ß³Îǧ¡Ë
\end{itemize}
\bigskip

¡ÊËÜʸ½ñ¤Ï±Ñ¸ìÈÇ|dtx|¤«¤éÀâÌÀÉôʬ¤òÈ´¤­½Ð¤·¤¿¤â¤Î¤Ç¤¢¤ë¡Ë
\bigskip

\setcounter{tocdepth}{4}
\columnseprule=\arrayrulewidth
\begin{multicols}{2}
\tableofcontents
\end{multicols}
\bigskip

\setcounter{secnumdepth}{0}
\section{¤Ï¤¸¤á¤Ë}

\FamilyTree ¤Ï¤¿¤Þ¤Ëį¤á¤ë¤È¶½Ì£¿¼¤¤¡£
Îò»Ë¤«¤é¤Î±Æ¶Á¤â¤¢¤ë¤È»×¤¦¤¬¡¢À¾ÍΤǤϼ«Ê¬¤«¤é»Ï¤áξ¿Æ¤Î¤ß¤òé¤ê¡¢¤³¤ì¤ò
·«¤êÊÖ¤¹·Á¼°¤¬Â¿¤¤¤½¤¦¤À¡£2¤Î¤Ù¤­¾è¤Ç¿Íʪ¤¬Áý¤¨¤Æ¹Ô¤¯¤Î¤Ç¸«¤¿
ÌܤΥХé¥ó¥¹¤ÏºÎ¤ì¤Æ¤¤¤ë¡£
¹ñÆâ¤Ç¤Ï»ÏÁĤ«¤é»Ï¤á¤ë\Patrilineal ¿Þ
¡Ê\MaleLine ¿Þ¡Ë
¤¬Â¿¤¤¤è¤¦¤Ë»×¤¦¡£\Patrilineal ¤Î¤ß¤òé¤ì¤Ð¡¢¿Þ¤ÏÈæ³ÓŪñ½ã¤Ë¤Ê¤ë¤¬¡¢
¶½Ì£¿¼¤µ¤ÏȾ¸º¤¹¤ë¡£
·»Äï»ÐËå´Ø·¸¤Î¤ß¤Ê¤é¤ºº§°ù´Ø·¸¤â´Þ¤á¤ë¤È¡¢¶½Ì£¤òÂ礤¤Ë¤½¤½¤é¤ì¤ë¿Þ¤Ë¤Ê
¤ë¤¬¡¢Ê£»¨¤µ¤ÏÈôÌöŪ¤ËÁýÂ礹¤ë¡£

Graphviz (|dot(1)|)¤ò»È¤Ã¤Æ¤â¿Þ¤ÏÉÁ¤±¤ë¤¬¡¢¸«¤ä¤¹¤¯¤¹¤ë¤Î¤ÏÆñ¤·¤¤¡£
¤Þ¤¿¡¢|dot(1)|¤Ï¹ñÆâ¤ÇÍѤ¤¤é¤ì¤ëľÀþŪ¤Ê²È·Ï¿Þ¤Ë¤ÏÉÔ¸þ¤­¤Ç¤Ï¤Ê¤¤¤«¤È»×¤¦¡£
Ê£»¨¤Ê\FamilyTree ¤Ç¤â´Öñ¤ËÉÁ¤±¤Ê¤¤¤«¤È»îºî¤·¤¿¤Î¤¬Ëܥѥ屡¼¥¸¤Ç¤¢¤ë¡£
Ãø¼Ô¤ÎLatex¤Î·Ð¸³¤Ï¤½¤ì¤Û¤É¿¤¯¤Ê¤¤¤¬¡¢
Ëܥѥ屡¼¥¸¤¬²È·Ï¿Þ¤òÐíâפ¹¤ë¾ì¹ç¤Î°ì½õ¤Ë¤Ê¤ì¤Ð¹¬¤¤¤Ç¤¢¤ë¡£
¥³¥á¥ó¥È¤ä²þÁ±Äó°ÆÅù¤âÂç´¿·Þ¤Ç¤¢¤ë¡£

\subsection{¼ÂÁõ¤Ë¤Ä¤¤¤Æ}

´ðËÜŪ¤ËÁ´¤Æ¤Î\CS ̾¤Ë¤Ïprefix |ft|¤òÉղ䷤Ƥ¤¤ë¡£
¤·¤«¤·¡¢ÍøÊØÀ­¤ä»ëǧÀ­¤¬µ¾À·¤Ë¤Ê¤ë¤¿¤á¡¢
prefix¤ò½ü¤¤¤¿alias/synonym¤â|\let|¤ÇÄêµÁ¤¹¤ë¡£
ÅöÁ³¤Ê¤¬¤éalias̾¤¬Ì¤»ÈÍѤʾì¹ç¤Ë¸Â¤ë¡£

\CS ̾¤¬´ûÄêµÁ¤Çalias¤òÄêµÁ¤Ç¤­¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢
¤½¤Î»Ý|\message|¤¹¤ë¡£
ËÜʸ½ñ¤Ç¤âprefix¤ò¾Ê¤¤¤¿alias̾¤òÍ¥ÀèŪ¤Ë»ÈÍѤϤ¹¤ë¤¬¡¢
°ìÉô¤Î\CS ̾¤ÏprefixÉÕ¤­¤Î̾Á°¤ò»ÈÍѤ¹¤ë¡£
\smallskip

|dtx|¤ÏÊ£¿ô¤Ëʬ³ä¤·¤Æ¤¢¤ë¤¬¡¢
À¸À®¤µ¤ì¤ë|sty|¤Ï°ì¤Ä¤Ç¤¢¤ë¡£
ËÜʸ½ñ¤Ç¤Ï|ft-lib.dtx|¤òºÇ¸å¤ËºÜ¤»¤ë¤¬|sty|Æâ¤Ç¤ÏËÁƬ¤Ë°ÌÃÖ¤¹¤ë¡£

|dtx|¤Ë¤Ï¹ÔÈÖ¹æ¤òÉղ乤뵡ǽ¤¬¤¢¤ë¤¬¡¢¤¢¤¨¤ÆÄÙ¤·¤Æ¤¢¤ë¡£
Ê£¿ô¤¢¤ë|dtx|¤Î½ç½ø¤òÊѹ¹¤·¤Æ¤¢¤ë¤¿¤á¤À¡£
¤½¤ì¤¾¤ì¤Î|dtx|¤ÎËÁƬ¤Ç¥«¥¦¥ó¥¿¤ËÃͤòÆþ¤ìľ¤·¤Æ¤ä¤ì¤Ð¡¢¤½¤ì¤é¤·¤¤¹Ô
ÈÖ¹æ¤Ï½ÐÎϤǤ­¤ë¤¬¡¢Àµ³Î¤ÊÃͤò½¦¤¤½Ð¤¹¤Î¤Ï̵Íý¤¬¤¢¤ë¤¿¤á»ß¤á¤¿¡£
|ins|¤«¤é|sty|¤òÀ¸À®¤·¤¿ºÝ¤Î|log|¤Ë¹Ô¿ô¤¬»Ä¤µ¤ì¤ë¤¬¡¢¤¢¤Æ¤Ë¤Ê¤é¤Ê¤¤
¿ô»ú¤À¤Ã¤¿¡£
\smallskip

|xparse|¤ò»ÈÍѤ·¤Æ¤¤¤ë¤¿¤áoption°ú¿ô¤ÏÀèƬ¤Ë¸Â¤é¤Ê¤¤¡£°ú¿ô¤ò°Ï¤à³ç¸Ì¤Ï
Ŭµ¹»È¤¤Ê¬¤±¤ëɬÍפ¬¤¢¤ë¡£
\bigskip

Åö½é¤ÏÁ´¤Æ|\hbox|¡¢|\vbox|¡¢¤â¤·¤¯¤Ï|tabular|¤Ç½èÍý¤Ç¤­¤ë¤È»×¤Ã¤Æ¤¤¤¿
¤¬¡¢¤½¤Î¸å¤ÎÀþ¤ò¤Ä¤Ê¤²¤ëÃʳ¬¤Çº¤¤Ã¤¿¡£
glueÅù¤Ë¤è¤ê
|platex|¤¬°ÌÃÖ¤òÄ´À°¤·¤Æ¤¯¤ì¤ë¤Î¤ÇÀܳÅÀ¤¬°ÜÆ°¤·¤Æ¤·¤Þ¤¤¡¢
ÈÆÍÑŪ\jslash ÉáÊ×Ū¤ËÀþ¤ò¤Ä¤Ê¤²¤é¤ì¤Ê¤¤¤Î¤À¡£
TikZÅù¤Ç¤ÏºÂɸÄêµÁ¤äºÂɸ´ÖÀþʬÉÁ²è¤ß¤¿¤¤¤Ê¤³¤È¤â¤Ç¤­¤ë¤Î¤À¤í¤¦¤«¡£
ʬ¤«¤é¤Ê¤¤¡£
Àþ¤ò¤Ä¤Ê¤²¤ë¤¿¤á¤Ë¤Ï|picture|¤òÁªÂò¤»¤¶
¤ë¤òÆÀ¤Ê¤«¤Ã¤¿¡£Àþ¤òÉÁ¤¯¤¿¤á¤È¸À¤¦¤è¤ê¤â¡¢ÉÁ¤¤¤¿Àþ¤ò¤Ä¤Ê¤²¤ë¤¿¤á¤Î
layoutÌÜŪ¤À¡£

depth¤Î°·¤¤¤Ë¤âº¤¤Ã¤¿¡¢¤È¸À¤¦¤«»ä¤Ë¤ÏÃμ±¡¢·Ð¸³¤¬Â­¤ê¤Ê¤«¤Ã¤¿¡£
Ëܥѥ屡¼¥¸¤Ç¤Ïbox¤òÊ£¿ôºîÀ®¤·¡¢|picture|¤Ë¤è¤êÇÛÃÖ¤¹¤ë¤¬¡¢¤³¤³¤Ç
depth¤ò°Õ¼±¤¹¤ëɬÍפ¬¤¢¤Ã¤¿¡£

½Ä½ñ¤­Âбþ¤Ç¤âdepth¤Ï½ÅÍפÀ¤Ã¤¿¡£²£½ñ¤­¤Ç¤Ïfont¤¬»ý¤Ä¡¢±Ñ»ú¤ÈƱÍͤÎ
depth¤À¤¬¡¢½Ä½ñ¤­¤Ç¤ÏÏ»ú¤ÎÉýȾʬ¤¬depth¤Ë¤Ê¤ë¡£
¤³¤ÎÊÕ¤Ïñ¤Ë»ä¤¬ÃΤé¤Ê¤«¤Ã¤¿¤È¸À¤¨¤Ð¤½¤ì¤Þ¤Ç¤Ê¤Î¤À¤¬¡¢
¤º¤¤¤Ö¤ó¼ê´Ö¤¬¤«¤«¤Ã¤¿¡£

\subsection{¹½Â¤}

¿Þ¤ò¹½À®¤¹¤ëÍ×ÁÇËè¤Ëbox¤È¤·¤ÆÄêµÁ¤·¡¢
¤½¤ì¤é¤òÏ¢·ë¤¹¤ë¡£
¿Íʪ´Ö¤òÀþ¤Ç¤Ä¤Ê¤°¾ì¹ç¤ËÈ÷¤¨¡¢
boxÄêµÁ»þ¤ËÀܳÅÀ¤ÎºÂɸ¤òÊÌÅÓÄêµÁ¤·¤Æ¤ª¤¯¡£

¿Þ¤Î¹½À®Í×ÁǤˤϼ¡¤Î¤â¤Î¤¬¤¢¤ë¡£

\begin{enumerate}
\needspace{2\baselineskip}
\item ¿Íʪbox
  \begin{itemize}
  \item ¼Â»Ò¡¢ÍÜ»ÒÅù¤òɽ¤¹child mark
  \item ¸ª½ñ¤­
  \item ¿Íʪ̾
  \item \Patrilineal ¿Þ\jslash\Matrilineal ¿Þ¤ËÍѤ¤¤ëmaleline\slash femaleline
  \item ÉղþðÊó\par
    À¸Ë×ǯ¡¢ÊÌ̾¤Ê¤É
  \end{itemize}

\item ·»Äï»ÐËåbox
  \begin{itemize}
  \item ¤½¤ì¤¾¤ì¤Îchild mark¤ò¤Ä¤Ê¤°¼ÂÀþ
  \item ¿Íʪ̾¤Î´Ö¤Ë´Ö³Ö¤òÀߤ±¤ë¤¿¤á¤Îinterval box
  \end{itemize}

\item º§°ùbox
  \begin{itemize}
  \item Æó¼Ô¤ò¤Ä¤Ê¤°marriage line¡ÊÆó½ÅÀþ¡Ë
  \end{itemize}

\item ¿Æ»Ò¤Þ¤¿¤ÏÆóÀ¤Âåbox
\end{enumerate}
\bigskip

°Ê²¼¡¢Í×ÁÇËè¤ËÀâÌÀ¤¹¤ë¡£

\setcounter{secnumdepth}{4}
\include{ft-individual-ja}
\include{ft-sibling-ja}
\include{ft-gens-ja}
\include{ft-marriage-ja}
\include{ft-lib-ja}
\end{document}