various useful non package latex hacks