tikz add tag
4 years ago topnush

How do I get the arrow to leave from the top middle instead of from inside the highlighted text?

Screen Shot 2021-04-22 at 18.48.24.png

Top Answer
4 years ago samcarter

You don’t need to manually add a tikzmark, instead you can accesses the node you defined with \tikzmarkin{a}... \tikzmarkend{a}. This is automatically located at the top left of the box:

Screen Shot 2021-04-23 at 11.53.52.png

MWE:

Screen Shot 2021-04-22 at 18.50.45.png

If you would like to shift the start of the arrow further right, you could use the tikz calc library:

Screen Shot 2021-04-22 at 18.44.54.png

Answer #2
4 years ago user 3.14159

You can also use a \tikzmarknode and its north anchor.

Screen Shot 2021-04-22 at 11.53.57 AM.png

4 years
topnush — Friday, 23rd Apr 2021 09:56

thanks. An automatic diff is needed 😃

samcarter replying to topnush — Friday, 23rd Apr 2021 09:52

In the first approach yes (and removed the unnecessary tikzmark, but that’s not really crucial)

topnush — Friday, 23rd Apr 2021 09:44

thank you for the answers!

topnush — Friday, 23rd Apr 2021 09:44

@samcarter, re: your answer, did you just change to a.north east or did you change anything else?

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.