Here is a non-TikZ solution. We specify the transparency using \transparent{<value>}
, where the value is from 0-1. Adjust the values to suit.
\documentclass[12pt]{article}
\usepackage{graphicx}
\usepackage{color}
\usepackage{transparent}
\begin{document}
\includegraphics[width=0.5\textwidth]{./graphics/amato}\par
\vspace*{-3cm}
\hspace*{-1cm} \hbox{%
\bfseries\Huge
\color{red}%
\transparent{0.4}%
MY THESIS
}
\end{document}
Regarding 1: I do not know if and how this is possible, would be happy to learn about it. I guess the transparency has to be already in the PDF.
Regarding 2: This can be done using \foreach
from the TikZ/PGF package and and \includegraphics<+>
. I usually put all frames of an animation as pages into a single PDF, so I can write:
\usepackage{pgffor} % if you do not already include tikz
\begin{frame}{Animation}
\foreach \p in {1,...,10}{%
\includegraphics<+>[page=\p, width=\textwidth]{animation.pdf}
}
\end{frame}
If you do not have a single PDF, but a number of PDF files you might use pdftk
to concatenate them. Alternatively, the following should work as well (I am not able to test this right now):
\usepackage{pgffor} % if you do not already include tikz
\begin{frame}{Animation}
\foreach \f in {frame1.pdf, frame2.pdf, frame3.pdf}{%
\includegraphics<+>[width=\textwidth]{\f}
}
\end{frame}
A very nice thing property of this approach is that it becomes pretty easy to specify a different sequence (usually one containing fewer slides) for the handout version.
Best Answer
[I'm assuming we are talking MetaPost rather than MetaFont].
You can do transparency in MetaPost by iterating over all the components of a picture and re-colouring them appropriately. Here's an example of a grid and simple transparent rectangle.
Notes
Given a picture variable
p
the syntaxfor e within p
steps through all the components of the picturep
. Eache
is also a picture variable.colormodel e
returns the colour model being used for the element; 5 means the usual RGB colours, 0 means it's not coloured.colorpart e
returns the colour of the element.So what the loop does is redraw everything in the saved copy of the current picture, and for each element that's coloured using an RGB colour it recolours it using a colour that is
alpha
of the way between the original colour and the colour used as a filler. This creates an approximate illusion of transparency.It's tempting to write
for e within currentpicture
but for some unknown reason, this does not work. You have to savecurrentpicture
to a picture variable and then step through that.