I'm using the "epigraph" package for epigraphs at the beginning of my chapters. Every time I try to compile it always says
LaTeX Error: File "epigraph.sty" not found.
Then it prompts me to put a file name. I put "epigraph.sty" and it worked!
I tried to use the
$ texhash
command in the directory where my tex files are located.
It says my directory is not writable.
So seems like it will always raise this error and I have to manually enter the file name every time…which is certainly less desirable.
Best Answer
I can reproduce the effect described as follows
produces the terminal output:
If you enter
epigraph.sty
it completes asThe reason here is a control character in the file:
the line
is
with a spurious U+200B zero width character, such a character can not be seen but makes the file name not match, so requiring you to enter a "clean" version. Just deleting the line and retyping it with just the visible ascii characters produces
which runs without error