2013-10-25

Screen scrollback revisited

In this post, I comment on entering copy mode in GNU screen in order to scroll back with the keyboard. But what if you just want to use the scroll wheel? I think what you're looking for is this line in your configuration file, ~/.screenrc:

# scrolling:
termcapinfo xterm ti@:te@

I also found this cryptic code in my configuration file; I can't tell if it's relevant or not:

# Scroll up
bindkey -d "^[[5S" eval copy "stuff 5\025"
bindkey -m "^[[5S" stuff 5\025

# Scroll down
bindkey -d "^[[5T" eval copy "stuff 5\004"
bindkey -m "^[[5T" stuff 5\004

# Scroll up more
bindkey -d "^[[25S" eval copy "stuff \025"
bindkey -m "^[[25S" stuff \025

# Scroll down more
bindkey -d "^[[25T" eval copy "stuff \004"
bindkey -m "^[[25T" stuff \004

Happy screening!

2013-08-23

Correct slide alignment with Beamer

Sometimes -- and I'm not sure exactly when or why -- I find that my slides pick up a vertical offset. Every slide except the first one is shifted downwards by a few pixels. This is frustrating if you have a background image that you would like to align exactly the same way on every slide. The fix, found here, turns out to be:

  • use a newer version of PGF (I think 2.0 or greater), or
  • insert the following in the preamble:
    \makeatletter \let\Hy@FixNotFirstPage=\relax \makeatother

The issue apparently has something to do with a strange interaction between the hyperref and pgf packages.