If you use the -s
option, pandoc should give you an HTML title block based on the title information in the LaTeX file.
On the other issue: Try using \newcommand
instead of \def
. Recent versions of pandoc understand \newcommand
macro definitions.