Fix problem when not using --pdf or --tex

Thanks to @abelsiqueira to report the bug.

To fix the bug `output_format` has `None` as the default value.

Also make that `--pdf` "require" `--tikz-header`.