《新唐书·列传·卷九十九》
他八岁会写文章，后考中了进士和博学宏辞科。他和裴度、柳公绰都受武元衡赏识，被任命在剑南幕府中任职。
八岁知属文，后擢进士、博学宏辞，与裴度、柳公绰皆为武元衡所知，表署剑南幕府。
When he was eight, he could write articles, and later passed the Jinshi and Bohue Hongci examinations. He was valued by Pei Du, Liu Gongchuo and Wu Yuanheng, and was appointed to serve in the Jiannan幕府.