The rates or compensation and the method of calculating the same provided for in section 46-05-03 apply in all cases in which publication of legal notices of any kind, proceedings of the board of county commissioners, reports, election returns, and other publications and reports are required and allowed by law.