def __getitem__(self,n):
        """Return token at offset n from current pos."""
        p = self.pos + n
        t = self.tex
        return p < len(t) and t[p] or None
Return token at offset n from current pos.
recipes/Python/252124_LaTeX_codec/recipe-252124.py