2

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.
  • 1
    Did you try \usepackage{stix} before asking the question? – egreg Dec 7 '16 at 9:15
  • 1
  • @egreg it threw me an error, saying there is an option clash with the package ''text comp'' – Raaja Dec 7 '16 at 9:20
  • 1
    @RaajaG Please edit the text of the error into the question – Joseph Wright Dec 7 '16 at 9:23
  • 2
    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. – egreg Dec 7 '16 at 9:31
7

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}
|improve this answer|||||
  • Worked like a charm!! – Raaja Dec 7 '16 at 9:36
  • +1 for the notextcomp option -- works also with kpfonts. – Supernormal Oct 26 '17 at 7:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.