Modified the .tex and .sty for ability to compile to PDF and to XML