2

I just fell over this gem of a figure reference system in the Danish on train magazine "ud & Se" (out and watch), and I wondered if there was a way of doing it in LaTeX.

The idea is, that instead of using a caption, and reference by number, the text referencing a figure will be emphasized (bold, underlined or both) and an arrow will be drawn from the bottom center of the text to the figure.

The arrow can be either curved (as in the picture below) or move in cardinal directions, if the latter is the case, the arrow should avoid text while moving horizontally, but collide with text when moving vertically (at least that's what the magazines do)

Pic:

Picture of the greatest figure reference system evar!!1!!!ONE!!!

I guess the way to do this in LaTeX would be something like overlaying a tikzpicture which has both the figure and the reference, and then drawing an arrow, but I don't really know anything further than that.

I realize that the feature is mostly useless, but it would be fun for gags (I can see it used in my student magazine as a joke)

  • One way to do this is with \tikzmark. Here is an example that may get you started tikz arrow outside tikzpicture environment. If you compose a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem, I am sure someone can help you complete the arrow drawing. – Peter Grill Jul 18 at 8:13
  • @Peter Grill, thanks. I'll look into it when I get home from holiday (I'm leaving now, which is why I looked in a train magazine). Your post seems like a great Segway for getting it done – Thorbjørn E. K. Christensen Jul 18 at 8:58

Your Answer

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

Browse other questions tagged or ask your own question.