[Tex/LaTex] Using stix fonts with pdfLaTeX: “Option clash for package textcomp.”

fontsmiktexpdftexstix

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.

Best Answer

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}
Related Question