I'm sorry for my bad title since I don't know how to exactly describe my question. Normally I draw my figure with another tool (e.g., diagram.net), export to .eps file and then put it to latex. By this way, all elements in the figure is unselectable. I'm able to draw basic figure with tikzpicture and I think that this package is not a solution for this problem.

I saw in some papers, people draw figure consisting texts that can be selected by mouse? For example in this paper, Figure 1, all the text is selectable? enter image description here How is that possible? Please give me a recomendation or a tutorial for this?

I'm appreciated for your help.

  • 1
    You can do such images using TikZ, why should you not? On the other hand, if you make it with another application, export it as PDF and import the PDF, the text should still be selectable with the mouse, if is was in the original, exported PDF. So this is nothing strange. Only if the text is either exported as curves or as bitmap, the text is no longer selectable.
    – cabohah
    Commented Feb 6, 2023 at 13:46
  • 1
    If you create a tikz-diagram with some textual content, and compile it to a .pdf, those texts ARE selectable in the pdf. Does this answer your qeustion?
    – MS-SPO
    Commented Feb 6, 2023 at 13:54
  • 1
    BTW, if you check the documentproperties of the pdf you point to, it says: used Latex with hyperref. Taking the apperance into account, the graphic most likely was created by tikz (it's not a convincing argument, though). // See e.g. texample.net/tikz/examples/database-decimation-process or texample.net/tikz/examples/system-combination and other examples from the tikz gallery. // Or review the overleaf gallery: de.overleaf.com/gallery?q=diagram
    – MS-SPO
    Commented Feb 6, 2023 at 13:58
  • 1
    Or see this tikz-solution, which is close to some detail of your complex drawing: tex.stackexchange.com/a/353129/245790
    – MS-SPO
    Commented Feb 6, 2023 at 14:04
  • 1
    Somewhat related: tex.stackexchange.com/questions/176280/… Commented Feb 6, 2023 at 15:54

1 Answer 1


Here are some answers to your question

How is that possible? Please give me a recomendation or a tutorial for this?

#1 The standard link is to the TIKZ/pgf package at ctan. The documentation comes in two flavours:

  • a small tutorial (Minimal introduction)
  • the huge manual.

I recommend to start with the minimal one, though you can also follow the huge manual nicely from front to back. But the better way is to use it as a source for deeper understanding.

#2 The University of Leipzig has a very nice and compact tutorial , giving you the relevant syntax with some examples.

But also Overleaf has a 5-part-tutorial for you.

#3 Finally, if you prefer videos, have a try on youtube. E.g. this one sounds promissing: How to make beautiful math graphics using Tikz & LaTeX .

Besides that, a number of links made in the comments point you to examples with elegant and less elegant code examples, which you can use as a source of inspiration.

Don't hesitate to try this sites tag-search : enter tikz into the search field and make your choice.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .