ped·ant 
(p
ĕd
nt)
n.1. One who ostentatiously exhibits academic knowledge or who pays undue attention to minor details or formal rules.
2. Obsolete A schoolmaster.
[French pédant or Italian pedante (French, from Italian), possibly from Vulgar Latin *paedēns, *paedent-, present participle of *paedere, to instruct, probably from Greek paideuein, from pais, paid-, child; see PEDO-2.]