Pakatan Rakyat has appointed Anwar Ibrahim - who will be sworn in as MP tomorrow - the parliamentary opposition leader.