Drawing over an image
If you need to add text, arrows, or other annotations to an image, it’s recommended to do so directly within LaTeX. This offers several advantages compared to using external graphics software:
- Font consistency: You can use the same fonts in your annotations in the image as those used throughout your LaTeX document, ensuring visual uniformity
- Style consistency: Styles such as line widths, colors, and arrow types adhere to the style of your other drawings
- Scalability: Your annotations scale seamlessly and will remain sharp and high-quality
- Macro integration: You can use macros from your preamble or packages in your annotations
How to do it…
We will draw with TikZ. We use the onimage package for this example. If it’s not available in your TeX distribution or on CTAN, you can download it from Launchpad: https://bazaar.launchpad.net/~tex-sx/tex-sx/development/view/head:/onimage.dtx. The .dtx filename extension stands...