2

I would like to draw the curved arrows from the image below. I tried it using TikZ but I couldn't figure out how to draw the curved lines.

enter image description here

  • Can you provide the code you've been working on? So we have something to use without writing it from scratch. :) – Alenanno Dec 28 '15 at 21:08
  • I don't have anything that looks like it yet :/, but here are the lines: [CP [C \textbf{é} [C’[TP [ T {que} [T’ [vP {XP} [v [v’[VP V XP]]]]]]] \\ [CP \textbf{XP} [C {é} [C’[TP [ T {que} [T’ [vP \textbf{\sout{XP}} [v [v’[VP V XP]]]]]]] – Ana Dec 28 '15 at 21:16
  • Something like this? – Alenanno Dec 28 '15 at 21:36
  • yes, just like that :) – Ana Dec 28 '15 at 21:48
3

You could use a \tikzmark that in our case takes two arguments:

\tikzmark{<reference name>}{<actual text>}

Later, we can draw regular arrows inside a \tikzpicture with some options to draw on top of the document.

Output

output

Code

\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{soul}
\usepackage{tikz}
\usetikzlibrary{calc, arrows.meta}
\newcommand\tikzmark[2]{
    \tikz[remember picture,baseline=(#1.base)] \node (#1) {#2};}

\begin{document}\noindent
[CP [C \textbf{é} [C’[TP [ T {que} [T’ [vP {XP} [v [v’[VP V XP]]]]]]] 
\newline
\vspace{\baselineskip}

\noindent
[CP \tikzmark{a}{\textbf{XP}} [\tikzmark{c}{C} é [C’[TP [ T {que} [T’ [vP \tikzmark{b}{\textbf{\st{XP}}} [v [v’[VP V XP]]]]]]]

\begin{tikzpicture}[overlay,remember picture]
\path (c.south) edge[thick, bend right,-{Latex}] (b);
\path (b.north) edge[thick, bend right,-{Latex}] (a);
\end{tikzpicture}
\end{document}
  • Awesome! Thanks a lot, that really helps :) – Ana Dec 28 '15 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.