SHARE
TWEET

Untitled

a guest Sep 11th, 2012 104 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. % -*- coding: utf-8 -*-
  2. % Only for XeLaTeX.
  3. % need to install tikz-dependency package 1.1 or later.
  4. \documentclass{article}
  5. \usepackage{tikz-dependency}
  6.  
  7. \usepackage{zxjatype}
  8. \setjamainfont[Scale=0.8]{Hiragino Kaku Gothic Pro W3}
  9. \usepackage{xltxtra}
  10.  
  11. \begin{document}
  12.  
  13. \begin{center}
  14.   \begin{dependency}[theme = simple]
  15.  
  16.     % 文
  17.     % 文節間は "\&" で区切る. これは tikz 側のお約束.
  18.     \begin{deptext}[column sep=1em] % 文節間のスペースの大きさ
  19.       彼女は \& 学校の \& 窓ガラスを \& 割った \\
  20.     \end{deptext}
  21.  
  22.     % 係り受け関係
  23.     % syntax: \depedge{係り元文節ID}{係り先文節ID}{ラベル}
  24.     % 文節 ID は "1" から始まることに注意
  25.     \depedge{1}{4}{}
  26.     \depedge{2}{3}{}
  27.     \depedge[edge end x offset=-3pt]{3}{4}{} % 係り先の矢印の x 座標を 3pt 左にずらす.
  28.   \end{dependency}
  29. \end{center}
  30.  
  31. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top