Cannot give you the official line from the book, but from my own experience:
We wore swords for the funeral - basically as a mark of respect in being as fully "rigged up" as possible.
Took hats off on entering the church, and redoffed (?) them on exit