Dark Hypernova
Science and Fiction

Today I Learned

Positioning textblock in LaTeX Beamer

There are times that we wanted to position an equation on the top right of the slide in beamer. The easiest way to do it is to use two packages: textpos and eso-pic. textpos package positions the textblock, while eso-pic sets up a grid system on the slides.

We include the two packages with options.


To position a textblock, use the options \begin{textblock}{WIDTH}(XCOORDINATE,YCOORDINATE). Here is an example.

    \mathbf {H} = \frac{1}{2}\left( - \omega_{\mathrm{m}} + {\color{red}\delta \lambda(x)} \cos 2\theta_{\mathrm{m}} \right) \sigma_3 - \frac{  {\color{red}\delta \lambda(x)}  }{2} \sin \theta_{\mathrm{m}} \sigma_1

A Random #TIL# for You

By OctoMiao

Last updated