Port to new BeQt and TeXSample