1

This question has been asked and supposedly answered before, but I can't make sense of the answers so I thought I'd ask my own question and hope for the best.

So, I use mcode.sty a lot and as things are now I have to copy that file into every folder where I have tex files that use mcode. What "central place" can I put it so I don't have to copy it all the time?

What I've tried:

sudo mkdir /usr/share/texlive/texmf-dist/tex/latex/mcode

sudo cp ~/.../mcode.sty /usr/share/texlive/texmf-dist/tex/latex/mcode

It doesn't work.

marked as duplicate by egreg, Stefan Pinnow, Zarko, user13907, Svend Tveskæg Dec 13 '16 at 0:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1

You can use

mkdir ~/texmf/tex/latex/ 

and then (assuming you're in the directory that contains mcode.sty)

mv mcode.sty ~/texmf/tex/latex/

See Where do I place my own .sty or .cls files, to make them available to all my .tex files? for further details.

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