pedantically

PEDANT'ICALLY, adv. With a vain or boastful display of learning.