daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Jan 20th, 2018 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass[11pt, dvipdfmx]{article}
  2. usepackage{tikz}
  3. usetikzlibrary{calc}
  4. newcommandtikzmark[1]{tikz[remember picture, baseline=(#1.base)] node[anchor=base,inner sep=0pt, outer sep=0pt] (#1) {#1};}
  5.  
  6. % This code from http://tex.stackexchange.com/q/55068/2693
  7. tikzset{
  8.     ncbar angle/.initial=90,
  9.     ncbar/.style={
  10.         to path=(tikztostart)
  11.         -- ($(tikztostart)!#1!pgfkeysvalueof{/tikz/ncbar angle}:(tikztotarget)$)
  12.         -- ($(tikztotarget)!($(tikztostart)!#1!pgfkeysvalueof{/tikz/ncbar angle}:(tikztotarget)$)!pgfkeysvalueof{/tikz/ncbar angle}:(tikztostart)$)
  13.         -- (tikztotarget)
  14.     },
  15.     ncbar/.default=0.5cm,
  16. }
  17.  
  18. % Thanks to Paul Gessler adn Percusse for code improvement here
  19. newcommand{arrow}[2]{begin{tikzpicture}[remember picture,overlay]
  20. draw[->,shorten >=3pt,shorten <=3pt] (#1.base) to [ncbar=arrowht] (#2.base);
  21. end{tikzpicture}
  22. setlength{arrowht}{0ex}
  23. }
  24. usepackage{gb4e}
  25. % The following code modified from
  26. % http://permalink.gmane.org/gmane.comp.tex.linguistics/1036
  27. % This adds some extra space after the first line
  28. newlength{arrowht}
  29. setlength{arrowht}{0ex}
  30. newcommand*cgdepthstrut{{vrule height 0pt depth arrowht width 0pt}}
  31. renewcommandeachwordone{cgdepthstrutrmfamily}
  32. renewcommandglt{vskip -topsep}
  33. lettrans=glt
  34. newcommandarrowex{setlength{arrowht}{2.5ex}ex}
  35.  
  36.  
  37. begin{document}
  38. begin{exe}
  39. exlabel{scramble-det}
  40. begin{xlist}
  41.         arrowex
  42.         gll
  43.         ldots dat Jan tikzmark{een} auto gisteren tikzmark{t}  gekregen heeft.\
  44.         ldots that John a car  yesterday t gotten has \
  45.         ldots that John a car yesterday.
  46.         arrow{t}{een}
  47. end{xlist}
  48. end{exe}
  49.  
  50. begin{exe}
  51. exlabel{scramble-dets}
  52. begin{xlist}
  53.         ex
  54.         gll
  55.         ldots dat Jan een auto gisteren t gekregen heeft.\
  56.         ldots that John a car  yesterday t gotten has \
  57.         ldots that John a car yesterday.
  58. end{xlist}
  59. end{exe}
  60.  
  61. begin{exe}
  62. ex[]{
  63.     gll
  64.     John-wa totetumonaiukurai baka-da.    \
  65.     John-Top very stupid-cop \
  66.     `John is very studip.'    
  67. }
  68.  
  69. ex[]{
  70.     gll
  71.     John-wa totetumonaiukurai dousiyoumonai tondemonai sukuigatai baka-da.    \
  72.     John-Top very very very very stupid-cop \
  73.     `John is very studip.'    
  74. }
  75.  
  76. arrowex[]{
  77.     gll
  78.     tikzmark{John}-wa totetumonaiukurai dousiyoumonai tondemonai sukuigatai  tikzmark{t} baka-da.    \
  79.     John-Top very very very very stupid-cop \
  80.     `John is very stupid.'    
  81.     arrow{t}{John}
  82. }
  83.  
  84. end{exe}
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