How can I add text to figures in LaTeX using the beamer class?

  • Context: LaTeX 
  • Thread starter Thread starter aihaike
  • Start date Start date
  • Tags Tags
    Latex Text
Click For Summary

Discussion Overview

The discussion centers around adding text annotations to figures within the LaTeX beamer class. Participants explore various methods and tools for achieving this, including the use of packages like overpic, pgf, and TikZ, as well as considerations regarding figure editing.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Exploratory

Main Points Raised

  • Eric expresses difficulty in adding annotations to figures using the beamer class and mentions that textblock did not work for him.
  • Some participants suggest alternative methods, including using lpic or editing the figures in graphic design software like InkScape or Illustrator.
  • Eric raises concerns about losing transparency in figures when edited externally and the challenge of maintaining consistent annotation placement across multiple figures.
  • Another participant notes that beamer works well with pgf and TikZ for overlays and provides an example of annotating text and math elements.
  • Éric acknowledges the suggestion to use pgf and TikZ but mentions previous unsuccessful attempts, indicating a willingness to try again.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the best method for adding annotations, with multiple competing views and suggestions remaining unresolved.

Contextual Notes

Some methods discussed may depend on specific configurations or definitions within the beamer class, and limitations regarding transparency in edited figures are noted.

aihaike
Messages
52
Reaction score
0
Hey,

I want to add annotations on figure but can't figure out.
I use the beamer class, my figure in in a block.
Can anyone tell me how to do this?
I tried textblock but did not work.
I hear about overpic or psfrag but they don't seem to be what I need.
Thanks,

Eric.
 
Physics news on Phys.org
Thank for your reply, it seems to be what I need.
You're right, it's better to edit the figure but when I do so there is no transparent background anymore (Postscript file). Moreover, I have many this I may put in presentation and if I edit and make the annotation myself it can't be always right at the same place on each figure which looks not good (to me) when I present the result one by one. Do you see what I mean?
Anyway, thank you again for the info, I'll let you know if if it works.
 
Hey,

It does not work with beamer class unfortunately.
I tried ipic, overpic, pinlabel ...
I'll have to edit the files but don't which program is able to generate a ps file with transparent background.
 
Beamer works fine with pgf and TikZ. For overlays, I use

Code:
\begin{tikzpicture}[overlay,remember picture]
...
\end{tikzpicture}

Besides images, I annotate arbitrary text and math elements, such as drawing arrows between matrix elements. An example: Highlighting elements in matrices. This and many more TikZ examples can be found on TeXample.net in the TikZ example gallery.

Stefan
 
Hey Stefan,

I've been trying to use unsuccessfully pgf and TikZ but now I'm sure it must work I'll definitely go that way.
Thank you,

Éric.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
3
Views
8K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 7 ·
Replies
7
Views
4K