# Using stix fonts with pdfLaTeX: "Option clash for package textcomp."

This is a follow-up question for Is it already possible to use the STIX fonts?

I would like to use stix font in my thesis. I am using pdflatex with MiKTeX (probably the latest version). My question is that whether I can simply call \usepackage{stix} for using the font or should I have to install the font separately i.e. the latest MiKTeX does not include this font.

Suppose, if the latest Miktex package doesn't include this, could anyone of you guide me how to do the same.

Thanks!!

Update 1:

As egreg and Joseph Wright mentioned I used the stix package in my document which returned this following error as follows:

! LaTeX Error: Option clash for package textcomp.

See the LaTeX manual or LaTeX Companion for explanation.

• Did you try \usepackage{stix} before asking the question? Dec 7 '16 at 9:15
• miktex.org/packages/stix Dec 7 '16 at 9:17
• @egreg it threw me an error, saying there is an option clash with the package ''text comp'' Dec 7 '16 at 9:20
• @RaajaG Please edit the text of the error into the question Dec 7 '16 at 9:23
• Apparently you're loading textcomp before stix (directly or via another package). Please add a minimal example of a document showing the behavior. However, if you have \usepackage{textcomp} in your document, just remove it. Dec 7 '16 at 9:31

The stix package is included in MiKTeX. It can be loaded with a very short example such as

\documentclass{article}
\usepackage{stix}
\begin{document}

Hello world
$y = mx + c$

\end{document}


The error in the question indicates that textcomp is being loaded twice with different options. The stix package loads it with the full option. You may therefore either drop textcomp from your 'real' document or tell stix not to load it:

\documentclass{article}
\usepackage[notextcomp]{stix}
\begin{document}

Hello world
$y = mx + c$

\end{document}

• Worked like a charm!! Dec 7 '16 at 9:36
• +1 for the notextcomp option -- works also with kpfonts. Oct 26 '17 at 7:06