import re


def strip_comments_simple(source):
    """ strip comments from Latex source by removing text after percent signs """
    regex = re.compile(r"(?<!\\)%(.*)")
    return u"\n".join(regex.sub("%", line) for line in source.splitlines())