You need to write a regular expression to remove the header/footer. Go to structure detection under the conversion options, enable either 'remove header' or 'remove footer', and then enter the appropriate regular expression. You can click the magic wand button to pull up a wizard to help you write/test it. There's several a tutorial in the Calibre manual and several tutorials online for regular expressions/regex if you're not familiar with them.
|