Latex error option clash for package inputenc usepackage


The solution is to load hyperref after fncychap:. To circumvent, tell the hyperref package to use page labels with roman symbols page. Upgrade to a newer version PGF 2.

Instead, specify xetex as the driver:. XeTeX always expects UTF-8 input, so it is not only redundant to specify the inputenc package, but also incorrect: If you have a preamble, e. Neither the pseudocode nor the algorithms package has provisions to cope with this name clash. The default driver has changed from xdv2pdf to xdvipdfmx in XeTeX 0.

While at first sight it may look good, I found that some texts are missing in pictures and formulas. The solution according to the XeTeX site is to use a different Font. XeTeX does not work properly with the pdftex driver.

The second, and better, solution is to load the graphicx package before loading the xltxtra package. If you get errors like the above, even though you really have only one figure 1. Content is available under Creative Commons Attribution 3. The easiest solution is simply not to use both packages in the same document, but pick a single package for all pseudo-code in your document. See also fix hyperref warnings with line numbers.

The solution is to load hyperref after fncychap:. However, it does not specify any options, so if you later load the graphicx package with options, this does conflict each other. Views Read View source View history. If you encounter the above errors, first of all, make sure you use a recent version of XeTeX.

Neither does the replacement font Latin Modern. Use polyglossia instead of babel. The default driver has changed from xdv2pdf to xdvipdfmx in XeTeX 0. If you need multibyte characters in your listing, your best option is to escape to LaTeX, as explained in the listings documentation.