def format_pvalue(pval):
    """Latex compatible representations

    """
    pval = str('%.1g' % pval)
    if 'e' in pval:
        pval += '}'
        pval = pval.replace('e', '*10^{').replace('-0', '-')
    return pval
