Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. [ begin{array}{rll}
  2. 1&plthen q\
  3. 2&qlthen r\
  4. 3&p\
  5. 4&q & mathrm{E}{lthen} 1,3\
  6. 5&r & mathrm{E}{lthen} 2,4\
  7. 6&plthen r & mathrm{I}{lthen} 3{-}5\
  8. 7&(qlthen r)lthen (plthen r) & mathrm{I}{lthen} 2{-}6
  9. end{array} ]
  10.  
  11. documentclass{article}
  12. usepackage{amssymb}
  13. letlthento
  14. usepackage{tikz}
  15. usetikzlibrary{tikzmark,calc}
  16. newcounter{lconnect}
  17. begin{document}
  18. [ begin{array}{rll}
  19. tikzmarknode{1}{1}&plthen q\
  20. tikzmarknode{2}{2}&qlthen r\
  21. tikzmarknode{3}{3}&p\
  22. tikzmarknode{4}{4}&q & mathrm{E}{lthen} 1,3\
  23. tikzmarknode{5}{5}&r & mathrm{E}{lthen} 2,4\
  24. tikzmarknode{6}{6}&plthen r & mathrm{I}{lthen} 3{-}5\
  25. tikzmarknode{7}{7}&(qlthen r)lthen (plthen r) & mathrm{I}{lthen} 2{-}6
  26. end{array} ]
  27. begin{tikzpicture}[overlay,remember picture,lconnect/.style args={#1 and #2}{%
  28. /utils/exec=stepcounter{lconnect},insert path={(#1.west)--
  29. ++(-1*pgfkeysvalueof{/tikz/lconnect/offset}-1*numbervalue{lconnect}*pgfkeysvalueof{/tikz/lconnect/step},0) |- (#2.west)}},lconnect/.cd,
  30. offset/.initial=0.1em,step/.initial=0.4em]
  31. draw[lconnect/.list={3 and 5,2 and 6}];
  32. end{tikzpicture}
  33. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement